	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_finish                     ## -- Begin function fdt_finish
	.p2align	4, 0x90
_fdt_finish:                            ## @fdt_finish
	.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, %r12
	callq	_FDT_SW_CHECK_HEADER
	movq	%r12, %rdi
	movl	$8, %esi
	callq	__fdt_grab_space
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_FDT_END@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cpu_to_fdt32
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_fdt_totalsize
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fdt_size_dt_strings
	subl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fdt_off_dt_struct
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_fdt_size_dt_struct
	addl	%r15d, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r15
	leaq	(%r12,%r15), %r13
	movslq	%ebx, %rbx
	addq	%r12, %rbx
	movq	%r12, %rdi
	callq	_fdt_size_dt_strings
	movq	%r13, %rdi
	movq	%r14, %r13
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memmove
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_fdt_set_off_dt_strings
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_fdt_next_tag
	cmpq	(%r14), %rax
	jne	LBB0_4
LBB0_10:
	movq	%r12, %rdi
	callq	_fdt_size_dt_strings
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	addl	%eax, %esi
	movq	%r12, %rdi
	callq	_fdt_set_totalsize
	movq	_FDT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_fdt_set_magic
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_FDT_PROP@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_fdt_next_tag
	cmpq	(%r13), %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_fdt_offset_ptr_w
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_fdt32_to_cpu
	movq	%r14, %r15
	movq	%r13, %r14
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_fdt_size_dt_strings
	addl	%eax, %r13d
	movl	%r13d, %edi
	movq	%r14, %r13
	movq	%r15, %r14
	leaq	-44(%rbp), %r15
	callq	_cpu_to_fdt32
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_NOSPACE,4,2            ## @FDT_ERR_NOSPACE
	.comm	_FDT_END,8,3                    ## @FDT_END
	.comm	_FDT_PROP,8,3                   ## @FDT_PROP
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
	.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_finish                     ; -- Begin function fdt_finish
	.p2align	2
_fdt_finish:                            ; @fdt_finish
	.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	x19, x0
	bl	_FDT_SW_CHECK_HEADER
	mov	x0, x19
	mov	w1, #8
	bl	__fdt_grab_space
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _FDT_END@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FDT_END@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cpu_to_fdt32
	str	x0, [x20]
	mov	x0, x19
	bl	_fdt_totalsize
	mov	x20, x0
	mov	x0, x19
	bl	_fdt_size_dt_strings
	sub	w22, w20, w0
	mov	x0, x19
	bl	_fdt_off_dt_struct
	mov	x20, x0
	mov	x0, x19
	bl	_fdt_size_dt_struct
	add	w20, w0, w20
	add	x21, x19, w20, sxtw
	add	x22, x19, w22, sxtw
	mov	x0, x19
	bl	_fdt_size_dt_strings
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memmove
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_set_off_dt_strings
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_fdt_next_tag
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_fdt_size_dt_strings
	add	w1, w0, w20
	mov	x0, x19
	bl	_fdt_set_totalsize
Lloh2:
	adrp	x8, _FDT_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fdt_set_magic
	mov	w0, #0
	b	LBB0_11
LBB0_3:
Lloh5:
	adrp	x8, _FDT_ERR_NOSPACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDT_ERR_NOSPACE@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	mov	w21, #0
Lloh7:
	adrp	x24, _FDT_PROP@GOTPAGE
Lloh8:
	ldr	x24, [x24, _FDT_PROP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w21, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_fdt_next_tag
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	_fdt_offset_ptr_w
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_fdt32_to_cpu
	mov	x22, x0
	mov	x0, x19
	bl	_fdt_size_dt_strings
	add	w0, w0, w22
	bl	_cpu_to_fdt32
	str	x0, [x21]
	b	LBB0_5
LBB0_9:
Lloh9:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_NOSPACE,4,2            ; @FDT_ERR_NOSPACE
	.comm	_FDT_END,8,3                    ; @FDT_END
	.comm	_FDT_PROP,8,3                   ; @FDT_PROP
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
	.comm	_FDT_MAGIC,4,2                  ; @FDT_MAGIC
.subsections_via_symbols
