	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ApplyDynamicListener           ## -- Begin function ApplyDynamicListener
	.p2align	4, 0x90
_ApplyDynamicListener:                  ## @ApplyDynamicListener
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_Lock
	movq	8(%rbx), %rdi
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.3:
	movl	24(%rbx), %edi
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	callq	_NewListener
	jmp	LBB0_6
LBB0_8:
	retq
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	callq	_StopListener
	movq	8(%rbx), %rdi
	callq	_ReleaseListener
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, 8(%rbx)
LBB0_7:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Unlock                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WHERE,4,2                      ## @WHERE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ApplyDynamicListener           ; -- Begin function ApplyDynamicListener
	.p2align	2
_ApplyDynamicListener:                  ; @ApplyDynamicListener
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_remember_state
	mov	x19, x0
	ldr	w0, [x0]
	bl	_Lock
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_5
; %bb.2:
	cbnz	x0, LBB0_8
; %bb.3:
	ldp	w1, w0, [x19, #20]
	ldr	w2, [x19, #16]
	bl	_NewListener
	b	LBB0_7
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_5:
	.cfi_restore_state
	cbz	x0, LBB0_8
; %bb.6:
	bl	_StopListener
	ldr	x0, [x19, #8]
	bl	_ReleaseListener
	mov	x0, #0
LBB0_7:
	str	x0, [x19, #8]
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Unlock
	.cfi_endproc
                                        ; -- End function
	.comm	_WHERE,4,2                      ; @WHERE
.subsections_via_symbols
