	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc__app_onrun                 ## -- Begin function isc__app_onrun
	.p2align	4, 0x90
_isc__app_onrun:                        ## @isc__app_onrun
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -40(%rbp)
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_LOCK
	movq	_running@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_ISC_R_ALREADYRUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_isc_task_attach
	movq	-40(%rbp), %rsi
	movq	_ISC_APPEVENT_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movq	%r14, %r8
	movl	$4, %r9d
	callq	_isc_event_allocate
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_on_run@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_ev_link@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_ISC_LIST_APPEND
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_UNLOCK
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lock,4,2                       ## @lock
	.comm	_running,8,3                    ## @running
	.comm	_ISC_R_ALREADYRUNNING,4,2       ## @ISC_R_ALREADYRUNNING
	.comm	_ISC_APPEVENT_SHUTDOWN,4,2      ## @ISC_APPEVENT_SHUTDOWN
	.comm	_ISC_R_NOMEMORY,4,2             ## @ISC_R_NOMEMORY
	.comm	_on_run,4,2                     ## @on_run
	.comm	_ev_link,4,2                    ## @ev_link
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc__app_onrun                 ; -- Begin function isc__app_onrun
	.p2align	2
_isc__app_onrun:                        ; @isc__app_onrun
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, _lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_LOCK
Lloh2:
	adrp	x8, _running@GOTPAGE
Lloh3:
	ldr	x8, [x8, _running@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ISC_R_ALREADYRUNNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISC_R_ALREADYRUNNING@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	add	x1, sp, #8
	mov	x0, x22
	bl	_isc_task_attach
	ldr	x1, [sp, #8]
Lloh7:
	adrp	x8, _ISC_APPEVENT_SHUTDOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISC_APPEVENT_SHUTDOWN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	mov	w5, #4
	bl	_isc_event_allocate
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh10:
	adrp	x8, _on_run@GOTPAGE
Lloh11:
	ldr	x8, [x8, _on_run@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ev_link@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ev_link@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_ISC_LIST_APPEND
Lloh16:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w19, [x8]
Lloh20:
	adrp	x0, _lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_UNLOCK
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_lock,4,2                       ; @lock
	.comm	_running,8,3                    ; @running
	.comm	_ISC_R_ALREADYRUNNING,4,2       ; @ISC_R_ALREADYRUNNING
	.comm	_ISC_APPEVENT_SHUTDOWN,4,2      ; @ISC_APPEVENT_SHUTDOWN
	.comm	_ISC_R_NOMEMORY,4,2             ; @ISC_R_NOMEMORY
	.comm	_on_run,4,2                     ; @on_run
	.comm	_ev_link,4,2                    ; @ev_link
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
