	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etherh_open
_etherh_open:                           ## @etherh_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edi
	movq	___ei_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movq	$0, (%r15)
	movq	_IFF_AUTOMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	_IF_PORT_10BASET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_etherh_setif
	movl	$1, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	callq	_etherh_getifstat
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_IF_PORT_10BASE2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_etherh_setif
LBB0_6:
	movq	%rbx, %rdi
	callq	_etherh_reset
	movq	%rbx, %rdi
	callq	___ei_open
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___ei_interrupt,4,2             ## @__ei_interrupt
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_IFF_AUTOMEDIA,4,2              ## @IFF_AUTOMEDIA
	.comm	_IF_PORT_10BASET,4,2            ## @IF_PORT_10BASET
	.comm	_IF_PORT_10BASE2,4,2            ## @IF_PORT_10BASE2
	.no_dead_strip	_etherh_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etherh_open
_etherh_open:                           ; @etherh_open
	.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
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, ___ei_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___ei_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w0, [x19, #8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	str	xzr, [x20]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _IFF_AUTOMEDIA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_AUTOMEDIA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _IF_PORT_10BASET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IF_PORT_10BASET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_etherh_setif
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	bl	_etherh_getifstat
	cbnz	w0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _IF_PORT_10BASE2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IF_PORT_10BASE2@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	mov	x0, x19
	bl	_etherh_setif
LBB0_6:
	mov	x0, x19
	bl	_etherh_reset
	mov	x0, x19
	bl	___ei_open
	mov	w0, #0
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	___ei_interrupt,4,2             ; @__ei_interrupt
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_IFF_AUTOMEDIA,4,2              ; @IFF_AUTOMEDIA
	.comm	_IF_PORT_10BASET,4,2            ; @IF_PORT_10BASET
	.comm	_IF_PORT_10BASE2,4,2            ; @IF_PORT_10BASE2
	.no_dead_strip	_etherh_open
.subsections_via_symbols
