	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_dequeue_buffers
_efx_dequeue_buffers:                   ## @efx_dequeue_buffers
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	incl	%r13d
	movl	(%rdi), %eax
	andl	%eax, %r13d
	andl	4(%rdi), %eax
	cmpl	%r13d, %eax
	jne	LBB0_1
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_efx_dequeue_buffer
	movl	4(%rbx), %eax
	incl	%eax
	movl	%eax, 4(%rbx)
	andl	(%rbx), %eax
	cmpl	%r13d, %eax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r15
	movl	%eax, %r12d
	movq	%r12, %r14
	shlq	$4, %r14
	movq	_EFX_TX_BUF_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15,%r14)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpq	$0, 8(%r15,%r14)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edx
	movl	8(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r12d, %r9d
	callq	_netif_err
	movq	_RESET_TYPE_TX_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_schedule_reset             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_TX_BUF_OPTION,4,2          ## @EFX_TX_BUF_OPTION
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX queue %d spurious TX completion id %x\n"

	.comm	_RESET_TYPE_TX_SKIP,4,2         ## @RESET_TYPE_TX_SKIP
	.no_dead_strip	_efx_dequeue_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_dequeue_buffers
_efx_dequeue_buffers:                   ; @efx_dequeue_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	add	w8, w1, #1
	ldp	w9, w10, [x0]
	and	w25, w9, w8
	and	w8, w10, w9
	cmp	w8, w25
	b.ne	LBB0_2
LBB0_1:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x26, _EFX_TX_BUF_OPTION@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EFX_TX_BUF_OPTION@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	x3, x21
	bl	_efx_dequeue_buffer
	ldp	w9, w8, [x20]
	add	w8, w8, #1
	str	w8, [x20, #4]
	and	w8, w9, w8
	cmp	w8, w25
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	add	x24, x9, w8, uxtw #4
	ldr	w10, [x24]
	ldr	w11, [x26]
	tst	w11, w10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, w8
	add	x8, x9, x23, lsl #4
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.6:
Lloh2:
	adrp	x8, _tx_err@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x20, #8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x5, x23
	bl	_netif_err
Lloh7:
	adrp	x8, _RESET_TYPE_TX_SKIP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RESET_TYPE_TX_SKIP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_efx_schedule_reset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_TX_BUF_OPTION,4,2          ; @EFX_TX_BUF_OPTION
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX queue %d spurious TX completion id %x\n"

	.comm	_RESET_TYPE_TX_SKIP,4,2         ; @RESET_TYPE_TX_SKIP
	.no_dead_strip	_efx_dequeue_buffers
.subsections_via_symbols
