	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function corkscrew_close
_corkscrew_close:                       ## @corkscrew_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	_netdev_priv
	movq	%rax, %r13
	movslq	(%r15), %r14
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	_corkscrew_debug@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jle	LBB0_2
## %bb.1:
	movl	20(%r15), %r12d
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_inw
	movl	%eax, %ebx
	movq	_TxStatus@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_inb
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	20(%r15), %esi
	movq	_rx_nocopy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rx_copy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_queued_packet@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_2:
	movq	%r13, %rdi
	addq	$32, %rdi
	callq	_del_timer
	movq	_StatsDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	_RxDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	_TxDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	8(%r15), %rax
	movq	_XCVR_10base2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_StopCoax@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	addq	%r14, %rsi
	callq	_outw
LBB0_4:
	movl	16(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movq	_SetIntrEnb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	addq	%r14, %rsi
	callq	_outw
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_update_stats
	cmpq	$0, 24(%r13)
	je	LBB0_10
## %bb.5:
	movq	_UpListPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	xorl	%edi, %edi
	callq	_outl
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	_dev_kfree_skb
	movq	16(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	cmpq	$0, 8(%r13)
	je	LBB0_16
## %bb.11:
	movq	_DownListPtr@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_outl
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	callq	_dev_kfree_skb
	movq	(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r14), %eax
	jmp	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_corkscrew_debug,4,2            ## @corkscrew_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: corkscrew_close() status %4.4x, Tx status %2.2x.\n"

	.comm	_EL3_STATUS,8,3                 ## @EL3_STATUS
	.comm	_TxStatus,8,3                   ## @TxStatus
L_.str.1:                               ## @.str.1
	.asciz	"%s: corkscrew close stats: rx_nocopy %d rx_copy %d tx_queued %d.\n"

	.comm	_rx_nocopy,4,2                  ## @rx_nocopy
	.comm	_rx_copy,4,2                    ## @rx_copy
	.comm	_queued_packet,4,2              ## @queued_packet
	.comm	_StatsDisable,4,2               ## @StatsDisable
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.comm	_RxDisable,4,2                  ## @RxDisable
	.comm	_TxDisable,4,2                  ## @TxDisable
	.comm	_XCVR_10base2,8,3               ## @XCVR_10base2
	.comm	_StopCoax,4,2                   ## @StopCoax
	.comm	_SetIntrEnb,4,2                 ## @SetIntrEnb
	.comm	_UpListPtr,8,3                  ## @UpListPtr
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_DownListPtr,8,3                ## @DownListPtr
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.no_dead_strip	_corkscrew_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function corkscrew_close
_corkscrew_close:                       ; @corkscrew_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldrsw	x20, [x21]
	mov	x0, x21
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _corkscrew_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _corkscrew_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_2
; %bb.1:
	ldr	w22, [x21, #20]
Lloh3:
	adrp	x8, _EL3_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EL3_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_inw
	mov	x23, x0
Lloh6:
	adrp	x8, _TxStatus@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TxStatus@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_inb
	mov	x3, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_pr_debug
	ldr	w1, [x21, #20]
Lloh11:
	adrp	x8, _rx_nocopy@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rx_nocopy@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _rx_copy@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rx_copy@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _queued_packet@GOTPAGE
Lloh18:
	ldr	x8, [x8, _queued_packet@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_2:
	add	x0, x19, #32
	bl	_del_timer
Lloh22:
	adrp	x8, _StatsDisable@GOTPAGE
Lloh23:
	ldr	x8, [x8, _StatsDisable@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x22, _EL3_CMD@GOTPAGE
Lloh26:
	ldr	x22, [x22, _EL3_CMD@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_outw
Lloh27:
	adrp	x8, _RxDisable@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RxDisable@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_outw
Lloh30:
	adrp	x8, _TxDisable@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TxDisable@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_outw
	ldr	x8, [x21, #8]
Lloh33:
	adrp	x9, _XCVR_10base2@GOTPAGE
Lloh34:
	ldr	x9, [x9, _XCVR_10base2@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh36:
	adrp	x8, _StopCoax@GOTPAGE
Lloh37:
	ldr	x8, [x8, _StopCoax@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_outw
LBB0_4:
	ldr	w0, [x21, #16]
	mov	x1, x21
	bl	_free_irq
Lloh39:
	adrp	x8, _SetIntrEnb@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SetIntrEnb@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_outw
	mov	x0, x20
	mov	x1, x21
	bl	_update_stats
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.5:
Lloh42:
	adrp	x8, _UpListPtr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _UpListPtr@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #0
	bl	_outl
Lloh45:
	adrp	x21, _RX_RING_SIZE@GOTPAGE
Lloh46:
	ldr	x21, [x21, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_dev_kfree_skb
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22, lsl #3]
	ldr	w8, [x21]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.11:
Lloh47:
	adrp	x8, _DownListPtr@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DownListPtr@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #0
	bl	_outl
Lloh50:
	adrp	x20, _TX_RING_SIZE@GOTPAGE
Lloh51:
	ldr	x20, [x20, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x21, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_dev_kfree_skb
	ldr	x8, [x19]
	str	xzr, [x8, x21, lsl #3]
	ldr	w8, [x20]
	b	LBB0_13
LBB0_16:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_corkscrew_debug,4,2            ; @corkscrew_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: corkscrew_close() status %4.4x, Tx status %2.2x.\n"

	.comm	_EL3_STATUS,8,3                 ; @EL3_STATUS
	.comm	_TxStatus,8,3                   ; @TxStatus
l_.str.1:                               ; @.str.1
	.asciz	"%s: corkscrew close stats: rx_nocopy %d rx_copy %d tx_queued %d.\n"

	.comm	_rx_nocopy,4,2                  ; @rx_nocopy
	.comm	_rx_copy,4,2                    ; @rx_copy
	.comm	_queued_packet,4,2              ; @queued_packet
	.comm	_StatsDisable,4,2               ; @StatsDisable
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.comm	_RxDisable,4,2                  ; @RxDisable
	.comm	_TxDisable,4,2                  ; @TxDisable
	.comm	_XCVR_10base2,8,3               ; @XCVR_10base2
	.comm	_StopCoax,4,2                   ; @StopCoax
	.comm	_SetIntrEnb,4,2                 ; @SetIntrEnb
	.comm	_UpListPtr,8,3                  ; @UpListPtr
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_DownListPtr,8,3                ; @DownListPtr
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.no_dead_strip	_corkscrew_close
.subsections_via_symbols
