	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_cmd_mknode
_fdt_cmd_mknode:                        ## @fdt_cmd_mknode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	$0, -24(%rbp)
	cmpl	$3, %edi
	jl	LBB0_9
## %bb.1:
	movq	16(%rsi), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	callq	_fdt_extract_nameloc
	movq	_CMD_ERROR@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_fdtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-12(%rbp), %esi
	movq	-24(%rbp), %rdx
	callq	_fdt_add_subnode
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_CMD_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_9:
	movq	_command_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	_CMD_ERROR@GOTPCREL(%rip), %rbx
LBB0_8:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rcx
	movq	_command_errbuf@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	addl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	callq	_sprintf
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_command_errbuf,4,2             ## @command_errbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no node name specified"

	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
	.comm	_fdtp,4,2                       ## @fdtp
	.comm	_FDT_ERR_NOSPACE,4,2            ## @FDT_ERR_NOSPACE
L_.str.1:                               ## @.str.1
	.asciz	"Device tree blob is too small!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not add node!\n"

	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.no_dead_strip	_fdt_cmd_mknode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_cmd_mknode
_fdt_cmd_mknode:                        ; @fdt_cmd_mknode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	str	xzr, [sp, #8]
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x1, #16]
	str	x8, [sp, #16]
	add	x0, sp, #16
	add	x1, sp, #8
	sub	x2, x29, #4
	bl	_fdt_extract_nameloc
	cbnz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _fdtp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fdtp@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldur	w1, [x29, #-4]
	ldr	x2, [sp, #8]
	bl	_fdt_add_subnode
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _command_errbuf@GOTPAGE
Lloh6:
	ldr	x8, [x8, _command_errbuf@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	bl	_sprintf
LBB0_6:
Lloh10:
	adrp	x8, _CMD_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	mov	x8, x0
Lloh12:
	adrp	x9, _FDT_ERR_NOSPACE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FDT_ERR_NOSPACE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _command_errbuf@GOTPAGE
Lloh16:
	ldr	x10, [x10, _command_errbuf@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x10]
	cmn	w8, w9
	b.ne	LBB0_10
; %bb.9:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_10:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_command_errbuf,4,2             ; @command_errbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no node name specified"

	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
	.comm	_fdtp,4,2                       ; @fdtp
	.comm	_FDT_ERR_NOSPACE,4,2            ; @FDT_ERR_NOSPACE
l_.str.1:                               ; @.str.1
	.asciz	"Device tree blob is too small!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not add node!\n"

	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.no_dead_strip	_fdt_cmd_mknode
.subsections_via_symbols
