	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofw_initrd_probe_and_attach
_ofw_initrd_probe_and_attach:           ## @ofw_initrd_probe_and_attach
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_hw_direct_map@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	testq	%rax, %rax
	jle	LBB0_17
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_OF_hasprop
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_OF_hasprop
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_OF_getencprop
	cmpl	$8, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$4, %eax
	jne	LBB0_11
## %bb.6:
	movl	-40(%rbp), %r14d
	jmp	LBB0_8
LBB0_7:
                                        ## implicit-def: $r14d
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_OF_getencprop
	cmpl	$8, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$4, %eax
	jne	LBB0_15
## %bb.10:
	movl	-40(%rbp), %r15d
	jmp	LBB0_13
LBB0_11:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_16
LBB0_12:
                                        ## implicit-def: $r15d
LBB0_13:
	movl	%r15d, %ebx
	subl	%r14d, %ebx
	jle	LBB0_17
## %bb.14:
	movl	%r14d, %edi
	callq	_PHYS_TO_DMAP
	movq	_mfs_root@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_mfs_root_size@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_17
LBB0_15:
	leaq	L_str.6(%rip), %rdi
LBB0_16:
	callq	_puts
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_direct_map,4,2              ## @hw_direct_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/chosen"

L_.str.1:                               ## @.str.1
	.asciz	"linux,initrd-start"

L_.str.2:                               ## @.str.2
	.asciz	"linux,initrd-end"

	.comm	_mfs_root,8,3                   ## @mfs_root
	.comm	_mfs_root_size,4,2              ## @mfs_root_size
L_.str.5:                               ## @.str.5
	.asciz	"ofw_initrd: initrd loaded at 0x%08lx-0x%08lx\n"

L_str:                                  ## @str
	.asciz	"ofw_initrd: Wrong linux,initrd-start size"

L_str.6:                                ## @str.6
	.asciz	"ofw_initrd: Wrong linux,initrd-end size"

	.no_dead_strip	_ofw_initrd_probe_and_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofw_initrd_probe_and_attach
_ofw_initrd_probe_and_attach:           ; @ofw_initrd_probe_and_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _hw_direct_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw_direct_map@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_17
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.2:
	mov	x19, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_OF_hasprop
	cbz	w0, LBB0_17
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_OF_hasprop
	cbz	w0, LBB0_17
; %bb.4:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #8
	bl	_OF_getencprop
	cmp	w0, #8
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #4
	b.ne	LBB0_11
; %bb.6:
	ldr	w20, [sp, #16]
	b	LBB0_8
LBB0_7:
                                        ; implicit-def: $w20
LBB0_8:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #8
	bl	_OF_getencprop
	cmp	w0, #8
	b.eq	LBB0_12
; %bb.9:
	cmp	w0, #4
	b.ne	LBB0_15
; %bb.10:
	ldr	w19, [sp, #16]
	b	LBB0_13
LBB0_11:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_16
LBB0_12:
                                        ; implicit-def: $w19
LBB0_13:
	sub	w21, w19, w20
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.14:
	mov	x0, x20
	bl	_PHYS_TO_DMAP
Lloh18:
	adrp	x8, _mfs_root@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mfs_root@GOTPAGEOFF]
Lloh20:
	str	x0, [x8]
Lloh21:
	adrp	x8, _mfs_root_size@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mfs_root_size@GOTPAGEOFF]
Lloh23:
	str	w21, [x8]
	stp	x20, x19, [sp]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	b	LBB0_17
LBB0_15:
Lloh26:
	adrp	x0, l_str.6@PAGE
Lloh27:
	add	x0, x0, l_str.6@PAGEOFF
LBB0_16:
	bl	_puts
LBB0_17:
	ldr	x8, [sp, #24]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_direct_map,4,2              ; @hw_direct_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/chosen"

l_.str.1:                               ; @.str.1
	.asciz	"linux,initrd-start"

l_.str.2:                               ; @.str.2
	.asciz	"linux,initrd-end"

	.comm	_mfs_root,8,3                   ; @mfs_root
	.comm	_mfs_root_size,4,2              ; @mfs_root_size
l_.str.5:                               ; @.str.5
	.asciz	"ofw_initrd: initrd loaded at 0x%08lx-0x%08lx\n"

l_str:                                  ; @str
	.asciz	"ofw_initrd: Wrong linux,initrd-start size"

l_str.6:                                ; @str.6
	.asciz	"ofw_initrd: Wrong linux,initrd-end size"

	.no_dead_strip	_ofw_initrd_probe_and_attach
.subsections_via_symbols
