	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_farch_handle_rx_flush_done
_ef4_farch_handle_rx_flush_done:        ## @ef4_farch_handle_rx_flush_done
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	movq	_FSF_AZ_DRIVER_EV_RX_DESCQ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	movl	%eax, %r13d
	movl	(%rbx), %edi
	movq	_FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	cmpl	(%r14), %r13d
	jge	LBB0_6
## %bb.1:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ef4_get_channel
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ef4_channel_has_rx_queue
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	callq	_ef4_channel_get_rx_queue
	movq	%rax, %r12
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r13d, %r8d
	callq	_netif_info
	movl	$1, (%r12)
	leaq	12(%r14), %rdi
	callq	_atomic_inc
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_ef4_rx_queue_channel
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_EF4_CHANNEL_MAGIC_RX_DRAIN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ef4_farch_magic_event
LBB0_5:
	leaq	8(%r14), %rdi
	callq	_atomic_dec
	movq	%r14, %rdi
	callq	_ef4_farch_flush_wake
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	addq	$4, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSF_AZ_DRIVER_EV_RX_DESCQ_ID,4,2 ## @FSF_AZ_DRIVER_EV_RX_DESCQ_ID
	.comm	_FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL,4,2 ## @FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RXQ %d flush retry\n"

	.no_dead_strip	_ef4_farch_handle_rx_flush_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_farch_handle_rx_flush_done
_ef4_farch_handle_rx_flush_done:        ; @ef4_farch_handle_rx_flush_done
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _FSF_AZ_DRIVER_EV_RX_DESCQ_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSF_AZ_DRIVER_EV_RX_DESCQ_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	mov	x20, x0
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ef4_get_channel
	mov	x22, x0
	bl	_ef4_channel_has_rx_queue
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x22
	bl	_ef4_channel_get_rx_queue
	mov	x22, x0
	cbz	w21, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _hw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_info
	mov	w8, #1
	str	w8, [x22]
	add	x0, x19, #12
	bl	_atomic_inc
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_ef4_rx_queue_channel
	mov	x20, x0
	mov	x0, x22
	bl	_EF4_CHANNEL_MAGIC_RX_DRAIN
	mov	x1, x0
	mov	x0, x20
	bl	_ef4_farch_magic_event
LBB0_5:
	add	x0, x19, #8
	bl	_atomic_dec
	mov	x0, x19
	bl	_ef4_farch_flush_wake
	cbz	x0, LBB0_7
; %bb.6:
	add	x0, x19, #4
	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
	b	_wake_up
LBB0_7:
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FSF_AZ_DRIVER_EV_RX_DESCQ_ID,4,2 ; @FSF_AZ_DRIVER_EV_RX_DESCQ_ID
	.comm	_FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL,4,2 ; @FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RXQ %d flush retry\n"

	.no_dead_strip	_ef4_farch_handle_rx_flush_done
.subsections_via_symbols
