	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_tasklet_beacon
_ath5k_tasklet_beacon:                  ## @ath5k_tasklet_beacon
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath5k_hw_get_tsf64
	movl	12(%rbx), %r14d
	addl	16(%rbx), %r14d
	movq	%rax, %r15
	movl	%r14d, 12(%rbx)
	movq	_ATH5K_DEBUG_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_TSF_TO_TU
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATH5K_DBG                      ## TAILCALL
LBB0_2:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_ath5k_beacon_send
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_ATH5K_DEBUG_BEACON,4,2         ## @ATH5K_DEBUG_BEACON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SWBA nexttbtt: %x hw_tu: %x TSF: %llx\n"

	.no_dead_strip	_ath5k_tasklet_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_tasklet_beacon
_ath5k_tasklet_beacon:                  ; @ath5k_tasklet_beacon
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath5k_hw_get_tsf64
	mov	x20, x0
	ldp	w9, w8, [x19, #12]
	add	w21, w9, w8
	str	w21, [x19, #12]
Lloh3:
	adrp	x8, _ATH5K_DEBUG_BEACON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH5K_DEBUG_BEACON@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	bl	_TSF_TO_TU
	mov	x4, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x5, 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
	b	_ATH5K_DBG
LBB0_2:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x19
	bl	_ath5k_beacon_send
	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
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_ATH5K_DEBUG_BEACON,4,2         ; @ATH5K_DEBUG_BEACON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SWBA nexttbtt: %x hw_tu: %x TSF: %llx\n"

	.no_dead_strip	_ath5k_tasklet_beacon
.subsections_via_symbols
