	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_calculate_rx_timestamp ## -- Begin function ieee80211_calculate_rx_timestamp
	.p2align	4, 0x90
_ieee80211_calculate_rx_timestamp:      ## @ieee80211_calculate_rx_timestamp
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %r13d
	movq	%rsi, %rdi
	callq	_ieee80211_have_rx_timestamp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_20
## %bb.1:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	4(%rbx), %eax
	movq	_RX_FLAG_HT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.2:
	movq	8(%rbx), %rcx
	movq	%rcx, -64(%rbp)
	movq	_RATE_INFO_FLAGS_MCS@GOTPCREL(%rip), %rdx
	movl	-52(%rbp), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)
	movq	_RX_FLAG_40MHZ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.3:
	movq	_RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_7:
	movq	_RX_FLAG_VHT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.8:
	movq	_RATE_INFO_FLAGS_VHT_MCS@GOTPCREL(%rip), %rdx
	movl	-52(%rbp), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)
	movq	8(%rbx), %rdx
	movq	%rdx, -64(%rbp)
	movl	24(%rbx), %edx
	movl	%edx, -48(%rbp)
	movq	_RX_FLAG_40MHZ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	_RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)
LBB0_10:
	movq	_RX_FLAG_80MHZ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)
LBB0_12:
	movq	_RX_FLAG_80P80MHZ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)
LBB0_14:
	movq	_RX_FLAG_160MHZ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.15:
	movq	_RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPCREL(%rip), %rdx
LBB0_4:
	orl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)
LBB0_5:
	movq	_RX_FLAG_SHORT_GI@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_17
## %bb.6:
	movq	_RATE_INFO_FLAGS_SHORT_GI@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)
	jmp	LBB0_17
LBB0_16:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -56(%rbp)
LBB0_17:
	leaq	-64(%rbp), %rdi
	callq	_cfg80211_calculate_bitrate
	movl	%eax, %ecx
	movq	_RX_FLAG_MACTIME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_19
## %bb.18:
	shll	$4, %r14d
	leal	(%r14,%r14,4), %eax
	xorl	%edx, %edx
	divl	%ecx
	subl	%eax, %r13d
LBB0_19:
	shll	$4, %r15d
	leal	(%r15,%r15,4), %eax
	xorl	%edx, %edx
	divl	%ecx
	addl	%r13d, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_FLAG_HT,4,2                 ## @RX_FLAG_HT
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ## @RATE_INFO_FLAGS_MCS
	.comm	_RX_FLAG_40MHZ,4,2              ## @RX_FLAG_40MHZ
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_RX_FLAG_SHORT_GI,4,2           ## @RX_FLAG_SHORT_GI
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ## @RATE_INFO_FLAGS_SHORT_GI
	.comm	_RX_FLAG_VHT,4,2                ## @RX_FLAG_VHT
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ## @RATE_INFO_FLAGS_VHT_MCS
	.comm	_RX_FLAG_80MHZ,4,2              ## @RX_FLAG_80MHZ
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_RX_FLAG_80P80MHZ,4,2           ## @RX_FLAG_80P80MHZ
	.comm	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_80P80_MHZ_WIDTH
	.comm	_RX_FLAG_160MHZ,4,2             ## @RX_FLAG_160MHZ
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_160_MHZ_WIDTH
	.comm	_RX_FLAG_MACTIME_END,4,2        ## @RX_FLAG_MACTIME_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_calculate_rx_timestamp ; -- Begin function ieee80211_calculate_rx_timestamp
	.p2align	2
