	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_node
_create_node:                           ## @create_node
	.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, %r12
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	(%r12), %rdi
	leaq	1(%rax), %r14
	movq	%r14, %rsi
	callq	_realloc_node
	movq	%rax, %rdi
	movq	%rax, (%r12)
	xorl	%r15d, %r15d
	cmpq	%r13, %rbx
	jbe	LBB0_3
## %bb.4:
	movq	%r13, %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movq	(%r12), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_FDT_ERR_BADPATH@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	movl	$-1, %r15d
	movq	%r13, %rdi
	movl	$-1, %esi
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_fdt_add_subnode
	testl	%eax, %eax
	jns	LBB0_10
## %bb.7:
	movl	$-1, %r15d
	movq	%r14, %rdi
	jmp	LBB0_8
LBB0_11:
	movl	$-1, %r15d
	movq	%r13, %rdi
LBB0_8:
	movl	$-1, %esi
	movl	%eax, %edx
LBB0_9:
	callq	_report_error
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_BADPATH,4,2            ## @FDT_ERR_BADPATH
	.no_dead_strip	_create_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_node
_create_node:                           ; @create_node
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x19, x0
	strb	wzr, [x19], #1
	ldr	x0, [x21]
	mov	x1, x19
	bl	_realloc_node
	str	x0, [x21]
	cmp	x22, x20
	b.ls	LBB0_6
; %bb.2:
	mov	x1, x20
	bl	_fdt_path_offset
	mov	x2, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x0, [x21]
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _FDT_ERR_BADPATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_BADPATH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w2, w8
LBB0_5:
	mov	w21, #-1
	mov	x0, x20
	b	LBB0_10
LBB0_6:
	mov	w2, #0
LBB0_7:
	mov	x1, x2
	mov	x2, x19
	bl	_fdt_add_subnode
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w21, #0
	b	LBB0_11
LBB0_9:
	mov	x2, x0
	mov	w21, #-1
	mov	x0, x19
LBB0_10:
	mov	w1, #-1
	bl	_report_error
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_BADPATH,4,2            ; @FDT_ERR_BADPATH
	.no_dead_strip	_create_node
.subsections_via_symbols
