	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_event_handle
_find_event_handle:                     ## @find_event_handle
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %esi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	callq	_event_matches
	movq	(%r15), %rcx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rbx
	movq	%rcx, %r15
	testq	%rbx, %rbx
	jne	LBB0_2
	jmp	LBB0_6
LBB0_4:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movl	16(%r14), %esi
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_stat
	movl	12(%rbx), %eax
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_free_handler
	movl	$1, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overriding event (%d) %s:%s with new print handler"

	.no_dead_strip	_find_event_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_event_handle
_find_event_handle:                     ; @find_event_handle
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x20, #20]
	ldr	w3, [x20, #16]
	mov	x0, x19
	bl	_event_matches
	ldr	x8, [x21]
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x8]
	mov	x21, x8
	cbnz	x20, LBB0_2
	b	LBB0_6
LBB0_4:
	cbz	x8, LBB0_6
; %bb.5:
	ldp	w2, w1, [x19, #12]
	ldr	w3, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_stat
	ldr	d0, [x20, #8]
	str	d0, [x19]
	ldr	x8, [x20]
	str	x8, [x21]
	mov	x0, x20
	bl	_free_handler
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overriding event (%d) %s:%s with new print handler"

	.no_dead_strip	_find_event_handle
.subsections_via_symbols
