	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_pre_tx_queue_cfg          ## -- Begin function i40e_pre_tx_queue_cfg
	.p2align	4, 0x90
_i40e_pre_tx_queue_cfg:                 ## @i40e_pre_tx_queue_cfg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r14
	addl	(%rdi), %esi
	movl	%esi, %eax
	shrl	$7, %eax
	movl	%esi, %ebx
	andl	$127, %ebx
	xorl	%r15d, %r15d
	cmpl	$127, %esi
	cmovlel	%esi, %ebx
	cmovgl	%eax, %r15d
	movl	%r15d, %edi
	callq	_I40E_GLLAN_TXPRE_QDIS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	movq	_I40E_GLLAN_TXPRE_QDIS_QINDX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	testl	%r12d, %r12d
	jne	LBB0_1
## %bb.2:
	movq	_I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_I40E_GLLAN_TXPRE_QDIS
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr32                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_GLLAN_TXPRE_QDIS_QINDX_MASK,4,2 ## @I40E_GLLAN_TXPRE_QDIS_QINDX_MASK
	.comm	_I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT,4,2 ## @I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT
	.comm	_I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK,4,2 ## @I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK
	.comm	_I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK,4,2 ## @I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_pre_tx_queue_cfg          ; -- Begin function i40e_pre_tx_queue_cfg
	.p2align	2
_i40e_pre_tx_queue_cfg:                 ; @i40e_pre_tx_queue_cfg
	.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	x19, x2
	mov	x20, x0
	ldr	w8, [x0]
	add	w8, w8, w1
	lsr	w9, w8, #7
	and	w10, w8, #0x7f
	cmp	w8, #127
	csel	w22, w10, w8, gt
	csel	w21, w9, wzr, gt
	mov	x0, x21
	bl	_I40E_GLLAN_TXPRE_QDIS
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
Lloh0:
	adrp	x8, _I40E_GLLAN_TXPRE_QDIS_QINDX_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_GLLAN_TXPRE_QDIS_QINDX_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w0, w8
	lsl	w9, w22, w9
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x10, _I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK@GOTPAGEOFF]
	cmp	w19, #0
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w19, w8, w9
	mov	x0, x21
	bl	_I40E_GLLAN_TXPRE_QDIS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	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	_wr32
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_GLLAN_TXPRE_QDIS_QINDX_MASK,4,2 ; @I40E_GLLAN_TXPRE_QDIS_QINDX_MASK
	.comm	_I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT,4,2 ; @I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT
	.comm	_I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK,4,2 ; @I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK
	.comm	_I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK,4,2 ; @I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK
.subsections_via_symbols
