	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_fdt_memmap
_update_fdt_memmap:                     ## @update_fdt_memmap
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	movq	_EFI_LOAD_ERROR@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	movq	24(%r15), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_fdt64
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_fdt_setprop_inplace_var
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fdt32
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_fdt_setprop_inplace_var
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fdt32
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_fdt_setprop_inplace_var
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fdt32
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_fdt_setprop_inplace_var
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_7
LBB0_5:
	movq	_EFI_LOAD_ERROR@GOTPCREL(%rip), %r12
LBB0_7:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/chosen"

	.comm	_EFI_LOAD_ERROR,4,2             ## @EFI_LOAD_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"linux,uefi-mmap-start"

L_.str.2:                               ## @.str.2
	.asciz	"linux,uefi-mmap-size"

L_.str.3:                               ## @.str.3
	.asciz	"linux,uefi-mmap-desc-size"

L_.str.4:                               ## @.str.4
	.asciz	"linux,uefi-mmap-desc-ver"

	.comm	_EFI_SUCCESS,4,2                ## @EFI_SUCCESS
	.no_dead_strip	_update_fdt_memmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_fdt_memmap
_update_fdt_memmap:                     ; @update_fdt_memmap
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdt_path_offset
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21, #24]
	ldr	x0, [x8]
	bl	_cpu_to_fdt64
	mov	x3, x0
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_setprop_inplace_var
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_cpu_to_fdt32
	mov	x3, x0
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_setprop_inplace_var
	cbz	w0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x22, _EFI_LOAD_ERROR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EFI_LOAD_ERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x22]
	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
LBB0_5:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_cpu_to_fdt32
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_setprop_inplace_var
Lloh10:
	adrp	x22, _EFI_LOAD_ERROR@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EFI_LOAD_ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_4
; %bb.6:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_cpu_to_fdt32
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_fdt_setprop_inplace_var
Lloh14:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
	cmp	w0, #0
	csel	x22, x8, x22, eq
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/chosen"

	.comm	_EFI_LOAD_ERROR,4,2             ; @EFI_LOAD_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"linux,uefi-mmap-start"

l_.str.2:                               ; @.str.2
	.asciz	"linux,uefi-mmap-size"

l_.str.3:                               ; @.str.3
	.asciz	"linux,uefi-mmap-desc-size"

l_.str.4:                               ; @.str.4
	.asciz	"linux,uefi-mmap-desc-ver"

	.comm	_EFI_SUCCESS,4,2                ; @EFI_SUCCESS
	.no_dead_strip	_update_fdt_memmap
.subsections_via_symbols
