	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_resize                     ## -- Begin function fdt_resize
	.p2align	4, 0x90
_fdt_resize:                            ## @fdt_resize
	.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, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_FDT_SW_CHECK_HEADER
	movq	%rbx, %rdi
	callq	_fdt_off_dt_struct
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_fdt_size_dt_strings
	movq	%rax, %r13
	addq	%r12, %rax
	movslq	%r15d, %r14
	cmpq	%r14, %rax
	jbe	LBB0_2
## %bb.1:
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_fdt_totalsize
	movslq	%eax, %r15
	addq	%rbx, %r15
	subq	%r13, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r14
	subq	%r13, %r14
	cmpq	%rbx, %rax
	jbe	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_memmove
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	jmp	LBB0_5
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memmove
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
LBB0_5:
	callq	_memmove
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_fdt_set_off_dt_strings
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fdt_set_totalsize
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_resize                     ; -- Begin function fdt_resize
	.p2align	2
_fdt_resize:                            ; @fdt_resize
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_FDT_SW_CHECK_HEADER
	mov	x0, x21
	bl	_fdt_off_dt_struct
	mov	x22, x0
	mov	x0, x21
	bl	_fdt_size_dt_strings
	sxtw	x25, w19
	add	x8, x0, x22
	cmp	x8, x25
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FDT_ERR_NOSPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_NOSPACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x23, x0
	mov	x0, x21
	bl	_fdt_totalsize
	add	x8, x21, w0, sxtw
	sub	x24, x8, x23
	add	x8, x20, x25
	sub	x25, x8, x23
	cmp	x20, x21
	b.ls	LBB0_4
; %bb.3:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	bl	_memmove
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_memmove
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
LBB0_5:
	bl	_memmove
	mov	x0, x20
	mov	x1, x19
	bl	_fdt_set_off_dt_strings
	mov	x0, x20
	mov	x1, x19
	bl	_fdt_set_totalsize
	mov	w0, #0
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_NOSPACE,4,2            ; @FDT_ERR_NOSPACE
.subsections_via_symbols
