	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_update_airtime
_ath10k_mac_update_airtime:             ## @ath10k_mac_update_airtime
	.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
	xorl	%r12d, %r12d
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_WMI_SERVICE_REPORT_AIRTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%r15), %ecx
	movl	(%rax), %edx
	leal	(%rcx,%rcx,4), %eax
	shll	$4, %eax
	addl	$3040, %eax                     ## imm = 0xBE0
	testl	%edx, %edx
	movl	$60, %ecx
	cmovnel	%edx, %ecx
	movq	_IEEE80211_ATF_OVERHEAD_IFS@GOTPCREL(%rip), %rsi
	cmoveq	_IEEE80211_ATF_OVERHEAD@GOTPCREL(%rip), %rsi
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	addl	(%rsi), %r12d
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_SERVICE_REPORT_AIRTIME,4,2 ## @WMI_SERVICE_REPORT_AIRTIME
	.comm	_IEEE80211_ATF_OVERHEAD_IFS,8,3 ## @IEEE80211_ATF_OVERHEAD_IFS
	.comm	_IEEE80211_ATF_OVERHEAD,8,3     ## @IEEE80211_ATF_OVERHEAD
	.no_dead_strip	_ath10k_mac_update_airtime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_update_airtime
_ath10k_mac_update_airtime:             ; @ath10k_mac_update_airtime
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _WMI_SERVICE_REPORT_AIRTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_SERVICE_REPORT_AIRTIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_test_bit
	cbz	x0, LBB0_5
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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
	ret
LBB0_5:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w9, [x20]
	ldr	w8, [x8]
	mov	w10, #80
	mul	w9, w9, w10
	add	w9, w9, #3040
	mov	w10, #60
	cmp	w8, #0
	csel	w8, w10, w8, eq
Lloh3:
	adrp	x10, _IEEE80211_ATF_OVERHEAD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_ATF_OVERHEAD@GOTPAGEOFF]
	sdiv	w8, w9, w8
Lloh5:
	adrp	x9, _IEEE80211_ATF_OVERHEAD_IFS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_ATF_OVERHEAD_IFS@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	add	w20, w8, w9
	mov	x0, x19
	bl	_spin_unlock_bh
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_SERVICE_REPORT_AIRTIME,4,2 ; @WMI_SERVICE_REPORT_AIRTIME
	.comm	_IEEE80211_ATF_OVERHEAD_IFS,8,3 ; @IEEE80211_ATF_OVERHEAD_IFS
	.comm	_IEEE80211_ATF_OVERHEAD,8,3     ; @IEEE80211_ATF_OVERHEAD
	.no_dead_strip	_ath10k_mac_update_airtime
.subsections_via_symbols
