	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax_open
_ax_open:                               ## @ax_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	_to_ax_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	48(%r14), %rdi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movq	_ax_ei_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r14), %edx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ax_ei_open
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	32(%r14), %rax
	movl	(%rax), %r12d
	movq	(%r15), %r15
	movl	$23, %edi
	callq	_EI_SHIFT
	addq	%rax, %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_ei_outb
	movl	$1, (%r14)
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_init_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, 24(%r14)
	movq	%rbx, 8(%r14)
	movq	_ax_mii_expiry@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	callq	_add_timer
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: open\n"

	.comm	_ax_ei_interrupt,4,2            ## @ax_ei_interrupt
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ax_mii_expiry,4,2              ## @ax_mii_expiry
	.no_dead_strip	_ax_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax_open
_ax_open:                               ; @ax_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	_to_ax_dev
	mov	x20, x0
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	ldr	x0, [x20, #48]
	ldr	w2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _ax_ei_interrupt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ax_ei_interrupt@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20, #40]
	ldp	w3, w0, [x19]
	mov	x4, x19
	bl	_request_irq
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ax_ei_open
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x20, #32]
	ldr	w22, [x8]
	ldr	x21, [x21]
	mov	w0, #23
	bl	_EI_SHIFT
	add	x1, x0, x21
	mov	x0, x22
	bl	_ei_outb
	mov	w8, #1
	str	w8, [x20]
	add	x21, x20, #8
	mov	x0, x21
	bl	_init_timer
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x8, x8, #1
	str	x8, [x20, #24]
	str	x19, [x20, #8]
Lloh8:
	adrp	x8, _ax_mii_expiry@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ax_mii_expiry@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x21
	bl	_add_timer
	mov	w0, #0
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: open\n"

	.comm	_ax_ei_interrupt,4,2            ; @ax_ei_interrupt
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ax_mii_expiry,4,2              ; @ax_mii_expiry
	.no_dead_strip	_ax_open
.subsections_via_symbols
