package V2;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: V2.l, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0687l extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ J4.a f7863a;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0687l(J4.a aVar, A4.d dVar) {
        super(2, dVar);
        this.f7863a = aVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C0687l(this.f7863a, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        C0687l c0687l = (C0687l) create((V4.C) obj, (A4.d) obj2);
        C3137A c3137a = C3137A.f25453a;
        c0687l.invokeSuspend(c3137a);
        return c3137a;
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        AbstractC2467b.l(obj);
        this.f7863a.invoke();
        return C3137A.f25453a;
    }
}
package V2;

import m3.AbstractC2467b;
import w4.C3137A;

/**
 * This class represents a coroutine factory and launcher for executing a specific action.
 * It extends the base coroutine factory (C4.j) and implements the J4.e interface.
 * The primary purpose is to create and invoke a coroutine that executes the provided action (J4.a) asynchronously.
 * It handles the lifecycle of the coroutine, including creation, suspension, and resumption.
 */
public final class C0687l extends C4.j implements J4.e {

    /**
     * The action to be executed within the coroutine.
     * This is a reference to the J4.a interface, which likely defines the method to be invoked.
     */
    public final /* synthetic */ J4.a actionToExecute;

    /**
     * Constructor for C0687l.
     * @param action The action (J4.a) to be executed.
     * @param dispatcher The coroutine dispatcher (A4.d) to be used for scheduling the coroutine.
     */
    public C0687l(J4.a action, A4.d dispatcher) {
        // Initialize the base coroutine factory with the dispatcher and a default continuation count.
        super(2, dispatcher);
        // Store the action to be executed.
        this.actionToExecute = action;
    }

    /**
     * Creates a new instance of C0687l.
     * This method is part of the coroutine factory pattern, allowing for the creation of new coroutine instances.
     * @param context The coroutine context (V4.C) to be used.
     * @param dispatcher The coroutine dispatcher (A4.d) to be used.
     * @return A new instance of C0687l.
     */
    @Override // C4.a
    public final A4.d create(Object context, A4.d dispatcher) {
        // Create and return a new instance of C0687l with the provided action and dispatcher.
        return new C0687l(this.actionToExecute, dispatcher);
    }

    /**
     * Invokes the coroutine with the provided context and dispatcher.
     * This method is part of the J4.e interface and is responsible for starting the coroutine.
     * @param context The coroutine context (V4.C) to be used.
     * @param dispatcher The coroutine dispatcher (A4.d) to be used.
     * @return The result of the coroutine execution (C3137A.f25453a).
     */
    @Override // J4.e
    public final Object invoke(Object context, Object dispatcher) {
        // Create a new instance of C0687l with the provided context and dispatcher.
        C0687l coroutineInstance = (C0687l) create((V4.C) context, (A4.d) dispatcher);
        // Get the default dispatcher (C3137A.f25453a).
        C3137A defaultDispatcher = C3137A.f25453a;
        // Invoke the coroutine with the default dispatcher.
        coroutineInstance.invokeSuspend(defaultDispatcher);
        // Return the default dispatcher.
        return defaultDispatcher;
    }

    /**
     * Invokes the coroutine with the provided dispatcher.
     * This method is part of the C4.a interface and is responsible for suspending and resuming the coroutine.
     * @param dispatcher The coroutine dispatcher (B4.a) to be used.
     * @return The result of the coroutine execution (C3137A.f25453a).
     */
    @Override // C4.a
    public final Object invokeSuspend(Object dispatcher) {
        // Get the default dispatcher (B4.a.f492a).
        B4.a defaultDispatcher = B4.a.f492a;
        // Validate the dispatcher (AbstractC2467b.l).
        AbstractC2467b.l(dispatcher);
        // Execute the action (this.actionToExecute.invoke()).
        this.actionToExecute.invoke();
        // Return the default dispatcher.
        return C3137A.f25453a;
    }
}package V2;

import m3.AbstractC2467b;
import w4.C3137A;

/**
 * This class represents a coroutine factory and launcher for executing a specific action.
 * It extends the base coroutine factory (C4.j) and implements the J4.e interface.
 * The primary purpose is to create and invoke a coroutine that executes the provided action (J4.a) asynchronously.
 * It handles the lifecycle of the coroutine, including creation, suspension, and resumption.
 */
public final class C0687l extends C4.j implements J4.e {

    /**
     * The action to be executed within the coroutine.
     * This is a reference to the J4.a interface, which likely defines the method to be invoked.
     */
    public final /* synthetic */ J4.a actionToExecute;

    /**
     * Constructor for C0687l.
     * @param action The action (J4.a) to be executed.
     * @param dispatcher The coroutine dispatcher (A4.d) to be used for scheduling the coroutine.
     */
    public C0687l(J4.a action, A4.d dispatcher) {
        // Initialize the base coroutine factory with the dispatcher and a default continuation count.
        super(2, dispatcher);
        // Store the action to be executed.
        this.actionToExecute = action;
    }

    /**
     * Creates a new instance of C0687l.
     * This method is part of the coroutine factory pattern, allowing for the creation of new coroutine instances.
     * @param context The coroutine context (V4.C) to be used.
     * @param dispatcher The coroutine dispatcher (A4.d) to be used.
     * @return A new instance of C0687l.
     */
    @Override // C4.a
    public final A4.d create(Object context, A4.d dispatcher) {
        // Create and return a new instance of C0687l with the provided action and dispatcher.
        return new C0687l(this.actionToExecute, dispatcher);
    }

    /**
     * Invokes the coroutine with the provided context and dispatcher.
     * This method is part of the J4.e interface and is responsible for starting the coroutine.
     * @param context The coroutine context (V4.C) to be used.
     * @param dispatcher The coroutine dispatcher (A4.d) to be used.
     * @return The result of the coroutine execution (C3137A.f25453a).
     */
    @Override // J4.e
    public final Object invoke(Object context, Object dispatcher) {
        // Create a new instance of C0687l with the provided context and dispatcher.
        C0687l coroutineInstance = (C0687l) create((V4.C) context, (A4.d) dispatcher);
        // Get the default dispatcher (C3137A.f25453a).
        C3137A defaultDispatcher = C3137A.f25453a;
        // Invoke the coroutine with the default dispatcher.
        coroutineInstance.invokeSuspend(defaultDispatcher);
        // Return the default dispatcher.
        return defaultDispatcher;
    }

    /**
     * Invokes the coroutine with the provided dispatcher.
     * This method is part of the C4.a interface and is responsible for suspending and resuming the coroutine.
     * @param dispatcher The coroutine dispatcher (B4.a) to be used.
     * @return The result of the coroutine execution (C3137A.f25453a).
     */
    @Override // C4.a
    public final Object invokeSuspend(Object dispatcher) {
        // Get the default dispatcher (B4.a.f492a).
        B4.a defaultDispatcher = B4.a.f492a;
        // Validate the dispatcher (AbstractC2467b.l).
        AbstractC2467b.l(dispatcher);
        // Execute the action (this.actionToExecute.invoke()).
        this.actionToExecute.invoke();
        // Return the default dispatcher.
        return C3137A.f25453a;
    }
}
