	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_sw_init
_e1000_sw_init:                         ## @e1000_sw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MAXIMUM_ETHERNET_VLAN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rdi)
	callq	_e1000_alloc_queues
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_e_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_e1000_irq_disable
	leaq	12(%rbx), %rdi
	callq	_spin_lock_init
	movq	___E1000_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXIMUM_ETHERNET_VLAN_SIZE,4,2 ## @MAXIMUM_ETHERNET_VLAN_SIZE
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for queues\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	___E1000_DOWN,4,2               ## @__E1000_DOWN
	.no_dead_strip	_e1000_sw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_sw_init
_e1000_sw_init:                         ; @e1000_sw_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _MAXIMUM_ETHERNET_VLAN_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXIMUM_ETHERNET_VLAN_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	movi.2s	v0, #1
	str	d0, [x0]
	bl	_e1000_alloc_queues
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _probe@GOTPAGE
Lloh4:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_e1000_irq_disable
	add	x0, x19, #12
	bl	_spin_lock_init
Lloh11:
	adrp	x8, ___E1000_DOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___E1000_DOWN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXIMUM_ETHERNET_VLAN_SIZE,4,2 ; @MAXIMUM_ETHERNET_VLAN_SIZE
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for queues\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	___E1000_DOWN,4,2               ; @__E1000_DOWN
	.no_dead_strip	_e1000_sw_init
.subsections_via_symbols
