package V2;

/* JADX INFO: loaded from: classes.dex */
public final class G3 extends C4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public /* synthetic */ Object f7337a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ L3 f7338b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f7339c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public G3(L3 l32, C4.c cVar) {
        super(cVar);
        this.f7338b = l32;
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        this.f7337a = obj;
        this.f7339c |= Integer.MIN_VALUE;
        Object objH = this.f7338b.h(null, this);
        return objH == B4.a.f492a ? objH : new w4.n(objH);
    }
}
package V2;

import V2.C4;
import V2.L3;
import V2.B4;
import V2.w4;

/**
 * This class represents a suspended coroutine or asynchronous operation handler.
 * It extends C4.c (likely a CoroutineContext or Job holder) and manages the execution
 * of a task defined by an L3 instance. The invokeSuspend method is the entry point
 * for resuming the coroutine, handling the continuation object passed in.
 * 
 * Key components:
 * - f7337a: Stores the continuation object (the result of the previous suspension point).
 * - f7338b: Holds the L3 instance, which likely contains the logic to be executed.
 * - f7339c: A bitmask used to track the state of the coroutine (e.g., whether it's active, cancelled, etc.).
 * - invokeSuspend: The main method that resumes the coroutine, executes the L3 task, and handles the result.
 */
public final class G3 extends C4.c {

    /**
     * Stores the continuation object passed to the suspend function.
     * Renamed from 'a' to 'continuation' for clarity.
     */
    public Object continuation;

    /**
     * Holds the L3 instance, which is the core logic or data source for this coroutine.
     * Renamed from 'b' to 'l3Instance' for clarity.
     */
    public final L3 l3Instance;

    /**
     * A bitmask used to track the state of the coroutine.
     * Renamed from 'c' to 'stateMask' for clarity.
     */
    public int stateMask;

    /**
     * Constructor for G3.
     * Initializes the coroutine with the provided L3 instance and parent context.
     * 
     * @param l3 The L3 instance to execute.
     * @param parent The parent coroutine context (C4.c).
     */
    public G3(L3 l3, C4.c parent) {
        super(parent);
        this.l3Instance = l3;
    }

    /**
     * Resumes the coroutine execution.
     * This method is called when the coroutine is suspended and needs to continue.
     * It stores the continuation object, updates the state mask, executes the L3 task,
     * and handles the result based on whether it equals B4.a.f492a (likely a cancellation or error signal).
     * 
     * @param obj The continuation object passed by the compiler/runtime.
     * @return The result of the L3 task, or a wrapped exception if the task failed.
     */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        // Store the continuation object for later use
        this.continuation = obj;
        
        // Update the state mask to indicate the coroutine is active/resuming
        // Integer.MIN_VALUE is used as a flag to mark the coroutine as running
        this.stateMask |= Integer.MIN_VALUE;
        
        // Execute the L3 task with the continuation object as the first argument
        // The second argument is this coroutine instance (for context)
        Object result = this.l3Instance.h(null, this);
        
        // Check if the result equals B4.a.f492a (likely a cancellation or error signal)
        if (result == B4.a.f492a) {
            // If it's a cancellation/error, return the result directly
            return result;
        } else {
            // Otherwise, wrap the result in a w4.n object (likely a continuation or success wrapper)
            return new w4.n(result);
        }
    }
}package V2;

import V2.C4;
import V2.L3;
import V2.B4;
import V2.w4;

/**
 * This class represents a suspended coroutine or asynchronous operation handler.
 * It extends C4.c (likely a CoroutineContext or Job holder) and manages the execution
 * of a task defined by an L3 instance. The invokeSuspend method is the entry point
 * for resuming the coroutine, handling the continuation object passed in.
 * 
 * Key components:
 * - f7337a: Stores the continuation object (the result of the previous suspension point).
 * - f7338b: Holds the L3 instance, which likely contains the logic to be executed.
 * - f7339c: A bitmask used to track the state of the coroutine (e.g., whether it's active, cancelled, etc.).
 * - invokeSuspend: The main method that resumes the coroutine, executes the L3 task, and handles the result.
 */
public final class G3 extends C4.c {

    /**
     * Stores the continuation object passed to the suspend function.
     * Renamed from 'a' to 'continuation' for clarity.
     */
    public Object continuation;

    /**
     * Holds the L3 instance, which is the core logic or data source for this coroutine.
     * Renamed from 'b' to 'l3Instance' for clarity.
     */
    public final L3 l3Instance;

    /**
     * A bitmask used to track the state of the coroutine.
     * Renamed from 'c' to 'stateMask' for clarity.
     */
    public int stateMask;

    /**
     * Constructor for G3.
     * Initializes the coroutine with the provided L3 instance and parent context.
     * 
     * @param l3 The L3 instance to execute.
     * @param parent The parent coroutine context (C4.c).
     */
    public G3(L3 l3, C4.c parent) {
        super(parent);
        this.l3Instance = l3;
    }

    /**
     * Resumes the coroutine execution.
     * This method is called when the coroutine is suspended and needs to continue.
     * It stores the continuation object, updates the state mask, executes the L3 task,
     * and handles the result based on whether it equals B4.a.f492a (likely a cancellation or error signal).
     * 
     * @param obj The continuation object passed by the compiler/runtime.
     * @return The result of the L3 task, or a wrapped exception if the task failed.
     */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        // Store the continuation object for later use
        this.continuation = obj;
        
        // Update the state mask to indicate the coroutine is active/resuming
        // Integer.MIN_VALUE is used as a flag to mark the coroutine as running
        this.stateMask |= Integer.MIN_VALUE;
        
        // Execute the L3 task with the continuation object as the first argument
        // The second argument is this coroutine instance (for context)
        Object result = this.l3Instance.h(null, this);
        
        // Check if the result equals B4.a.f492a (likely a cancellation or error signal)
        if (result == B4.a.f492a) {
            // If it's a cancellation/error, return the result directly
            return result;
        } else {
            // Otherwise, wrap the result in a w4.n object (likely a continuation or success wrapper)
            return new w4.n(result);
        }
    }
}
