	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_rx_count_airtime
_ath_rx_count_airtime:                  ## @ath_rx_count_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdx), %rbx
	movq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_ath9k_hw_common
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %edi
	callq	_ieee80211_is_data
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r12), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_ieee80211_find_sta_by_ifaddr
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_QOS_CTL_TID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_RX_ENC_FLAG_SHORTPRE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	setne	%r15b
	movq	16(%rbx), %rcx
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_RATE_INFO_BW_40@GOTPCREL(%rip), %rdx
	movq	8(%rbx), %rdi
	movq	24(%rbx), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rdi
	sete	%cl
	movq	_RX_ENC_FLAG_SHORT_GI@GOTPCREL(%rip), %rdx
	xorl	%r8d, %r8d
	andl	(%rdx), %eax
	setne	%r8b
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_ath_pkt_duration
	jmp	LBB0_8
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %edi
	callq	_IS_CCK_RATE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_WLAN_RC_PHY_OFDM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_WLAN_RC_PHY_CCK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	24(%rbx), %r8
	movq	32(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	imull	$100, (%rax,%r8,4), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_ath9k_hw_computetxtime
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_ieee80211_sta_register_airtime
LBB0_9:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_QOS_CTL_TID_MASK,4,2 ## @IEEE80211_QOS_CTL_TID_MASK
	.comm	_RX_ENC_FLAG_SHORT_GI,4,2       ## @RX_ENC_FLAG_SHORT_GI
	.comm	_RATE_INFO_BW_40,8,3            ## @RATE_INFO_BW_40
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ## @RX_ENC_FLAG_SHORTPRE
	.comm	_RX_ENC_HT,8,3                  ## @RX_ENC_HT
	.comm	_WLAN_RC_PHY_CCK,4,2            ## @WLAN_RC_PHY_CCK
	.comm	_WLAN_RC_PHY_OFDM,4,2           ## @WLAN_RC_PHY_OFDM
	.no_dead_strip	_ath_rx_count_airtime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_rx_count_airtime
_ath_rx_count_airtime:                  ; @ath_rx_count_airtime
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x2
	mov	x25, x1
	mov	x23, x0
	ldr	x20, [x2, #8]
	ldr	x22, [x0, #8]
	mov	x0, x22
	bl	_ath9k_hw_common
	mov	x24, x0
	ldr	w19, [x25, #4]
	ldr	w0, [x20, #4]
	bl	_ieee80211_is_data
	cbz	w0, LBB0_4
; %bb.1:
	bl	_rcu_read_lock
	ldr	w0, [x23]
	ldr	w1, [x20]
	mov	x2, #0
	bl	_ieee80211_find_sta_by_ifaddr
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w8, [x26]
Lloh0:
	adrp	x9, _IEEE80211_QOS_CTL_TID_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_TID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w21, w9, w8
	mov	x0, x26
	bl	_IEEE80211_SKB_RXCB
	mov	x27, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _RX_ENC_FLAG_SHORTPRE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX_ENC_FLAG_SHORTPRE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w26, ne
	ldr	x9, [x0, #16]
Lloh6:
	adrp	x10, _RX_ENC_HT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RX_ENC_HT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x27, #8]
Lloh9:
	adrp	x10, _RATE_INFO_BW_40@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RATE_INFO_BW_40@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w3, eq
Lloh12:
	adrp	x9, _RX_ENC_FLAG_SHORT_GI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RX_ENC_FLAG_SHORT_GI@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w4, ne
	ldr	x1, [x27, #24]
	mov	x0, x23
	mov	x2, x19
	mov	x5, x26
	bl	_ath_pkt_duration
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x25]
	bl	_IS_CCK_RATE
Lloh15:
	adrp	x8, _WLAN_RC_PHY_CCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WLAN_RC_PHY_CCK@GOTPAGEOFF]
Lloh17:
	adrp	x9, _WLAN_RC_PHY_OFDM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WLAN_RC_PHY_OFDM@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	ldr	x8, [x24]
	ldp	x4, x9, [x27, #24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8, x4, lsl #2]
	mov	w9, #100
	mul	w2, w8, w9
	mov	x0, x22
	mov	x3, x19
	mov	x5, x26
	bl	_ath9k_hw_computetxtime
LBB0_6:
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ieee80211_sta_register_airtime
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rcu_read_unlock
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_QOS_CTL_TID_MASK,4,2 ; @IEEE80211_QOS_CTL_TID_MASK
	.comm	_RX_ENC_FLAG_SHORT_GI,4,2       ; @RX_ENC_FLAG_SHORT_GI
	.comm	_RATE_INFO_BW_40,8,3            ; @RATE_INFO_BW_40
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ; @RX_ENC_FLAG_SHORTPRE
	.comm	_RX_ENC_HT,8,3                  ; @RX_ENC_HT
	.comm	_WLAN_RC_PHY_CCK,4,2            ; @WLAN_RC_PHY_CCK
	.comm	_WLAN_RC_PHY_OFDM,4,2           ; @WLAN_RC_PHY_OFDM
	.no_dead_strip	_ath_rx_count_airtime
.subsections_via_symbols
