	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_create                     ## -- Begin function fdt_create
	.p2align	4, 0x90
_fdt_create:                            ## @fdt_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$3, %esi
	ja	LBB0_2
## %bb.1:
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	_FDT_SW_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fdt_set_magic
	movq	_FDT_LAST_SUPPORTED_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fdt_set_version
	movq	_FDT_FIRST_SUPPORTED_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fdt_set_last_comp_version
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_fdt_set_totalsize
	movl	$4, %edi
	movl	$4, %esi
	callq	_FDT_ALIGN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fdt_set_off_mem_rsvmap
	movq	%rbx, %rdi
	callq	_fdt_off_mem_rsvmap
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fdt_set_off_dt_struct
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_fdt_set_off_dt_strings
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_NOSPACE,4,2            ## @FDT_ERR_NOSPACE
	.comm	_FDT_SW_MAGIC,4,2               ## @FDT_SW_MAGIC
	.comm	_FDT_LAST_SUPPORTED_VERSION,4,2 ## @FDT_LAST_SUPPORTED_VERSION
	.comm	_FDT_FIRST_SUPPORTED_VERSION,4,2 ## @FDT_FIRST_SUPPORTED_VERSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_create                     ; -- Begin function fdt_create
	.p2align	2
_fdt_create:                            ; @fdt_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #3
	b.hi	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_3
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	mov	w1, #0
	mov	x2, x19
	bl	_memset
Lloh3:
	adrp	x8, _FDT_SW_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDT_SW_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fdt_set_magic
Lloh6:
	adrp	x8, _FDT_LAST_SUPPORTED_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FDT_LAST_SUPPORTED_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fdt_set_version
Lloh9:
	adrp	x8, _FDT_FIRST_SUPPORTED_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FDT_FIRST_SUPPORTED_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fdt_set_last_comp_version
	mov	x0, x20
	mov	x1, x19
	bl	_fdt_set_totalsize
	mov	w0, #4
	mov	w1, #4
	bl	_FDT_ALIGN
	mov	x1, x0
	mov	x0, x20
	bl	_fdt_set_off_mem_rsvmap
	mov	x0, x20
	bl	_fdt_off_mem_rsvmap
	mov	x1, x0
	mov	x0, x20
	bl	_fdt_set_off_dt_struct
	mov	x0, x20
	mov	x1, x19
	bl	_fdt_set_off_dt_strings
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_NOSPACE,4,2            ; @FDT_ERR_NOSPACE
	.comm	_FDT_SW_MAGIC,4,2               ; @FDT_SW_MAGIC
	.comm	_FDT_LAST_SUPPORTED_VERSION,4,2 ; @FDT_LAST_SUPPORTED_VERSION
	.comm	_FDT_FIRST_SUPPORTED_VERSION,4,2 ; @FDT_FIRST_SUPPORTED_VERSION
.subsections_via_symbols
