	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_control_rx_q
_i40e_control_rx_q:                     ## @i40e_control_rx_q
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_I40E_QTX_ENA_WAIT_COUNT@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_I40E_QRX_ENA
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	movl	%eax, %ebx
	movq	_I40E_QRX_ENA_QENA_REQ_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%ebx, %eax
	shrl	%cl, %eax
	movq	_I40E_QRX_ENA_QENA_STAT_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%ebx, %edx
	shrl	%cl, %edx
	xorl	%eax, %edx
	testb	$1, %dl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	incl	%r15d
	cmpl	(%r13), %r15d
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $ebx
LBB0_5:
	movq	_I40E_QRX_ENA_QENA_STAT_MASK@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%ebx, (%rax)
	setne	%cl
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %ecx
	jne	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_I40E_QRX_ENA_QENA_REQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %eax
	orl	%ebx, %eax
	notl	%r13d
	andl	%ebx, %r13d
	testl	%edx, %edx
	cmovnel	%eax, %r13d
	movl	%r12d, %edi
	callq	_I40E_QRX_ENA
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr32                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_QTX_ENA_WAIT_COUNT,4,2    ## @I40E_QTX_ENA_WAIT_COUNT
	.comm	_I40E_QRX_ENA_QENA_REQ_SHIFT,4,2 ## @I40E_QRX_ENA_QENA_REQ_SHIFT
	.comm	_I40E_QRX_ENA_QENA_STAT_SHIFT,4,2 ## @I40E_QRX_ENA_QENA_STAT_SHIFT
	.comm	_I40E_QRX_ENA_QENA_STAT_MASK,4,2 ## @I40E_QRX_ENA_QENA_STAT_MASK
	.comm	_I40E_QRX_ENA_QENA_REQ_MASK,4,2 ## @I40E_QRX_ENA_QENA_REQ_MASK
	.no_dead_strip	_i40e_control_rx_q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_control_rx_q
_i40e_control_rx_q:                     ; @i40e_control_rx_q
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _I40E_QTX_ENA_WAIT_COUNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I40E_QTX_ENA_WAIT_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w24, #0
Lloh2:
	adrp	x25, _I40E_QRX_ENA_QENA_REQ_SHIFT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _I40E_QRX_ENA_QENA_REQ_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _I40E_QRX_ENA_QENA_STAT_SHIFT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _I40E_QRX_ENA_QENA_STAT_SHIFT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_I40E_QRX_ENA
	mov	x1, x0
	mov	x0, x19
	bl	_rd32
	mov	x22, x0
	ldr	w8, [x25]
	lsr	w8, w0, w8
	ldr	w9, [x26]
	lsr	w9, w0, w9
	eor	w8, w9, w8
	tbz	w8, #0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
                                        ; implicit-def: $w22
LBB0_5:
Lloh6:
	adrp	x8, _I40E_QRX_ENA_QENA_STAT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_QRX_ENA_QENA_STAT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	cset	w8, ne
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.6:
	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_7:
Lloh9:
	adrp	x8, _I40E_QRX_ENA_QENA_REQ_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_QRX_ENA_QENA_REQ_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w9, w8, w22
	bic	w8, w22, w8
	cmp	w21, #0
	csel	w21, w8, w9, eq
	mov	x0, x20
	bl	_I40E_QRX_ENA
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	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	_wr32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_QTX_ENA_WAIT_COUNT,4,2    ; @I40E_QTX_ENA_WAIT_COUNT
	.comm	_I40E_QRX_ENA_QENA_REQ_SHIFT,4,2 ; @I40E_QRX_ENA_QENA_REQ_SHIFT
	.comm	_I40E_QRX_ENA_QENA_STAT_SHIFT,4,2 ; @I40E_QRX_ENA_QENA_STAT_SHIFT
	.comm	_I40E_QRX_ENA_QENA_STAT_MASK,4,2 ; @I40E_QRX_ENA_QENA_STAT_MASK
	.comm	_I40E_QRX_ENA_QENA_REQ_MASK,4,2 ; @I40E_QRX_ENA_QENA_REQ_MASK
	.no_dead_strip	_i40e_control_rx_q
.subsections_via_symbols
