	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _fdt_grab_space
__fdt_grab_space:                       ## @_fdt_grab_space
	.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	%rsi, %r13
	movq	%rdi, %rbx
	callq	_fdt_size_dt_struct
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fdt_totalsize
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_fdt_off_dt_struct
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_fdt_size_dt_strings
	movslq	%r14d, %rsi
	addq	%r13, %rsi
	jb	LBB0_2
## %bb.1:
	addl	%eax, %r12d
	subl	%r12d, %r15d
	movslq	%r15d, %rax
	cmpq	%rax, %rsi
	jbe	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_fdt_set_size_dt_struct
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__fdt_offset_ptr_w              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__fdt_grab_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _fdt_grab_space
__fdt_grab_space:                       ; @_fdt_grab_space
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x19, x0
	bl	_fdt_size_dt_struct
	mov	x20, x0
	mov	x0, x19
	bl	_fdt_totalsize
	mov	x21, x0
	mov	x0, x19
	bl	_fdt_off_dt_struct
	mov	x22, x0
	mov	x0, x19
	bl	_fdt_size_dt_strings
	adds	x1, x23, w20, sxtw
	b.hs	LBB0_2
; %bb.1:
	add	w8, w22, w0
	sub	w8, w21, w8
	cmp	x1, w8, sxtw
	b.ls	LBB0_3
LBB0_2:
	mov	x0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_fdt_set_size_dt_struct
	mov	x0, x19
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	__fdt_offset_ptr_w
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__fdt_grab_space
.subsections_via_symbols