_ieee80211_calculate_rx_timestamp:      ; @ieee80211_calculate_rx_timestamp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w23, [x1]
	mov	x0, x1
	bl	_ieee80211_have_rx_timestamp
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_19
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x9, _RX_FLAG_HT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RX_FLAG_HT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x21, #8]
	str	x9, [sp, #8]
Lloh3:
	adrp	x9, _RATE_INFO_FLAGS_MCS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RATE_INFO_FLAGS_MCS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [sp, #20]
	orr	w9, w10, w9
	str	w9, [sp, #20]
Lloh6:
	adrp	x10, _RX_FLAG_40MHZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RX_FLAG_40MHZ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_15
; %bb.4:
Lloh9:
	adrp	x10, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	b	LBB0_14
LBB0_5:
Lloh12:
	adrp	x9, _RX_FLAG_VHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RX_FLAG_VHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.6:
Lloh15:
	adrp	x9, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [sp, #20]
	orr	w9, w10, w9
	ldr	x10, [x21, #8]
	str	x10, [sp, #8]
	ldr	w10, [x21, #24]
	stp	w9, w10, [sp, #20]
Lloh18:
	adrp	x10, _RX_FLAG_40MHZ@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RX_FLAG_40MHZ@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.7:
Lloh21:
	adrp	x10, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [sp, #20]
LBB0_8:
Lloh24:
	adrp	x10, _RX_FLAG_80MHZ@GOTPAGE
Lloh25:
	ldr	x10, [x10, _RX_FLAG_80MHZ@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.9:
Lloh27:
	adrp	x10, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGE
Lloh28:
	ldr	x10, [x10, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [sp, #20]
LBB0_10:
Lloh30:
	adrp	x10, _RX_FLAG_80P80MHZ@GOTPAGE
Lloh31:
	ldr	x10, [x10, _RX_FLAG_80P80MHZ@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_12
; %bb.11:
Lloh33:
	adrp	x10, _RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPAGE
Lloh34:
	ldr	x10, [x10, _RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [sp, #20]
LBB0_12:
Lloh36:
	adrp	x10, _RX_FLAG_160MHZ@GOTPAGE
Lloh37:
	ldr	x10, [x10, _RX_FLAG_160MHZ@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_15
; %bb.13:
Lloh39:
	adrp	x10, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGE
Lloh40:
	ldr	x10, [x10, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w9, w10
LBB0_14:
	str	w9, [sp, #20]
LBB0_15:
Lloh42:
	adrp	x10, _RX_FLAG_SHORT_GI@GOTPAGE
Lloh43:
	ldr	x10, [x10, _RX_FLAG_SHORT_GI@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_18
; %bb.16:
Lloh45:
	adrp	x8, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [sp, #20]
	b	LBB0_18
LBB0_17:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldp	x10, x9, [x21, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	ldr	w8, [x8, x10, lsl #2]
	str	w8, [sp, #16]
LBB0_18:
	add	x0, sp, #8
	bl	_cfg80211_calculate_bitrate
Lloh48:
	adrp	x8, _RX_FLAG_MACTIME_END@GOTPAGE
Lloh49:
	ldr	x8, [x8, _RX_FLAG_MACTIME_END@GOTPAGEOFF]
	ldr	w9, [x21, #4]
Lloh50:
	ldr	w8, [x8]
	add	w10, w20, w20, lsl #2
	lsl	w10, w10, #4
	udiv	w10, w10, w0
	sub	w10, w23, w10
	tst	w8, w9
	csel	w8, w23, w10, eq
	add	w9, w19, w19, lsl #2
	lsl	w9, w9, #4
	udiv	w9, w9, w0
	add	w0, w9, w8
LBB0_19:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_FLAG_HT,4,2                 ; @RX_FLAG_HT
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ; @RATE_INFO_FLAGS_MCS
	.comm	_RX_FLAG_40MHZ,4,2              ; @RX_FLAG_40MHZ
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_RX_FLAG_SHORT_GI,4,2           ; @RX_FLAG_SHORT_GI
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ; @RATE_INFO_FLAGS_SHORT_GI
	.comm	_RX_FLAG_VHT,4,2                ; @RX_FLAG_VHT
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ; @RATE_INFO_FLAGS_VHT_MCS
	.comm	_RX_FLAG_80MHZ,4,2              ; @RX_FLAG_80MHZ
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_RX_FLAG_80P80MHZ,4,2           ; @RX_FLAG_80P80MHZ
	.comm	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_80P80_MHZ_WIDTH
	.comm	_RX_FLAG_160MHZ,4,2             ; @RX_FLAG_160MHZ
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_160_MHZ_WIDTH
	.comm	_RX_FLAG_MACTIME_END,4,2        ; @RX_FLAG_MACTIME_END
.subsections_via_symbols
