	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_linux_fixups
_fdt_linux_fixups:                      ## @fdt_linux_fixups
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_fdt_delprop
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_fdt_path_offset
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdx
	leaq	-36(%rbp), %r15
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	callq	_fdt_getprop
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_fdt_getprop
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	callq	_fdt64_to_cpu
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_fdt64_to_cpu
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_fdt_add_mem_rsv
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_fdt_path_offset
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdx
	leaq	-36(%rbp), %r15
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	callq	_fdt_getprop
	movq	%rax, %r14
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_fdt_getprop
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	callq	_fdt32_to_cpu
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_fdt32_to_cpu
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_fdt_add_mem_rsv
LBB0_10:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_fdt_path_offset
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:
	leaq	L_.str.9(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_fdt_delprop
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_fdt_path_offset
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rdx
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_fdt_getprop
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %r14
	movl	-36(%rbp), %r8d
	leaq	L_.str.11(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_fdt_setprop
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_fdt_path_offset
	movl	-36(%rbp), %r8d
	leaq	L_.str.12(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, %rcx
	callq	_fdt_setprop
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/memory@0"

L_.str.1:                               ## @.str.1
	.asciz	"available"

L_.str.2:                               ## @.str.2
	.asciz	"/ibm,opal"

L_.str.3:                               ## @.str.3
	.asciz	"opal-base-address"

L_.str.4:                               ## @.str.4
	.asciz	"opal-runtime-size"

L_.str.5:                               ## @.str.5
	.asciz	"/rtas"

L_.str.6:                               ## @.str.6
	.asciz	"linux,rtas-base"

L_.str.7:                               ## @.str.7
	.asciz	"rtas-size"

L_.str.8:                               ## @.str.8
	.asciz	"/chosen"

L_.str.9:                               ## @.str.9
	.asciz	"cpu"

L_.str.10:                              ## @.str.10
	.asciz	"linux,stdout-package"

L_.str.11:                              ## @.str.11
	.asciz	"stdout"

L_.str.12:                              ## @.str.12
	.asciz	"stdin"

	.no_dead_strip	_fdt_linux_fixups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_linux_fixups
_fdt_linux_fixups:                      ; @fdt_linux_fixups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdt_path_offset
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x1, x0
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fdt_delprop
LBB0_2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fdt_path_offset
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_getprop
	mov	x21, x0
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_getprop
	cbz	x21, LBB0_6
; %bb.4:
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	bl	_fdt64_to_cpu
	mov	x21, x0
	ldr	w0, [x20]
	bl	_fdt64_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_fdt_add_mem_rsv
LBB0_6:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fdt_path_offset
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x20, x0
Lloh12:
	adrp	x2, l_.str.6@PAGE
Lloh13:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_getprop
	mov	x21, x0
Lloh14:
	adrp	x2, l_.str.7@PAGE
Lloh15:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_getprop
	cbz	x21, LBB0_10
; %bb.8:
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x21]
	bl	_fdt32_to_cpu
	mov	x21, x0
	ldr	w0, [x20]
	bl	_fdt32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_fdt_add_mem_rsv
LBB0_10:
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_fdt_path_offset
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x1, x0
Lloh18:
	adrp	x2, l_.str.9@PAGE
Lloh19:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_fdt_delprop
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_fdt_path_offset
	mov	x21, x0
Lloh22:
	adrp	x2, l_.str.10@PAGE
Lloh23:
	add	x2, x2, l_.str.10@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_fdt_getprop
	cbz	x0, LBB0_13
; %bb.12:
	mov	x20, x0
	ldr	w4, [sp, #12]
Lloh24:
	adrp	x2, l_.str.11@PAGE
Lloh25:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_fdt_setprop
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_fdt_path_offset
	mov	x1, x0
	ldr	w4, [sp, #12]
Lloh28:
	adrp	x2, l_.str.12@PAGE
Lloh29:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_fdt_setprop
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/memory@0"

l_.str.1:                               ; @.str.1
	.asciz	"available"

l_.str.2:                               ; @.str.2
	.asciz	"/ibm,opal"

l_.str.3:                               ; @.str.3
	.asciz	"opal-base-address"

l_.str.4:                               ; @.str.4
	.asciz	"opal-runtime-size"

l_.str.5:                               ; @.str.5
	.asciz	"/rtas"

l_.str.6:                               ; @.str.6
	.asciz	"linux,rtas-base"

l_.str.7:                               ; @.str.7
	.asciz	"rtas-size"

l_.str.8:                               ; @.str.8
	.asciz	"/chosen"

l_.str.9:                               ; @.str.9
	.asciz	"cpu"

l_.str.10:                              ; @.str.10
	.asciz	"linux,stdout-package"

l_.str.11:                              ; @.str.11
	.asciz	"stdout"

l_.str.12:                              ; @.str.12
	.asciz	"stdin"

	.no_dead_strip	_fdt_linux_fixups
.subsections_via_symbols
