	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_find_static_dtb
_fdt_find_static_dtb:                   ## @fdt_find_static_dtb
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_debugf
	movq	_relocation_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___elfN
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_file_findfile
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rax, %rbx
	movq	_MODINFOMD_ELFHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_file_findmetadata
	testq	%rax, %rax
	je	LBB0_23
## %bb.2:
	movq	(%rax), %r14
	movq	_MODINFOMD_SHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_file_findmetadata
	testq	%rax, %rax
	je	LBB0_23
## %bb.3:
	movl	(%r14), %edx
	xorl	%r15d, %r15d
	testl	%edx, %edx
	jle	LBB0_23
## %bb.4:
	movq	(%rax), %rcx
	movq	_SHT_DYNSYM@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_SHT_STRTAB@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdi
	movabsq	$-6148914691236517205, %r9      ## imm = 0xAAAAAAAAAAAAAAAB
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rcx,%rsi), %rbx
	addq	%r11, %rbx
	movslq	16(%rcx,%rsi), %rax
	mulq	%r9
	movq	%rdx, %r15
	shrq	$4, %r15
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	$24, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi), %rax
	cmpq	%r10, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r8, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%r14, %r14
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rcx,%rsi), %r14
	addq	%r11, %r14
	jmp	LBB0_6
LBB0_13:
	testl	%r15d, %r15d
	jle	LBB0_23
## %bb.14:
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_COPYOUT
	movl	-64(%rbp), %edi
	callq	_ELF_ST_BIND
	movq	_STB_GLOBAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-64(%rbp), %edi
	callq	_ELF_ST_TYPE
	movq	_STT_NOTYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-80(%rbp), %rdi
	addq	%r14, %rdi
	callq	_strdupout
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	movq	%rax, %r12
	movq	_FDT_STATIC_DTB_SYMBOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_strcmp
	movq	-72(%rbp), %r13
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	testq	%rax, %rax
	movl	$0, %eax
	cmovneq	%rax, %r13
	movq	%r12, %rdi
	movq	%r14, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r13d, %r13d
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$2, %r15d
	jb	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	decl	%r15d
	addq	$24, %rbx
	testq	%r13, %r13
	je	LBB0_15
	jmp	LBB0_24
LBB0_23:
	xorl	%r13d, %r13d
LBB0_24:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fdt_find_static_dtb()\n"

	.comm	_relocation_offset,4,2          ## @relocation_offset
	.comm	_MODINFOMD_ELFHDR,4,2           ## @MODINFOMD_ELFHDR
	.comm	_MODINFOMD_SHDR,4,2             ## @MODINFOMD_SHDR
	.comm	_SHT_DYNSYM,8,3                 ## @SHT_DYNSYM
	.comm	_SHT_STRTAB,8,3                 ## @SHT_STRTAB
	.comm	_STB_GLOBAL,8,3                 ## @STB_GLOBAL
	.comm	_STT_NOTYPE,8,3                 ## @STT_NOTYPE
	.comm	_FDT_STATIC_DTB_SYMBOL,4,2      ## @FDT_STATIC_DTB_SYMBOL
	.no_dead_strip	_fdt_find_static_dtb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_find_static_dtb
_fdt_find_static_dtb:                   ; @fdt_find_static_dtb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debugf
Lloh2:
	adrp	x8, _relocation_offset@GOTPAGE
Lloh3:
	ldr	x8, [x8, _relocation_offset@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	___elfN
	mov	x19, x0
	mov	x0, #0
	mov	x1, #0
	bl	_file_findfile
	cbz	x0, LBB0_18
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _MODINFOMD_ELFHDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODINFOMD_ELFHDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_file_findmetadata
	cbz	x0, LBB0_18
; %bb.2:
	ldr	x21, [x0]
Lloh8:
	adrp	x8, _MODINFOMD_SHDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MODINFOMD_SHDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_file_findmetadata
	cbz	x0, LBB0_18
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.4:
	mov	w24, #0
	mov	x23, #0
	mov	x20, #0
	ldr	x11, [x0]
Lloh11:
	adrp	x9, _SHT_DYNSYM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SHT_DYNSYM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _SHT_STRTAB@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SHT_STRTAB@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x11, x11, #8
	mov	x12, #-6148914691236517206
	movk	x12, #43691
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x11]
	add	x20, x13, x19
	ldrsw	x13, [x11, #8]
	umulh	x13, x13, x12
	lsr	x24, x13, #4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #24
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x11, #-8]
	cmp	x13, x9
	ccmp	x20, #0, #0, eq
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x13, x10
	ccmp	x23, #0, #0, eq
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x11]
	add	x23, x13, x19
	b	LBB0_6
LBB0_10:
	cmp	w24, #1
	b.lt	LBB0_18
; %bb.11:
Lloh17:
	adrp	x25, _STB_GLOBAL@GOTPAGE
Lloh18:
	ldr	x25, [x25, _STB_GLOBAL@GOTPAGEOFF]
Lloh19:
	adrp	x26, _STT_NOTYPE@GOTPAGE
Lloh20:
	ldr	x26, [x26, _STT_NOTYPE@GOTPAGEOFF]
Lloh21:
	adrp	x27, _FDT_STATIC_DTB_SYMBOL@GOTPAGE
Lloh22:
	ldr	x27, [x27, _FDT_STATIC_DTB_SYMBOL@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #24
	bl	_COPYOUT
	ldr	w0, [sp, #24]
	bl	_ELF_ST_BIND
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #24]
	bl	_ELF_ST_TYPE
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #8]
	add	x0, x8, x23
	bl	_strdupout
	mov	x22, x0
	ldr	w1, [x27]
	bl	_strcmp
	ldr	x8, [sp, #16]
	add	x8, x8, x19
	cmp	x0, #0
	csel	x21, x8, xzr, eq
	mov	x0, x22
	bl	_free
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, #0
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w24, #2
	b.lo	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w24, w24, #1
	add	x20, x20, #24
	cbz	x21, LBB0_12
	b	LBB0_19
LBB0_18:
	mov	x21, #0
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdt_find_static_dtb()\n"

	.comm	_relocation_offset,4,2          ; @relocation_offset
	.comm	_MODINFOMD_ELFHDR,4,2           ; @MODINFOMD_ELFHDR
	.comm	_MODINFOMD_SHDR,4,2             ; @MODINFOMD_SHDR
	.comm	_SHT_DYNSYM,8,3                 ; @SHT_DYNSYM
	.comm	_SHT_STRTAB,8,3                 ; @SHT_STRTAB
	.comm	_STB_GLOBAL,8,3                 ; @STB_GLOBAL
	.comm	_STT_NOTYPE,8,3                 ; @STT_NOTYPE
	.comm	_FDT_STATIC_DTB_SYMBOL,4,2      ; @FDT_STATIC_DTB_SYMBOL
	.no_dead_strip	_fdt_find_static_dtb
.subsections_via_symbols
