	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efinet_init
_efinet_init:                           ## @efinet_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	callq	_efi_env_net_params
	movq	(%r12), %rsi
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	%rsi, %rcx
	shlq	$4, %rcx
	cmpq	$0, (%rax,%rcx)
	js	LBB0_13
## %bb.1:
	movl	8(%rax,%rcx), %edi
	leaq	8(%r12), %rbx
	movq	_sn_guid@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_OpenProtocolByHandle
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.4:
	movq	(%rbx), %r14
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	_EfiSimpleNetworkStopped@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	*(%r14)
	cmpq	(%r13), %rax
	jne	LBB0_14
## %bb.6:
	movq	24(%r14), %rax
	movq	(%rax), %rax
LBB0_7:
	movq	_EfiSimpleNetworkInitialized@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*8(%r14)
	cmpq	(%r13), %rax
	jne	LBB0_9
LBB0_10:
	movq	_EFI_SIMPLE_NETWORK_RECEIVE_UNICAST@GOTPCREL(%rip), %rax
	movq	_EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*16(%r14)
	cmpq	(%r13), %rax
	je	LBB0_12
## %bb.11:
	movq	(%r12), %rbx
	movq	%rax, %rdi
	callq	_EFI_ERROR_CODE
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	movl	4(%r15), %esi
	movl	$6, %edx
	callq	_bcopy
	movl	$1, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_2:
	movq	(%r12), %rbx
	movq	%rax, %rdi
	callq	_EFI_ERROR_CODE
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_14:
	movq	(%r12), %rbx
	movq	%rax, %rdi
	callq	_EFI_ERROR_CODE
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_9:
	movq	(%r12), %rbx
	movq	%rax, %rdi
	callq	_EFI_ERROR_CODE
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid network interface %d\n"

	.comm	_sn_guid,4,2                    ## @sn_guid
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"net%d: cannot fetch interface data (status=%lu)\n"

	.comm	_EfiSimpleNetworkStopped,8,3    ## @EfiSimpleNetworkStopped
L_.str.2:                               ## @.str.2
	.asciz	"net%d: cannot start interface (status=%lu)\n"

	.comm	_EfiSimpleNetworkInitialized,8,3 ## @EfiSimpleNetworkInitialized
L_.str.3:                               ## @.str.3
	.asciz	"net%d: cannot init. interface (status=%lu)\n"

	.comm	_EFI_SIMPLE_NETWORK_RECEIVE_UNICAST,4,2 ## @EFI_SIMPLE_NETWORK_RECEIVE_UNICAST
	.comm	_EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST,4,2 ## @EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.4:                               ## @.str.4
	.asciz	"net%d: cannot set rx. filters (status=%lu)\n"

	.no_dead_strip	_efinet_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efinet_init
_efinet_init:                           ; @efinet_init
	.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
	ldr	x21, [x0, #8]
	bl	_efi_env_net_params
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x1, [x21]
	lsl	x9, x1, #4
	ldr	x9, [x8, x9]
	tbnz	x9, #63, LBB0_10
; %bb.1:
	add	x8, x8, x1, lsl #4
	ldr	w0, [x8, #8]
	add	x20, x21, #8
Lloh0:
	adrp	x1, _sn_guid@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sn_guid@GOTPAGEOFF]
	mov	x2, x20
	bl	_OpenProtocolByHandle
Lloh2:
	adrp	x22, _EFI_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
	ldr	x20, [x20]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _EfiSimpleNetworkStopped@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EfiSimpleNetworkStopped@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	mov	x0, x20
	blr	x8
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.4:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
LBB0_5:
Lloh7:
	adrp	x9, _EfiSimpleNetworkInitialized@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EfiSimpleNetworkInitialized@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	blr	x8
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_7:
Lloh10:
	adrp	x8, _EFI_SIMPLE_NETWORK_RECEIVE_UNICAST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFI_SIMPLE_NETWORK_RECEIVE_UNICAST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	x8, [x20, #16]
Lloh16:
	adrp	x9, _FALSE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x9]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	mov	x5, #0
	blr	x8
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	ldr	x21, [x21]
	bl	_EFI_ERROR_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_printf
LBB0_9:
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #4]
	mov	w2, #6
	bl	_bcopy
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_13
LBB0_10:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_printf
LBB0_11:
	ldr	x19, [x21]
	bl	_EFI_ERROR_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	mov	x1, x19
	bl	_printf
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
LBB0_14:
	ldr	x19, [x21]
	bl	_EFI_ERROR_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_15:
	ldr	x19, [x21]
	bl	_EFI_ERROR_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid network interface %d\n"

	.comm	_sn_guid,4,2                    ; @sn_guid
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"net%d: cannot fetch interface data (status=%lu)\n"

	.comm	_EfiSimpleNetworkStopped,8,3    ; @EfiSimpleNetworkStopped
l_.str.2:                               ; @.str.2
	.asciz	"net%d: cannot start interface (status=%lu)\n"

	.comm	_EfiSimpleNetworkInitialized,8,3 ; @EfiSimpleNetworkInitialized
l_.str.3:                               ; @.str.3
	.asciz	"net%d: cannot init. interface (status=%lu)\n"

	.comm	_EFI_SIMPLE_NETWORK_RECEIVE_UNICAST,4,2 ; @EFI_SIMPLE_NETWORK_RECEIVE_UNICAST
	.comm	_EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST,4,2 ; @EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.4:                               ; @.str.4
	.asciz	"net%d: cannot set rx. filters (status=%lu)\n"

	.no_dead_strip	_efinet_init
.subsections_via_symbols
