	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_pre_tbtt_tasklet        ## -- Begin function mt7603_pre_tbtt_tasklet
	.p2align	4, 0x90
_mt7603_pre_tbtt_tasklet:               ## @mt7603_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -64(%rbp)
	callq	_mt76_hw
	movq	_IEEE80211_CONF_OFFCHANNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_20
## %bb.1:
	movq	%r13, -56(%rbp)
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	___skb_queue_head_init
	leaq	24(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %rax
	movq	_MT_TXQ_BEACON@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rbx
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	callq	_mt76_hw
	movq	_IEEE80211_IFACE_ITER_RESUME_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_mt7603_update_beacon_iter@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r13, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mt76_queue_kick
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	_MT_WF_ARB_CAB_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$30, %edi
	movl	$16, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_TXQ_CAB@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_mt76_queue_tx_cleanup
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mt76_csa_check
	cmpq	$0, 40(%r13)
	jne	LBB0_18
## %bb.2:
	movq	32(%r13), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_mt7603_add_buffered_bc@GOTPCREL(%rip), %r15
	leaq	-112(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_skb_queue_len
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mt76_hw
	movq	_IEEE80211_IFACE_ITER_RESUME_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %edx
	movq	%rax, %rdi
	movq	%r12, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movq	%r14, %rdi
	callq	_skb_queue_len
	cmpl	%eax, %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_skb_queue_len
	cmpl	$8, %eax
	jl	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	movq	_MT_TXQ_BEACON@GOTPCREL(%rip), %r15
	movq	_MT_TXQ_CAB@GOTPCREL(%rip), %rbx
	jne	LBB0_18
## %bb.6:
	movq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%rbx, %r15
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-112(%rbp), %rdi
	movl	(%rdi,%rbx,4), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_mt76_skb_set_moredata
	movq	-112(%rbp), %rdi
	jmp	LBB0_10
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	(%r15), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_mt76_tx_queue_skb
	movq	%r14, %rdi
	callq	___skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mt76_queue_kick
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	-104(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MT_WF_ARB_CAB_COUNT_B0_REG
	movl	%eax, %r14d
	movq	-104(%rbp), %rax
	movl	(%rax,%rbx,4), %r15d
	movl	%ebx, %edi
	callq	_MT_WF_ARB_CAB_COUNT_B0_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r15d
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_mt76_wr
	incq	%rbx
	movq	-104(%rbp), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:
	movq	_MT_WF_ARB_CAB_START@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	callq	_MT_WF_ARB_CAB_START_BSSn
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_MT_WF_ARB_CAB_START_BSS0n
	movq	_MT7603_MAX_INTERFACES@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	decb	%cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	imull	%eax, %edx
	orl	%ebx, %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mt76_wr
	movq	_MT_TXQ_BEACON@GOTPCREL(%rip), %r15
LBB0_18:
	movq	(%r15), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_mt76_queue_tx_cleanup
	movq	32(%r13), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movl	24(%r13), %edi
	callq	_hweight8
	cmpq	%rax, %rbx
	jle	LBB0_20
## %bb.19:
	incl	16(%r13)
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_OFFCHANNEL,4,2  ## @IEEE80211_CONF_OFFCHANNEL
	.comm	_MT_TXQ_BEACON,8,3              ## @MT_TXQ_BEACON
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ## @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_mt7603_update_beacon_iter,4,2  ## @mt7603_update_beacon_iter
	.comm	_MT_WF_ARB_CAB_FLUSH,4,2        ## @MT_WF_ARB_CAB_FLUSH
	.comm	_MT_TXQ_CAB,8,3                 ## @MT_TXQ_CAB
	.comm	_mt7603_add_buffered_bc,4,2     ## @mt7603_add_buffered_bc
	.comm	_MT_WF_ARB_CAB_START,4,2        ## @MT_WF_ARB_CAB_START
	.comm	_MT7603_MAX_INTERFACES,4,2      ## @MT7603_MAX_INTERFACES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_pre_tbtt_tasklet        ; -- Begin function mt7603_pre_tbtt_tasklet
	.p2align	2
_mt7603_pre_tbtt_tasklet:               ; @mt7603_pre_tbtt_tasklet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	str	xzr, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	bl	_mt76_hw
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_CONF_OFFCHANNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CONF_OFFCHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.1:
	str	x19, [sp, #56]
	mov	x8, sp
	add	x20, x8, #48
	mov	x0, x20
	bl	___skb_queue_head_init
	add	x21, x19, #24
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x24, _MT_TXQ_BEACON@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MT_TXQ_BEACON@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x22, [x8, x9, lsl #3]
	add	x23, x22, #8
	mov	x0, x23
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_mt76_hw
Lloh5:
	adrp	x26, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGE
Lloh6:
	ldr	x26, [x26, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh7:
	adrp	x8, _mt7603_update_beacon_iter@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mt7603_update_beacon_iter@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_ieee80211_iterate_active_interfaces_atomic
	mov	x0, x19
	mov	x1, x22
	bl	_mt76_queue_kick
	mov	x0, x23
	bl	_spin_unlock_bh
Lloh10:
	adrp	x8, _MT_WF_ARB_CAB_FLUSH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_WF_ARB_CAB_FLUSH@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	w0, #30
	mov	w1, #16
	bl	_GENMASK
	mov	x23, x0
	mov	w0, #0
	bl	_BIT
	orr	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_mt76_wr
Lloh13:
	adrp	x25, _MT_TXQ_CAB@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MT_TXQ_CAB@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_mt76_queue_tx_cleanup
	mov	x0, x21
	bl	_mt76_csa_check
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_18
; %bb.2:
	ldr	x8, [x19, #32]
	ldr	x9, [x25]
	ldr	x21, [x8, x9, lsl #3]
Lloh15:
	adrp	x23, _mt7603_add_buffered_bc@GOTPAGE
Lloh16:
	ldr	x23, [x23, _mt7603_add_buffered_bc@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_queue_len
	mov	x22, x0
	mov	x0, x19
	bl	_mt76_hw
	ldr	w1, [x26]
	ldr	w2, [x23]
	mov	x3, sp
	bl	_ieee80211_iterate_active_interfaces_atomic
	mov	x0, x20
	bl	_skb_queue_len
	cmp	w22, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_skb_queue_len
	cmp	w0, #8
	b.lt	LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_skb_queue_empty
	cbnz	x0, LBB0_18
; %bb.6:
	ldr	x0, [sp]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x22, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	ldr	w8, [x0, x22, lsl #2]
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x8
	mov	w1, #0
	bl	_mt76_skb_set_moredata
	ldr	x0, [sp]
	b	LBB0_8
LBB0_11:
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x20
	bl	___skb_dequeue
	cbz	x0, LBB0_14
; %bb.12:
	mov	x23, x0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_IEEE80211_SKB_CB
	ldr	x8, [x0]
	ldr	x3, [x8]
	ldr	x1, [x25]
	mov	x0, x19
	mov	x2, x23
	mov	x4, #0
	bl	_mt76_tx_queue_skb
	mov	x0, x20
	bl	___skb_dequeue
	mov	x23, x0
	cbnz	x0, LBB0_13
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_queue_kick
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	x0, [sp, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x20, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_MT_WF_ARB_CAB_COUNT_B0_REG
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldr	w22, [x8, x20, lsl #2]
	mov	x0, x20
	bl	_MT_WF_ARB_CAB_COUNT_B0_SHIFT
	lsl	w2, w22, w0
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_wr
	add	x20, x20, #1
	ldr	x0, [sp, #8]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_16
LBB0_17:
Lloh17:
	adrp	x8, _MT_WF_ARB_CAB_START@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_WF_ARB_CAB_START@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	w0, #0
	bl	_MT_WF_ARB_CAB_START_BSSn
	mov	x21, x0
	mov	w0, #1
	bl	_MT_WF_ARB_CAB_START_BSS0n
Lloh20:
	adrp	x8, _MT7603_MAX_INTERFACES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT7603_MAX_INTERFACES@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	mul	w8, w0, w8
	orr	w2, w8, w21
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_wr
LBB0_18:
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_mt76_queue_tx_cleanup
	ldr	x8, [x19, #32]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x20, [x8]
	ldr	w0, [x19, #24]
	bl	_hweight8
	cmp	x20, x0
	b.le	LBB0_20
; %bb.19:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_OFFCHANNEL,4,2  ; @IEEE80211_CONF_OFFCHANNEL
	.comm	_MT_TXQ_BEACON,8,3              ; @MT_TXQ_BEACON
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ; @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_mt7603_update_beacon_iter,4,2  ; @mt7603_update_beacon_iter
	.comm	_MT_WF_ARB_CAB_FLUSH,4,2        ; @MT_WF_ARB_CAB_FLUSH
	.comm	_MT_TXQ_CAB,8,3                 ; @MT_TXQ_CAB
	.comm	_mt7603_add_buffered_bc,4,2     ; @mt7603_add_buffered_bc
	.comm	_MT_WF_ARB_CAB_START,4,2        ; @MT_WF_ARB_CAB_START
	.comm	_MT7603_MAX_INTERFACES,4,2      ; @MT7603_MAX_INTERFACES
.subsections_via_symbols
