	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_txq_update_byte_cnt_tbl
_il4965_txq_update_byte_cnt_tbl:        ## @il4965_txq_update_byte_cnt_tbl
	.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	%edx, %ebx
	movq	(%rdi), %r15
	movslq	4(%rsi), %r14
	movq	_IL_TX_CRC_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_IL_TX_DELIMITER_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	cmpl	$4096, %ebx                     ## imm = 0x1000
	setge	%al
	movq	_TFD_QUEUE_SIZE_MAX@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r14d
	movslq	(%rsi), %r13
	setge	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	andl	$4095, %ebx                     ## imm = 0xFFF
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	(%r15,%r13,8), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	_TFD_QUEUE_SIZE_BC_DUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jge	LBB0_2
## %bb.1:
	movq	(%r15,%r13,8), %rcx
	movslq	(%r12), %rdx
	addq	%r14, %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_TX_CRC_SIZE,4,2             ## @IL_TX_CRC_SIZE
	.comm	_IL_TX_DELIMITER_SIZE,4,2       ## @IL_TX_DELIMITER_SIZE
	.comm	_TFD_QUEUE_SIZE_MAX,4,2         ## @TFD_QUEUE_SIZE_MAX
	.comm	_TFD_QUEUE_SIZE_BC_DUP,4,2      ## @TFD_QUEUE_SIZE_BC_DUP
	.no_dead_strip	_il4965_txq_update_byte_cnt_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_txq_update_byte_cnt_tbl
_il4965_txq_update_byte_cnt_tbl:        ; @il4965_txq_update_byte_cnt_tbl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
	ldpsw	x21, x20, [x1]
Lloh0:
	adrp	x8, _IL_TX_CRC_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL_TX_CRC_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IL_TX_DELIMITER_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IL_TX_DELIMITER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w2
	add	w23, w8, w9
	cmp	w23, #4095
Lloh6:
	adrp	x22, _TFD_QUEUE_SIZE_MAX@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TFD_QUEUE_SIZE_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	ccmp	w20, w8, #0, le
	cset	w0, ge
	bl	_WARN_ON
	and	w0, w23, #0xfff
	bl	_cpu_to_le16
	ldr	x8, [x19, x21, lsl #3]
	str	x0, [x8, x20, lsl #3]
Lloh8:
	adrp	x8, _TFD_QUEUE_SIZE_BC_DUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TFD_QUEUE_SIZE_BC_DUP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x19, x21, lsl #3]
	ldr	w9, [x22]
	add	w9, w9, w20
	str	x0, [x8, w9, sxtw #3]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_TX_CRC_SIZE,4,2             ; @IL_TX_CRC_SIZE
	.comm	_IL_TX_DELIMITER_SIZE,4,2       ; @IL_TX_DELIMITER_SIZE
	.comm	_TFD_QUEUE_SIZE_MAX,4,2         ; @TFD_QUEUE_SIZE_MAX
	.comm	_TFD_QUEUE_SIZE_BC_DUP,4,2      ; @TFD_QUEUE_SIZE_BC_DUP
	.no_dead_strip	_il4965_txq_update_byte_cnt_tbl
.subsections_via_symbols
