	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_open
_ethoc_open:                            ## @ethoc_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	%rax, %r15
	movl	20(%rbx), %ecx
	movl	24(%rbx), %edi
	movq	_ethoc_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_napi_enable
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_ethoc_init_ring
	movq	%r15, %rdi
	callq	_ethoc_reset
	movq	%rbx, %rdi
	callq	_netif_queue_stopped
	leaq	12(%rbx), %r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_netif_wake_queue
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_netif_start_queue
LBB0_4:
	movq	$-1, (%r15)
	movl	16(%rbx), %edi
	callq	_phy_start
	movq	%r15, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ethoc_interrupt,4,2            ## @ethoc_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" resuming queue\n"

L_.str.1:                               ## @.str.1
	.asciz	" starting queue\n"

L_.str.2:                               ## @.str.2
	.asciz	"I/O: %08lx Memory: %08lx-%08lx\n"

	.no_dead_strip	_ethoc_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_open
_ethoc_open:                            ; @ethoc_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	x21, x0
Lloh0:
	adrp	x8, _ethoc_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ethoc_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	w3, w0, [x19, #20]
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	add	x0, x21, #8
	bl	_napi_enable
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_ethoc_init_ring
	mov	x0, x21
	bl	_ethoc_reset
	mov	x0, x19
	bl	_netif_queue_stopped
	add	x22, x19, #12
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	mov	x0, x19
	bl	_netif_wake_queue
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	mov	x0, x19
	bl	_netif_start_queue
LBB0_4:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x21]
	ldr	w0, [x19, #16]
	bl	_phy_start
	mov	x0, x21
	bl	_netif_msg_ifup
	cbz	x0, LBB0_6
; %bb.5:
	ldp	w3, w2, [x19, #4]
	ldr	w4, [x19]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_info
LBB0_6:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ethoc_interrupt,4,2            ; @ethoc_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" resuming queue\n"

l_.str.1:                               ; @.str.1
	.asciz	" starting queue\n"

l_.str.2:                               ; @.str.2
	.asciz	"I/O: %08lx Memory: %08lx-%08lx\n"

	.no_dead_strip	_ethoc_open
.subsections_via_symbols
