	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_sync_offset_rx_bcn_presp
_mesh_sync_offset_rx_bcn_presp:         ## @mesh_sync_offset_rx_bcn_presp
	.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	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	_IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	_IEEE80211_STYPE_BEACON@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_17
## %bb.1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_drv_get_tsf
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_sta_info_get
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r14
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_mesh_peer_tbtt_adjusting
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_WLAN_STA_TOFFSET_KNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_clear_sta_flag
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_msync_dbg
	jmp	LBB0_16
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ieee80211_have_rx_timestamp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rax
	movq	_FCS_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx), %rdx
	addq	$36, %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$24, %ecx
	callq	_ieee80211_calculate_rx_timestamp
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_le64_to_cpu
	subq	%rbx, %rax
	movq	%rax, (%r14)
	movq	_WLAN_STA_TOFFSET_KNOWN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_test_sta_flag
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	16(%r14), %r8
	movq	(%r14), %rcx
	movq	%r8, %rbx
	subq	%rcx, %rbx
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_msync_dbg
	movq	_TOFFSET_MAXIMUM_ADJUSTMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jg	LBB0_11
## %bb.10:
	negq	%rax
	cmpq	%rax, %rbx
	jl	LBB0_11
## %bb.12:
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	cmpq	24(%r15), %rbx
	jle	LBB0_14
## %bb.13:
	movq	%rbx, 24(%r15)
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_16
LBB0_15:
	movq	(%r14), %rax
	movq	_TOFFSET_SET_MARGIN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 16(%r14)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_set_sta_flag
	movl	8(%r14), %edx
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_msync_dbg
	jmp	LBB0_16
LBB0_11:
	movl	8(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_msync_dbg
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_clear_sta_flag
LBB0_16:
	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_SYNC_METHOD_NEIGHBOR_OFFSET,8,3 ## @IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET
	.comm	_IEEE80211_STYPE_BEACON,8,3     ## @IEEE80211_STYPE_BEACON
	.comm	_WLAN_STA_TOFFSET_KNOWN,4,2     ## @WLAN_STA_TOFFSET_KNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA %pM : is adjusting TBTT\n"

	.comm	_FCS_LEN,8,3                    ## @FCS_LEN
L_.str.1:                               ## @.str.1
	.asciz	"STA %pM : sta->t_offset=%lld, sta->t_offset_setpoint=%lld, t_clockdrift=%lld\n"

	.comm	_TOFFSET_MAXIMUM_ADJUSTMENT,8,3 ## @TOFFSET_MAXIMUM_ADJUSTMENT
L_.str.2:                               ## @.str.2
	.asciz	"STA %pM : t_clockdrift=%lld too large, setpoint reset\n"

	.comm	_TOFFSET_SET_MARGIN,8,3         ## @TOFFSET_SET_MARGIN
L_.str.3:                               ## @.str.3
	.asciz	"STA %pM : offset was invalid, sta->t_offset=%lld\n"

	.no_dead_strip	_mesh_sync_offset_rx_bcn_presp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_sync_offset_rx_bcn_presp
_mesh_sync_offset_rx_bcn_presp:         ; @mesh_sync_offset_rx_bcn_presp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x23, x8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
Lloh3:
	adrp	x8, _IEEE80211_STYPE_BEACON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_STYPE_BEACON@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x23
	mov	x1, x19
	bl	_drv_get_tsf
	mov	x25, x0
	bl	_rcu_read_lock
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_sta_info_get
	cbz	x0, LBB0_16
; %bb.2:
	mov	x20, x0
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x24
	bl	_mesh_peer_tbtt_adjusting
	cbz	x0, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _WLAN_STA_TOFFSET_KNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_STA_TOFFSET_KNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_clear_sta_flag
	ldr	w2, [x20, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x0, x22
	bl	_ieee80211_have_rx_timestamp
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _FCS_LEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FCS_LEN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x8, x8, x9
	add	x2, x8, #36
	mov	x0, x23
	mov	x1, x22
	mov	w3, #24
	bl	_ieee80211_calculate_rx_timestamp
	mov	x25, x0
LBB0_8:
	ldr	w0, [x21]
	bl	_le64_to_cpu
	sub	x8, x0, x25
	str	x8, [x20]
Lloh14:
	adrp	x21, _WLAN_STA_TOFFSET_KNOWN@GOTPAGE
Lloh15:
	ldr	x21, [x21, _WLAN_STA_TOFFSET_KNOWN@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_test_sta_flag
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	sub	x22, x8, x9
	ldr	w2, [x20, #8]
	stp	x8, x22, [sp, #8]
	str	x9, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_msync_dbg
Lloh18:
	adrp	x8, _TOFFSET_MAXIMUM_ADJUSTMENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TOFFSET_MAXIMUM_ADJUSTMENT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	neg	x9, x8
	cmp	x22, x8
	ccmp	x22, x9, #8, le
	b.ge	LBB0_13
; %bb.10:
	ldr	w2, [x20, #8]
	str	x22, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_msync_dbg
	ldr	w1, [x21]
	mov	x0, x20
	bl	_clear_sta_flag
	b	LBB0_16
LBB0_11:
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _TOFFSET_SET_MARGIN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TOFFSET_SET_MARGIN@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [x20, #16]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_set_sta_flag
	ldr	w2, [x20, #8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_msync_dbg
	b	LBB0_16
LBB0_13:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	x8, [x19, #24]
	cmp	x22, x8
	b.le	LBB0_15
; %bb.14:
	str	x22, [x19, #24]
LBB0_15:
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_rcu_read_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET,8,3 ; @IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET
	.comm	_IEEE80211_STYPE_BEACON,8,3     ; @IEEE80211_STYPE_BEACON
	.comm	_WLAN_STA_TOFFSET_KNOWN,4,2     ; @WLAN_STA_TOFFSET_KNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA %pM : is adjusting TBTT\n"

	.comm	_FCS_LEN,8,3                    ; @FCS_LEN
l_.str.1:                               ; @.str.1
	.asciz	"STA %pM : sta->t_offset=%lld, sta->t_offset_setpoint=%lld, t_clockdrift=%lld\n"

	.comm	_TOFFSET_MAXIMUM_ADJUSTMENT,8,3 ; @TOFFSET_MAXIMUM_ADJUSTMENT
l_.str.2:                               ; @.str.2
	.asciz	"STA %pM : t_clockdrift=%lld too large, setpoint reset\n"

	.comm	_TOFFSET_SET_MARGIN,8,3         ; @TOFFSET_SET_MARGIN
l_.str.3:                               ; @.str.3
	.asciz	"STA %pM : offset was invalid, sta->t_offset=%lld\n"

	.no_dead_strip	_mesh_sync_offset_rx_bcn_presp
.subsections_via_symbols
