	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_best_scope
_find_best_scope:                       ## @find_best_scope
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	$0, -40(%rbp)
	movq	%rsi, -32(%rbp)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -20(%rbp)
	movl	12(%rdi), %eax
	movl	%eax, -16(%rbp)
	movq	16(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	(%rdi), %esi
	addq	$4, %rdi
	movq	_find_best_scope_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	callq	_cu_walk_functions_at
	xorl	%eax, %eax
	cmpl	$0, -40(%rbp)
	cmovneq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_find_best_scope_cb,4,2         ## @find_best_scope_cb
	.no_dead_strip	_find_best_scope
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_best_scope
_find_best_scope:                       ; @find_best_scope
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	str	wzr, [sp]
	str	x1, [sp, #8]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	d0, [x0, #8]
	stur	d0, [sp, #20]
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	str	w8, [sp, #28]
	add	x8, x0, #4
	ldr	w1, [x0]
Lloh3:
	adrp	x9, _find_best_scope_cb@GOTPAGE
Lloh4:
	ldr	x9, [x9, _find_best_scope_cb@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x3, sp
	mov	x0, x8
	bl	_cu_walk_functions_at
	ldr	w8, [sp]
	cmp	w8, #0
	csel	x0, xzr, x19, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_find_best_scope_cb,4,2         ; @find_best_scope_cb
	.no_dead_strip	_find_best_scope
.subsections_via_symbols
