	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_fixup
_fdt_fixup:                             ## @fdt_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_debugf
	movq	_fdtp@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
LBB0_3:
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_fdt_subnode_offset
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_fdt_add_subnode
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_fdt_getprop
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_fdt_platform_fixups
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_fdt_subnode_offset
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_fdt_setprop
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fdt_setup_fdtp
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fdt_fixup()\n"

	.comm	_fdtp,8,3                       ## @fdtp
L_.str.1:                               ## @.str.1
	.asciz	"chosen"

	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
L_.str.2:                               ## @.str.2
	.asciz	"fixup-applied"

	.no_dead_strip	_fdt_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_fixup
_fdt_fixup:                             ; @fdt_fixup
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debugf
Lloh2:
	adrp	x19, _fdtp@GOTPAGE
Lloh3:
	ldr	x19, [x19, _fdtp@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_6
LBB0_1:
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_fdt_subnode_offset
	mov	x1, x0
Lloh6:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_fdt_add_subnode
	mov	x1, x0
LBB0_3:
	ldr	x0, [x19]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, #0
	bl	_fdt_getprop
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_fdt_platform_fixups
	ldr	x0, [x19]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_fdt_subnode_offset
	mov	x1, x0
	ldr	x0, [x19]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, #0
	mov	w4, #0
	bl	_fdt_setprop
LBB0_5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
	bl	_fdt_setup_fdtp
	cbz	x0, LBB0_9
; %bb.7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdt_fixup()\n"

	.comm	_fdtp,8,3                       ; @fdtp
l_.str.1:                               ; @.str.1
	.asciz	"chosen"

	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
l_.str.2:                               ; @.str.2
	.asciz	"fixup-applied"

	.no_dead_strip	_fdt_fixup
.subsections_via_symbols
