	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_check_uapsd_agg_expected_tpt
_iwl_mvm_check_uapsd_agg_expected_tpt:  ## @iwl_mvm_check_uapsd_agg_expected_tpt
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movslq	%edx, %r15
	movq	%r15, %r13
	shlq	$5, %r13
	movslq	(%rax,%r13), %r14
	leaq	(%rax,%r13), %rdi
	addq	$16, %rdi
	callq	_ewma_rate_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	8(%r12), %rax
	cmpq	$0, 24(%rax,%r13)
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 8(%rax,%r13)
	je	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_rx_api
	shlq	$3, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	%r14d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_do_div
	imulq	$22000, %rbx, %rax              ## imm = 0x55F0
	shrq	$2, %rax
	movabsq	$2951479051793528259, %rcx      ## imm = 0x28F5C28F5C28F5C3
	mulq	%rcx
	shrq	$2, %rdx
	cmpq	%r14, %rdx
	ja	LBB0_5
	jmp	LBB0_7
LBB0_6:
	imull	$100, -44(%rbp), %esi           ## 4-byte Folded Reload
	movl	%r14d, %edi
	callq	_do_div
	movslq	%r14d, %rax
	cmpq	%rax, %rbx
	ja	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_iwl_mvm_uapsd_agg_disconnect
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iwl_mvm_check_uapsd_agg_expected_tpt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_check_uapsd_agg_expected_tpt
_iwl_mvm_check_uapsd_agg_expected_tpt:  ; @iwl_mvm_check_uapsd_agg_expected_tpt
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	sxtw	x23, w2
	add	x0, x8, x23, lsl #5
	ldrsw	x22, [x0], #16
	bl	_ewma_rate_read
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	add	x8, x8, x23, lsl #5
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
LBB0_3:
	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
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	bl	_iwl_mvm_has_new_rx_api
	lsl	x22, x22, #3
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x20
	bl	_do_div
	mov	w8, #22000
	mul	x8, x21, x8
	lsr	x8, x8, #2
	mov	x9, #62915
	movk	x9, #23592, lsl #16
	movk	x9, #49807, lsl #32
	movk	x9, #10485, lsl #48
	umulh	x8, x8, x9
	cmp	x22, x8, lsr #2
	b.lo	LBB0_3
	b	LBB0_7
LBB0_6:
	mov	w8, #100
	mul	w1, w20, w8
	mov	x0, x22
	bl	_do_div
	cmp	x21, w22, sxtw
	b.hi	LBB0_3
LBB0_7:
	bl	_rcu_read_lock
	ldr	x8, [x19]
	ldr	w0, [x8, x23, lsl #2]
	bl	_rcu_dereference
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	mov	x0, x19
	bl	_iwl_mvm_uapsd_agg_disconnect
LBB0_9:
	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
	b	_rcu_read_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_iwl_mvm_check_uapsd_agg_expected_tpt
.subsections_via_symbols
