	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fza_close
_fza_close:                             ## @fza_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, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movl	28(%r13), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	56(%r13), %rdi
	callq	_del_timer_sync
	leaq	44(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_FZA_STATE_UNINITIALIZED@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 48(%r13)
	movq	$0, (%r13)
	movq	_FZA_CONTROL_A_SHUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r13), %rsi
	addq	$4, %rsi
	callq	_writew_o
	movq	32(%r13), %rdi
	addq	$4, %rdi
	callq	_readw_o
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	40(%r13), %edi
	movq	(%r13), %rsi
	movq	_HZ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %edx
	callq	_wait_event_timeout
	movq	%rax, %r15
	movq	32(%r13), %rdi
	callq	_readw_o
	movl	%eax, %edi
	callq	_FZA_STATUS_GET_STATE
	cmpq	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movl	28(%r13), %esi
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.4:
	movslq	(%rbx), %rcx
	leaq	(%rcx,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rax
	subq	%r15, %rax
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	cqto
	idivq	%rcx
	jmp	LBB0_7
LBB0_1:
	movl	28(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rdx
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_FZA_RING_RX_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	xorl	%ebx, %ebx
	movq	_FZA_RX_BUFFER_SIZE@GOTPCREL(%rip), %r14
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	24(%r13), %edi
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	(%r14), %edx
	movl	(%r12), %ecx
	callq	_dma_unmap_single
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_dev_kfree_skb
	movq	16(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movq	8(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r15), %eax
	jmp	LBB0_11
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: queue stopped\n"

	.comm	_FZA_STATE_UNINITIALIZED,8,3    ## @FZA_STATE_UNINITIALIZED
	.comm	_FZA_CONTROL_A_SHUT,4,2         ## @FZA_CONTROL_A_SHUT
	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"%s: SHUT timed out!, state %x\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"%s: SHUT failed!, state %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: SHUT: %lums elapsed\n"

	.comm	_FZA_RING_RX_SIZE,4,2           ## @FZA_RING_RX_SIZE
	.comm	_FZA_RX_BUFFER_SIZE,4,2         ## @FZA_RX_BUFFER_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_fza_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fza_close
_fza_close:                             ; @fza_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	w1, [x19, #28]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	add	x0, x19, #56
	bl	_del_timer_sync
	add	x20, x19, #44
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x21, _FZA_STATE_UNINITIALIZED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FZA_STATE_UNINITIALIZED@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x19, #48]
	str	xzr, [x19]
Lloh4:
	adrp	x8, _FZA_CONTROL_A_SHUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FZA_CONTROL_A_SHUT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
	add	x1, x8, #4
	bl	_writew_o
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	bl	_readw_o
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #40]
	ldr	x1, [x19]
Lloh7:
	adrp	x22, _HZ@GOTPAGE
Lloh8:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w9, w8, #4
	sub	w2, w9, w8
	bl	_wait_event_timeout
	mov	x20, x0
	ldr	x0, [x19, #32]
	bl	_readw_o
	bl	_FZA_STATUS_GET_STATE
	mov	x2, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x21]
	ldr	w1, [x19, #28]
	cmp	x2, x8
	b.ne	LBB0_8
; %bb.2:
	ldrsw	x8, [x22]
	lsl	x9, x8, #4
	sub	x9, x9, x8
	sub	x9, x9, x20
	mov	w10, #1000
	mul	x9, x9, x10
	sdiv	x8, x9, x8
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
Lloh11:
	adrp	x20, _FZA_RING_RX_SIZE@GOTPAGE
Lloh12:
	ldr	x20, [x20, _FZA_RING_RX_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x21, #0
Lloh13:
	adrp	x22, _FZA_RX_BUFFER_SIZE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _FZA_RX_BUFFER_SIZE@GOTPAGEOFF]
Lloh15:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x21, lsl #3]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	lsl	x24, x21, #3
	ldr	x1, [x8, x24]
	ldr	w2, [x22]
	ldr	w3, [x23]
	bl	_dma_unmap_single
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x24]
	bl	_dev_kfree_skb
	ldp	x9, x8, [x19, #8]
	str	xzr, [x8, x24]
	str	xzr, [x9, x24]
	ldr	w8, [x20]
	b	LBB0_4
LBB0_7:
	ldr	w1, [x19, #28]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_pr_err
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: queue stopped\n"

	.comm	_FZA_STATE_UNINITIALIZED,8,3    ; @FZA_STATE_UNINITIALIZED
	.comm	_FZA_CONTROL_A_SHUT,4,2         ; @FZA_CONTROL_A_SHUT
	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"%s: SHUT timed out!, state %x\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"%s: SHUT failed!, state %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: SHUT: %lums elapsed\n"

	.comm	_FZA_RING_RX_SIZE,4,2           ; @FZA_RING_RX_SIZE
	.comm	_FZA_RX_BUFFER_SIZE,4,2         ; @FZA_RX_BUFFER_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_fza_close
.subsections_via_symbols
