	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_htt_tx_txq_calc_size
_ath10k_htt_tx_txq_calc_size:           ## @ath10k_htt_tx_txq_calc_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	shrq	$7, %rbx
	xorl	%r14d, %r14d
	cmpl	$64, %ebx
	jl	LBB0_10
## %bb.1:
	cmpl	$512, %ebx                      ## imm = 0x200
	jb	LBB0_5
## %bb.2:
	cmpl	$4096, %ebx                     ## imm = 0x1000
	jb	LBB0_6
## %bb.3:
	cmpl	$32768, %ebx                    ## imm = 0x8000
	jb	LBB0_7
## %bb.4:
	shrl	$12, %ebx
	movl	$4, %r14d
	movb	$1, %cl
	jmp	LBB0_9
LBB0_5:
	shrl	$3, %ebx
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_6:
	shrl	$6, %ebx
	movl	$2, %r14d
	jmp	LBB0_8
LBB0_7:
	shrl	$9, %ebx
	movl	$3, %r14d
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movl	$255, %eax
	testb	%cl, %cl
	jne	LBB0_13
LBB0_10:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_max
	movl	%eax, %ebx
LBB0_12:
	movq	_HTT_TX_Q_STATE_ENTRY_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SM
	movl	%eax, %r14d
	movq	_HTT_TX_Q_STATE_ENTRY_FACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_SM
	orl	%r14d, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTT_TX_Q_STATE_ENTRY_EXP,4,2   ## @HTT_TX_Q_STATE_ENTRY_EXP
	.comm	_HTT_TX_Q_STATE_ENTRY_FACTOR,4,2 ## @HTT_TX_Q_STATE_ENTRY_FACTOR
	.no_dead_strip	_ath10k_htt_tx_txq_calc_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_htt_tx_txq_calc_size
_ath10k_htt_tx_txq_calc_size:           ; @ath10k_htt_tx_txq_calc_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	lsr	x19, x0, #7
	cmp	w19, #64
	b.lt	LBB0_3
; %bb.1:
	lsr	w8, w19, #3
	mov	w9, #1
	lsr	w10, w19, #6
	mov	w11, #2
	lsr	w12, w19, #9
	mov	w13, #3
	lsr	w14, w19, #12
	mov	w15, #4
	mov	w16, #1
	cmp	w19, #8, lsl #12                ; =32768
	csel	w12, w12, w14, lo
	csel	w14, wzr, w16, lo
	csel	w13, w13, w15, lo
	cmp	w19, #1, lsl #12                ; =4096
	csel	w10, w10, w12, lo
	csel	w12, wzr, w14, lo
	csel	w11, w11, w13, lo
	cmp	w19, #512
	csel	w19, w8, w10, lo
	csel	w8, wzr, w12, lo
	csel	w20, w9, w11, lo
	tbz	w8, #0, LBB0_4
; %bb.2:
	mov	w0, #255
	b	LBB0_7
LBB0_3:
	mov	w20, #0
LBB0_4:
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #1
	mov	x1, x19
	bl	_max
	mov	x19, x0
LBB0_6:
Lloh0:
	adrp	x8, _HTT_TX_Q_STATE_ENTRY_EXP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTT_TX_Q_STATE_ENTRY_EXP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SM
	mov	x20, x0
Lloh3:
	adrp	x8, _HTT_TX_Q_STATE_ENTRY_FACTOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTT_TX_Q_STATE_ENTRY_FACTOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SM
	orr	w0, w0, w20
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HTT_TX_Q_STATE_ENTRY_EXP,4,2   ; @HTT_TX_Q_STATE_ENTRY_EXP
	.comm	_HTT_TX_Q_STATE_ENTRY_FACTOR,4,2 ; @HTT_TX_Q_STATE_ENTRY_FACTOR
	.no_dead_strip	_ath10k_htt_tx_txq_calc_size
.subsections_via_symbols
