	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether3_close
_ether3_close:                          ## @ether3_close
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netif_stop_queue
	movl	(%r15), %edi
	callq	_disable_irq
	movq	_CMD_RXOFF@GOTPCREL(%rip), %rax
	movq	_CMD_TXOFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_REG_COMMAND@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_ether3_outw
	movq	%r15, %rdi
	callq	_priv
	movq	$0, (%rax)
	movq	_REG_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ether3_inw
	movq	_STAT_RXON@GOTPCREL(%rip), %r13
	movq	_STAT_TXON@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	orl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_barrier
	movl	(%r12), %edi
	callq	_ether3_inw
	jmp	LBB0_2
LBB0_3:
	movq	_REG_CONFIG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$4, %rsi
	movl	$128, %edi
	callq	_ether3_outb
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_ether3_outw
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_RXOFF,4,2                  ## @CMD_RXOFF
	.comm	_CMD_TXOFF,4,2                  ## @CMD_TXOFF
	.comm	_REG_COMMAND,4,2                ## @REG_COMMAND
	.comm	_REG_STATUS,4,2                 ## @REG_STATUS
	.comm	_STAT_RXON,4,2                  ## @STAT_RXON
	.comm	_STAT_TXON,4,2                  ## @STAT_TXON
	.comm	_REG_CONFIG2,8,3                ## @REG_CONFIG2
	.no_dead_strip	_ether3_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether3_close
_ether3_close:                          ; @ether3_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netif_stop_queue
	ldr	w0, [x19]
	bl	_disable_irq
Lloh0:
	adrp	x8, _CMD_RXOFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_RXOFF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CMD_TXOFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CMD_TXOFF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x20, _REG_COMMAND@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REG_COMMAND@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	str	xzr, [x0]
Lloh8:
	adrp	x21, _REG_STATUS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _REG_STATUS@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ether3_inw
Lloh10:
	adrp	x22, _STAT_RXON@GOTPAGE
Lloh11:
	ldr	x22, [x22, _STAT_RXON@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh12:
	adrp	x23, _STAT_TXON@GOTPAGE
Lloh13:
	ldr	x23, [x23, _STAT_TXON@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_barrier
	ldr	w0, [x21]
	bl	_ether3_inw
	ldr	w8, [x22]
	b	LBB0_1
LBB0_3:
Lloh14:
	adrp	x8, _REG_CONFIG2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_CONFIG2@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, #4
	mov	w0, #128
	bl	_ether3_outb
	ldr	w1, [x20]
	mov	w0, #0
	bl	_ether3_outw
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_RXOFF,4,2                  ; @CMD_RXOFF
	.comm	_CMD_TXOFF,4,2                  ; @CMD_TXOFF
	.comm	_REG_COMMAND,4,2                ; @REG_COMMAND
	.comm	_REG_STATUS,4,2                 ; @REG_STATUS
	.comm	_STAT_RXON,4,2                  ; @STAT_RXON
	.comm	_STAT_TXON,4,2                  ; @STAT_TXON
	.comm	_REG_CONFIG2,8,3                ; @REG_CONFIG2
	.no_dead_strip	_ether3_close
.subsections_via_symbols
