	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofwn_init
_ofwn_init:                             ## @ofwn_init
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_chosen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$64, %ecx
	callq	_OF_getprop
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, (%rax)
LBB0_2:
	leaq	-96(%rbp), %rdi
	callq	_OF_finddevice
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	$6, %ecx
	callq	_OF_getprop
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.3:
	movq	(%r14), %rdi
	callq	_ether_sprintf
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	-96(%rbp), %rdi
	callq	_OF_open
	movq	_netinstance@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	_dmabuf@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$65536, %r8d                    ## imm = 0x10000
	movq	%rbx, %r9
	callq	_OF_call_method
	testq	%rax, %rax
	jns	LBB0_8
## %bb.6:
	movq	(%rbx), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_7
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_7:
	movl	$10, %edi
	callq	_putchar
	leaq	L_.str.7(%rip), %rdi
	leaq	-96(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_OF_enter
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_chosen,4,2                     ## @chosen
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bootpath"

L_.str.1:                               ## @.str.1
	.asciz	"local-mac-address"

L_.str.2:                               ## @.str.2
	.asciz	"boot: ethernet address: %s\n"

	.comm	_netinstance,4,2                ## @netinstance
	.comm	_dmabuf,8,3                     ## @dmabuf
L_.str.4:                               ## @.str.4
	.asciz	"dma-alloc"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to allocate DMA buffer (got %p).\n"

L_.str.7:                               ## @.str.7
	.asciz	"Could not boot from %s.\n"

L_str:                                  ## @str
	.asciz	"Could not open network device."

	.no_dead_strip	_ofwn_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofwn_init
_ofwn_init:                             ; @ofwn_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
Lloh3:
	adrp	x8, _chosen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _chosen@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	w3, #64
	bl	_OF_getprop
	add	x0, sp, #8
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x0]
LBB0_2:
	add	x20, sp, #8
	add	x0, sp, #8
	bl	_OF_finddevice
	ldr	x2, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #6
	bl	_OF_getprop
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	ldr	x0, [x19]
	bl	_ether_sprintf
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	x0, sp, #8
	bl	_OF_open
Lloh12:
	adrp	x8, _netinstance@GOTPAGE
Lloh13:
	ldr	x8, [x8, _netinstance@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x1, x0
Lloh15:
	adrp	x19, _dmabuf@GOTPAGE
Lloh16:
	ldr	x19, [x19, _dmabuf@GOTPAGEOFF]
	str	xzr, [x19]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w2, #1
	mov	w3, #1
	mov	w4, #65536
	mov	x5, x19
	bl	_OF_call_method
	tbz	x0, #63, LBB0_8
; %bb.5:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x0, l_str@PAGE
Lloh22:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_7:
	mov	w0, #10
	bl	_putchar
	str	x20, [sp]
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	bl	_OF_enter
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_chosen,4,2                     ; @chosen
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bootpath"

l_.str.1:                               ; @.str.1
	.asciz	"local-mac-address"

l_.str.2:                               ; @.str.2
	.asciz	"boot: ethernet address: %s\n"

	.comm	_netinstance,4,2                ; @netinstance
	.comm	_dmabuf,8,3                     ; @dmabuf
l_.str.4:                               ; @.str.4
	.asciz	"dma-alloc"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to allocate DMA buffer (got %p).\n"

l_.str.7:                               ; @.str.7
	.asciz	"Could not boot from %s.\n"

l_str:                                  ; @str
	.asciz	"Could not open network device."

	.no_dead_strip	_ofwn_init
.subsections_via_symbols
