	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_txq_update_byte_cnt_tbl
_iwl_pcie_txq_update_byte_cnt_tbl:      ## @iwl_pcie_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	%rsi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	_IWL_TX_CRC_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	movslq	(%r14), %r15
	movq	_IWL_TX_DELIMITER_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	movq	8(%r14), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	(%rcx), %rcx
	movq	_TX_CMD_SEC_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	4(%rcx), %edx
	cmpl	$128, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_7
## %bb.3:
	movq	_IEEE80211_CCMP_MIC_LEN@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_IEEE80211_WEP_IV_LEN@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_WEP_ICV_LEN@GOTPCREL(%rip), %rsi
	addl	(%rdx), %ebx
	addl	(%rsi), %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_IEEE80211_TKIP_ICV_LEN@GOTPCREL(%rip), %rdx
LBB0_6:
	addl	(%rdx), %ebx
LBB0_7:
	movslq	4(%r14), %r14
	movl	(%rcx), %r13d
	movq	8(%rax), %r12
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
LBB0_9:
	cmpl	$4096, %ebx                     ## imm = 0x1000
	setge	%al
	movq	_TFD_QUEUE_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	setge	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	shll	$12, %r13d
	orl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	(%r12,%r14,8), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	_TFD_QUEUE_SIZE_BC_DUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jge	LBB0_12
## %bb.11:
	movq	(%r12,%r14,8), %rcx
	movq	_TFD_QUEUE_SIZE_MAX@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%r15, %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_TX_CRC_SIZE,4,2            ## @IWL_TX_CRC_SIZE
	.comm	_IWL_TX_DELIMITER_SIZE,4,2      ## @IWL_TX_DELIMITER_SIZE
	.comm	_TX_CMD_SEC_MSK,4,2             ## @TX_CMD_SEC_MSK
	.comm	_IEEE80211_CCMP_MIC_LEN,4,2     ## @IEEE80211_CCMP_MIC_LEN
	.comm	_IEEE80211_TKIP_ICV_LEN,4,2     ## @IEEE80211_TKIP_ICV_LEN
	.comm	_IEEE80211_WEP_IV_LEN,4,2       ## @IEEE80211_WEP_IV_LEN
	.comm	_IEEE80211_WEP_ICV_LEN,4,2      ## @IEEE80211_WEP_ICV_LEN
	.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	_iwl_pcie_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 iwl_pcie_txq_update_byte_cnt_tbl
_iwl_pcie_txq_update_byte_cnt_tbl:      ; @iwl_pcie_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
	mov	x19, x2
	mov	x20, x1
	bl	_IWL_TRANS_GET_PCIE_TRANS
	ldrsw	x21, [x20]
Lloh0:
	adrp	x8, _IWL_TX_CRC_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_TX_CRC_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IWL_TX_DELIMITER_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_TX_DELIMITER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w19
	add	w19, w8, w9
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
Lloh6:
	adrp	x10, _TX_CMD_SEC_MSK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TX_CMD_SEC_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #130
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x9, _IEEE80211_CCMP_MIC_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_CCMP_MIC_LEN@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x9, _IEEE80211_WEP_IV_LEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_WEP_IV_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IEEE80211_WEP_ICV_LEN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IEEE80211_WEP_ICV_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	add	w9, w9, w19
	add	w19, w9, w10
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x9, _IEEE80211_TKIP_ICV_LEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_TKIP_ICV_LEN@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	add	w19, w9, w19
LBB0_7:
	ldrsw	x20, [x20, #4]
	ldr	w23, [x8]
	ldp	x8, x22, [x0]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x19, x0
LBB0_9:
	cmp	w19, #4095
Lloh19:
	adrp	x24, _TFD_QUEUE_SIZE_MAX@GOTPAGE
Lloh20:
	ldr	x24, [x24, _TFD_QUEUE_SIZE_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	ccmp	w21, w8, #0, le
	cset	w0, ge
	bl	_WARN_ON
	cbnz	x0, LBB0_12
; %bb.10:
	orr	w0, w19, w23, lsl #12
	bl	_cpu_to_le16
	ldr	x8, [x22, x20, lsl #3]
	str	x0, [x8, x21, lsl #3]
Lloh21:
	adrp	x8, _TFD_QUEUE_SIZE_BC_DUP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TFD_QUEUE_SIZE_BC_DUP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_12
; %bb.11:
	ldr	x8, [x22, x20, lsl #3]
	ldr	w9, [x24]
	add	w9, w9, w21
	str	x0, [x8, w9, sxtw #3]
LBB0_12:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_TX_CRC_SIZE,4,2            ; @IWL_TX_CRC_SIZE
	.comm	_IWL_TX_DELIMITER_SIZE,4,2      ; @IWL_TX_DELIMITER_SIZE
	.comm	_TX_CMD_SEC_MSK,4,2             ; @TX_CMD_SEC_MSK
	.comm	_IEEE80211_CCMP_MIC_LEN,4,2     ; @IEEE80211_CCMP_MIC_LEN
	.comm	_IEEE80211_TKIP_ICV_LEN,4,2     ; @IEEE80211_TKIP_ICV_LEN
	.comm	_IEEE80211_WEP_IV_LEN,4,2       ; @IEEE80211_WEP_IV_LEN
	.comm	_IEEE80211_WEP_ICV_LEN,4,2      ; @IEEE80211_WEP_ICV_LEN
	.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	_iwl_pcie_txq_update_byte_cnt_tbl
.subsections_via_symbols
