	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_open_into                  ## -- Begin function fdt_open_into
	.p2align	4, 0x90
_fdt_open_into:                         ## @fdt_open_into
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_fdt_totalsize
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_FDT_CHECK_HEADER
	movq	%r14, %rdi
	callq	_fdt_num_mem_rsv
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_fdt_version
	cmpl	$17, %eax
	jl	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_fdt_size_dt_struct
	movl	%eax, %edx
	movl	%eax, -44(%rbp)
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %r12
	movl	$0, -44(%rbp)
	xorl	%edx, %edx
	leaq	-44(%rbp), %r15
	movq	_FDT_END@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%edx, %esi
	movq	%r15, %rdx
	callq	_fdt_next_tag
	movl	-44(%rbp), %edx
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.4:
	testl	%edx, %edx
	movq	%r12, %rbx
	js	LBB0_15
LBB0_5:
	leal	4(,%r13,4), %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	__fdt_blocks_misordered
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movq	%rbx, %r15
	movl	$4, %edi
	movl	$8, %esi
	callq	_FDT_ALIGN
	movl	%eax, %ebx
	addl	%r13d, %ebx
	addl	-44(%rbp), %ebx
	movq	%r14, %rdi
	callq	_fdt_size_dt_strings
	movl	%eax, %r12d
	addl	%ebx, %r12d
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jg	LBB0_9
## %bb.10:
	movslq	%r12d, %rax
	movq	%r15, %rbx
	leaq	(%r15,%rax), %rcx
	cmpq	%r14, %rcx
	jbe	LBB0_13
## %bb.11:
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	addq	%r14, %rcx
	movq	%rbx, %r15
	cmpq	%rbx, %rcx
	jbe	LBB0_13
## %bb.12:
	addq	%rcx, %rax
	movslq	-48(%rbp), %rdx                 ## 4-byte Folded Reload
	addq	%rbx, %rdx
	movq	%rcx, %r15
	cmpq	%rdx, %rax
	jbe	LBB0_13
LBB0_9:
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	jmp	LBB0_15
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_fdt_move
	movl	%eax, %edx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_fdt_set_version
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_fdt_set_size_dt_struct
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_fdt_set_totalsize
	jmp	LBB0_14
LBB0_13:
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	__fdt_packblocks
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memmove
	movq	_FDT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fdt_set_magic
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_fdt_set_totalsize
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_fdt_set_version
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_fdt_set_last_comp_version
	movq	%r14, %rdi
	callq	_fdt_boot_cpuid_phys
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fdt_set_boot_cpuid_phys
LBB0_14:
	xorl	%edx, %edx
LBB0_15:
	movl	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_END,8,3                    ## @FDT_END
	.comm	_FDT_ERR_NOSPACE,4,2            ## @FDT_ERR_NOSPACE
	.comm	_FDT_MAGIC,4,2                  ## @FDT_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_open_into                  ; -- Begin function fdt_open_into
	.p2align	2
_fdt_open_into:                         ; @fdt_open_into
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_fdt_totalsize
	mov	x22, x0
	mov	x0, x21
	bl	_FDT_CHECK_HEADER
	mov	x0, x21
	bl	_fdt_num_mem_rsv
	mov	x23, x0
	mov	x0, x21
	bl	_fdt_version
	cmp	w0, #17
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_fdt_size_dt_struct
	mov	x8, x0
	str	w0, [sp, #12]
	b	LBB0_5
LBB0_2:
	mov	w8, #0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x24, _FDT_END@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FDT_END@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x8
	bl	_fdt_next_tag
	ldr	x9, [x24]
	ldr	w8, [sp, #12]
	cmp	x0, x9
	b.ne	LBB0_3
; %bb.4:
	tbnz	w8, #31, LBB0_14
LBB0_5:
	lsl	w9, w23, #2
	add	w23, w9, #4
	mov	x0, x21
	mov	x1, x23
	mov	x2, x8
	bl	__fdt_blocks_misordered
	cbz	w0, LBB0_10
; %bb.6:
	mov	w0, #4
	mov	w1, #8
	bl	_FDT_ALIGN
	ldr	w8, [sp, #12]
	add	w9, w0, w23
	add	w24, w9, w8
	mov	x0, x21
	bl	_fdt_size_dt_strings
	add	w24, w24, w0
	cmp	w24, w20
	b.gt	LBB0_9
; %bb.7:
	add	x8, x21, w22, sxtw
	sxtw	x9, w24
	add	x10, x19, x9
	cmp	x10, x21
	ccmp	x8, x19, #0, hi
	mov	x22, x19
	b.ls	LBB0_12
; %bb.8:
	add	x10, x19, w20, sxtw
	add	x9, x8, x9
	cmp	x9, x10
	mov	x22, x8
	b.ls	LBB0_12
LBB0_9:
Lloh2:
	adrp	x8, _FDT_ERR_NOSPACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_ERR_NOSPACE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_14
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_fdt_move
	mov	x8, x0
	cbnz	w0, LBB0_14
; %bb.11:
	mov	x0, x19
	mov	w1, #17
	bl	_fdt_set_version
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_fdt_set_size_dt_struct
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_set_totalsize
	b	LBB0_13
LBB0_12:
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	__fdt_packblocks
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_memmove
Lloh5:
	adrp	x8, _FDT_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDT_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fdt_set_magic
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_set_totalsize
	mov	x0, x19
	mov	w1, #17
	bl	_fdt_set_version
	mov	x0, x19
	mov	w1, #16
	bl	_fdt_set_last_comp_version
	mov	x0, x21
	bl	_fdt_boot_cpuid_phys
	mov	x1, x0
	mov	x0, x19
	bl	_fdt_set_boot_cpuid_phys
LBB0_13:
	mov	w8, #0
LBB0_14:
	mov	x0, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_END,8,3                    ; @FDT_END
	.comm	_FDT_ERR_NOSPACE,4,2            ; @FDT_ERR_NOSPACE
	.comm	_FDT_MAGIC,4,2                  ; @FDT_MAGIC
.subsections_via_symbols
