	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_leaf
_find_leaf:                             ## @find_leaf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_LEAF_NODE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r13
	movslq	(%r15), %r14
	movl	-4(%r13,%r14,8), %edi
	callq	_dm_block_data
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, (%r12)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-8(%r13,%r14,8), %esi
	movq	%rbx, %rdi
	callq	_value_ptr
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_push_node
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEAF_NODE,4,2                  ## @LEAF_NODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"push_node failed"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_find_leaf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_leaf
_find_leaf:                             ; @find_leaf
	.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, x0
Lloh0:
	adrp	x21, _LEAF_NODE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LEAF_NODE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x22, x8, x9, lsl #3
	ldur	w0, [x22, #-4]
	bl	_dm_block_data
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_le32_to_cpu
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x8, x22, #8
	ldr	w1, [x8]
	mov	x0, x20
	bl	_value_ptr
	mov	x1, x0
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_push_node
	cbz	w0, LBB0_1
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
	bl	_le32_to_cpu
	cbz	w0, LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _ENODATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LEAF_NODE,4,2                  ; @LEAF_NODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"push_node failed"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_find_leaf
.subsections_via_symbols
