	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_pre_tbtt_tasklet
_mt76x02_pre_tbtt_tasklet:              ## @mt76x02_pre_tbtt_tasklet
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	movq	_MT_TXQ_PSD@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	callq	_mt76_hw
	movq	_IEEE80211_CONF_OFFCHANNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_12
## %bb.1:
	movq	%r12, %rdi
	callq	_mt76x02_resync_beacon_timer
	movq	%r12, %rdi
	callq	_mt76_hw
	movq	_IEEE80211_IFACE_ITER_RESUME_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_mt76x02_update_beacon_iter@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r12, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movq	%r12, %rdi
	callq	_mt76_csa_check
	cmpq	$0, (%r12)
	jne	LBB0_12
## %bb.2:
	leaq	-64(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_mt76x02_enqueue_buffered_bc
	movq	%rbx, %rdi
	callq	_skb_queue_len
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movq	-56(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	movl	(%rdi,%rbx,4), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_mt76_skb_set_moredata
	movq	-56(%rbp), %rdi
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	-64(%rbp), %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	(%r13), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_mt76_tx_queue_skb
	movq	%r15, %rdi
	callq	___skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TXQ_PSD,8,3                 ## @MT_TXQ_PSD
	.comm	_IEEE80211_CONF_OFFCHANNEL,4,2  ## @IEEE80211_CONF_OFFCHANNEL
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ## @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_mt76x02_update_beacon_iter,4,2 ## @mt76x02_update_beacon_iter
	.no_dead_strip	_mt76x02_pre_tbtt_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_pre_tbtt_tasklet
_mt76x02_pre_tbtt_tasklet:              ; @mt76x02_pre_tbtt_tasklet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _MT_TXQ_PSD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT_TXQ_PSD@GOTPAGEOFF]
	ldr	x8, [x0, #8]
	ldr	x9, [x22]
	ldr	x20, [x8, x9, lsl #3]
	stp	xzr, xzr, [sp]
	bl	_mt76_hw
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _IEEE80211_CONF_OFFCHANNEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEEE80211_CONF_OFFCHANNEL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.1:
	mov	x0, x19
	bl	_mt76x02_resync_beacon_timer
	mov	x0, x19
	bl	_mt76_hw
Lloh5:
	adrp	x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _mt76x02_update_beacon_iter@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mt76x02_update_beacon_iter@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_ieee80211_iterate_active_interfaces_atomic
	mov	x0, x19
	bl	_mt76_csa_check
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.2:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #8
	bl	_mt76x02_enqueue_buffered_bc
	mov	x0, sp
	bl	_skb_queue_len
	cbz	w0, LBB0_12
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	w8, [x0, x21, lsl #2]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x8
	mov	w1, #0
	bl	_mt76_skb_set_moredata
	ldr	x0, [sp, #8]
	b	LBB0_5
LBB0_8:
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, sp
	bl	___skb_dequeue
	cbz	x0, LBB0_11
; %bb.9:
	mov	x21, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_IEEE80211_SKB_CB
	ldr	x8, [x0]
	ldr	x3, [x8]
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x21
	mov	x4, #0
	bl	_mt76_tx_queue_skb
	mov	x0, sp
	bl	___skb_dequeue
	mov	x21, x0
	cbnz	x0, LBB0_10
LBB0_11:
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TXQ_PSD,8,3                 ; @MT_TXQ_PSD
	.comm	_IEEE80211_CONF_OFFCHANNEL,4,2  ; @IEEE80211_CONF_OFFCHANNEL
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ; @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_mt76x02_update_beacon_iter,4,2 ; @mt76x02_update_beacon_iter
	.no_dead_strip	_mt76x02_pre_tbtt_tasklet
.subsections_via_symbols
