	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_open
_amd8111e_open:                         ## @amd8111e_open
	.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	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	_amd8111e_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_napi_enable
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	%r14, %rdi
	callq	_amd8111e_init_hw_default
	movq	%rbx, %rdi
	callq	_amd8111e_restart
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_napi_disable
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	_OPTION_DYN_IPG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	addq	$12, %rdi
	callq	_add_timer
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_info
LBB0_10:
	movl	$1, 4(%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_netif_start_queue
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_amd8111e_interrupt,4,2         ## @amd8111e_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OPTION_DYN_IPG_ENABLE,4,2      ## @OPTION_DYN_IPG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dynamic IPG Enabled\n"

	.no_dead_strip	_amd8111e_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_open
_amd8111e_open:                         ; @amd8111e_open
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _amd8111e_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd8111e_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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:
	add	x22, x20, #16
	mov	x0, x22
	bl	_napi_enable
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x20
	bl	_amd8111e_init_hw_default
	mov	x0, x19
	bl	_amd8111e_restart
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x22
	bl	_napi_disable
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x19
	bl	_free_irq
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _OPTION_DYN_IPG_ENABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OPTION_DYN_IPG_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	add	x0, x20, #12
	bl	_add_timer
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_11:
	mov	w8, #1
	str	w8, [x20, #4]
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_netif_start_queue
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_amd8111e_interrupt,4,2         ; @amd8111e_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OPTION_DYN_IPG_ENABLE,4,2      ; @OPTION_DYN_IPG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dynamic IPG Enabled\n"

	.no_dead_strip	_amd8111e_open
.subsections_via_symbols
