	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofwfdt_fixups
_ofwfdt_fixups:                         ## @ofwfdt_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	movl	%eax, -308(%rbp)
	leaq	-304(%rbp), %r12
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$255, %edx
	callq	_OF_package_to_path
	leaq	L_.str.1(%rip), %rsi
	leaq	-316(%rbp), %rdx
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_getprop
	movl	-316(%rbp), %esi
	xorl	%edi, %edi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_OF_claim
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_OF_open
	movl	$0, -312(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	-312(%rbp), %r12
	movq	%rax, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_OF_call_method
	movl	-312(%rbp), %edi
	callq	_cpu_to_fdt32
	movl	%eax, -312(%rbp)
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_fdt_setprop
	movl	%r13d, %edi
	callq	_cpu_to_fdt32
	movl	%eax, -312(%rbp)
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_fdt_setprop
	movl	-312(%rbp), %esi
	movl	-316(%rbp), %edx
	movq	%r14, %rdi
	callq	_fdt_add_mem_rsv
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_fdt_path_offset
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_fdt_delprop
LBB0_4:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_fdt_path_offset
	testl	%eax, %eax
	jle	LBB0_17
## %bb.5:
	movl	%eax, %ebx
	movq	$0, -272(%rbp)
	leaq	L_.str.8(%rip), %r12
	movq	%r12, -304(%rbp)
	leaq	-296(%rbp), %r15
	leaq	L_.str.9(%rip), %rax
	movq	%rax, -296(%rbp)
	leaq	L_.str.10(%rip), %rax
	movq	%rax, -288(%rbp)
	leaq	L_.str.11(%rip), %rax
	movq	%rax, -280(%rbp)
	leaq	L_.str.7(%rip), %r13
	movq	%r14, -328(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rsi
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-308(%rbp), %r13
	movq	%r13, %rdx
	movl	$4, %ecx
	callq	_OF_getprop
	movq	-328(%rbp), %r14                ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-308(%rbp), %edi
	callq	_cpu_to_fdt32
	movl	%eax, -308(%rbp)
	movq	%r14, %rdi
	movl	-332(%rbp), %esi                ## 4-byte Reload
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	$4, %r8d
	callq	_fdt_setprop
	movq	%rbx, %r13
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_fdt_path_offset
	movl	%eax, %ebx
	movq	(%r15), %r12
	addq	$8, %r15
	testq	%r12, %r12
	je	LBB0_17
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	leaq	-316(%rbp), %rcx
	callq	_fdt_getprop
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$4, -316(%rbp)
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, -332(%rbp)                ## 4-byte Spill
	movq	%r13, %rbx
	leaq	L_.str.13(%rip), %r14
	movl	(%rax), %edi
	callq	_fdt32_to_cpu
	movl	%eax, %edi
	callq	_OF_instance_to_package
	movl	%eax, -308(%rbp)
	movl	%eax, %edi
	leaq	L_.str.12(%rip), %r13
	movq	%r13, %rsi
	callq	_OF_hasprop
	movl	-308(%rbp), %edi
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rsi
	callq	_OF_hasprop
	movl	-308(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.14(%rip), %rsi
	callq	_OF_hasprop
	testq	%rax, %rax
	movq	-328(%rbp), %r14                ## 8-byte Reload
	leaq	-308(%rbp), %r13
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-308(%rbp), %edi
	leaq	L_.str.14(%rip), %rsi
	movq	%r13, %rdx
	movl	$4, %ecx
	callq	_OF_getprop
	jmp	LBB0_15
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/rtas"

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

L_.str.2:                               ## @.str.2
	.asciz	"instantiate-rtas"

L_.str.3:                               ## @.str.3
	.asciz	"linux,rtas-entry"

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

L_.str.5:                               ## @.str.5
	.asciz	"/memory@0"

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

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

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

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

L_.str.10:                              ## @.str.10
	.asciz	"mmu"

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

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

L_.str.13:                              ## @.str.13
	.asciz	"linux,phandle"

L_.str.14:                              ## @.str.14
	.asciz	"ibm,phandle"

	.no_dead_strip	_ofwfdt_fixups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofwfdt_fixups
_ofwfdt_fixups:                         ; @ofwfdt_fixups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdt_path_offset
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_OF_finddevice
	mov	x22, x0
	str	w0, [sp, #16]
	add	x1, sp, #24
	mov	w2, #255
	bl	_OF_package_to_path
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #20
	mov	x0, x22
	mov	w3, #4
	bl	_OF_getprop
	ldr	w1, [sp, #20]
	mov	w0, #0
	mov	w2, #4096
	bl	_OF_claim
	mov	x22, x0
	add	x0, sp, #24
	bl	_OF_open
	mov	x1, x0
	str	wzr, [sp, #12]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x5, sp, #12
	mov	w2, #1
	mov	w3, #1
	mov	x4, x1
	bl	_OF_call_method
	ldr	w0, [sp, #12]
	bl	_cpu_to_fdt32
	str	w0, [sp, #12]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w4, #4
	bl	_fdt_setprop
	mov	x0, x22
	bl	_cpu_to_fdt32
	str	w0, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_path_offset
	mov	x1, x0
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_fdt_setprop
	ldr	w1, [sp, #12]
	ldr	w2, [sp, #20]
	mov	x0, x19
	bl	_fdt_add_mem_rsv
	b	LBB0_4
LBB0_2:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fdt_path_offset
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x1, x0
Lloh17:
	adrp	x2, l_.str.6@PAGE
Lloh18:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_fdt_delprop
LBB0_4:
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_fdt_path_offset
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.5:
	mov	x20, x0
Lloh21:
	adrp	x21, l_.str.8@PAGE
Lloh22:
	add	x21, x21, l_.str.8@PAGEOFF
	add	x8, sp, #24
	add	x26, x8, #8
Lloh23:
	adrp	x8, l_.str.9@PAGE
Lloh24:
	add	x8, x8, l_.str.9@PAGEOFF
	stp	x21, x8, [sp, #24]
Lloh25:
	adrp	x8, l_.str.10@PAGE
Lloh26:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh27:
	adrp	x9, l_.str.11@PAGE
Lloh28:
	add	x9, x9, l_.str.11@PAGEOFF
	str	x8, [sp, #40]
	stp	x9, xzr, [sp, #48]
Lloh29:
	adrp	x22, l_.str.12@PAGE
Lloh30:
	add	x22, x22, l_.str.12@PAGEOFF
Lloh31:
	adrp	x23, l_.str.13@PAGE
Lloh32:
	add	x23, x23, l_.str.13@PAGEOFF
Lloh33:
	adrp	x24, l_.str.14@PAGE
Lloh34:
	add	x24, x24, l_.str.14@PAGEOFF
Lloh35:
	adrp	x25, l_.str.7@PAGE
Lloh36:
	add	x25, x25, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x2, sp, #16
	mov	x1, x22
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w3, #4
	bl	_OF_getprop
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [sp, #16]
	bl	_cpu_to_fdt32
	str	w0, [sp, #16]
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w4, #4
	bl	_fdt_setprop
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_fdt_path_offset
	mov	x20, x0
	ldr	x21, [x26], #8
	cbz	x21, LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_fdt_getprop
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #20]
	cmp	w8, #4
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x0]
	bl	_fdt32_to_cpu
	bl	_OF_instance_to_package
	str	w0, [sp, #16]
	mov	x1, x22
	bl	_OF_hasprop
	mov	x8, x0
	ldr	w0, [sp, #16]
	cbnz	x8, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x23
	bl	_OF_hasprop
	mov	x8, x0
	ldr	w0, [sp, #16]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x2, sp, #16
	mov	x1, x23
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x24
	bl	_OF_hasprop
	cbz	x0, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [sp, #16]
	add	x2, sp, #16
	mov	x1, x24
	b	LBB0_7
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/rtas"

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

l_.str.2:                               ; @.str.2
	.asciz	"instantiate-rtas"

l_.str.3:                               ; @.str.3
	.asciz	"linux,rtas-entry"

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

l_.str.5:                               ; @.str.5
	.asciz	"/memory@0"

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

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

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

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

l_.str.10:                              ; @.str.10
	.asciz	"mmu"

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

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

l_.str.13:                              ; @.str.13
	.asciz	"linux,phandle"

l_.str.14:                              ; @.str.14
	.asciz	"ibm,phandle"

	.no_dead_strip	_ofwfdt_fixups
.subsections_via_symbols
