	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_update_beacon_iter
_mt7603_update_beacon_iter:             ## @mt7603_update_beacon_iter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	(%rdx), %r12
	movl	8(%rdi), %ebx
	movl	4(%r12), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_mt76_hw
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ieee80211_beacon_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_MT_TXQ_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_mt76_tx_queue_skb
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	_MT_DMA_FQCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MT_DMA_FQCR0_BUSY@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_MT_DMA_FQCR0_TARGET_WCID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	_MT_DMA_FQCR0_TARGET_QID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rax
	movq	_MT_TXQ_CAB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_DMA_FQCR0_DEST_PORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	_MT_DMA_FQCR0_DEST_QUEUE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_DMA_FQCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$5000, %r8d                     ## imm = 0x1388
	callq	_mt76_poll
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_MT7603_WATCHDOG_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TXQ_BEACON,4,2              ## @MT_TXQ_BEACON
	.comm	_MT_DMA_FQCR0,4,2               ## @MT_DMA_FQCR0
	.comm	_MT_DMA_FQCR0_BUSY,4,2          ## @MT_DMA_FQCR0_BUSY
	.comm	_MT_DMA_FQCR0_TARGET_WCID,4,2   ## @MT_DMA_FQCR0_TARGET_WCID
	.comm	_MT_DMA_FQCR0_TARGET_QID,4,2    ## @MT_DMA_FQCR0_TARGET_QID
	.comm	_MT_TXQ_CAB,8,3                 ## @MT_TXQ_CAB
	.comm	_MT_DMA_FQCR0_DEST_PORT_ID,4,2  ## @MT_DMA_FQCR0_DEST_PORT_ID
	.comm	_MT_DMA_FQCR0_DEST_QUEUE_ID,4,2 ## @MT_DMA_FQCR0_DEST_QUEUE_ID
	.comm	_MT7603_WATCHDOG_TIMEOUT,4,2    ## @MT7603_WATCHDOG_TIMEOUT
	.no_dead_strip	_mt7603_update_beacon_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_update_beacon_iter
_mt7603_update_beacon_iter:             ; @mt7603_update_beacon_iter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x0
	ldr	x20, [x2]
	ldr	w22, [x0, #8]
	ldr	w0, [x20, #4]
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_mt76_hw
	mov	x1, x21
	bl	_ieee80211_beacon_get
	cbz	x0, LBB0_5
; %bb.2:
	mov	x2, x0
Lloh0:
	adrp	x8, _MT_TXQ_BEACON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TXQ_BEACON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x3, x20
	mov	x4, #0
	bl	_mt76_tx_queue_skb
	mov	x0, x19
	bl	_spin_lock_bh
Lloh3:
	adrp	x22, _MT_DMA_FQCR0@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MT_DMA_FQCR0@GOTPAGEOFF]
Lloh5:
	adrp	x23, _MT_DMA_FQCR0_BUSY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MT_DMA_FQCR0_BUSY@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	w24, [x23]
Lloh7:
	adrp	x8, _MT_DMA_FQCR0_TARGET_WCID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MT_DMA_FQCR0_TARGET_WCID@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_FIELD_PREP
	orr	w20, w0, w24
Lloh10:
	adrp	x8, _MT_DMA_FQCR0_TARGET_QID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_DMA_FQCR0_TARGET_QID@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _MT_TXQ_CAB@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MT_TXQ_CAB@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8]
	bl	_FIELD_PREP
	orr	w20, w20, w0
Lloh16:
	adrp	x8, _MT_DMA_FQCR0_DEST_PORT_ID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MT_DMA_FQCR0_DEST_PORT_ID@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_FIELD_PREP
	orr	w20, w20, w0
Lloh19:
	adrp	x8, _MT_DMA_FQCR0_DEST_QUEUE_ID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MT_DMA_FQCR0_DEST_QUEUE_ID@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	w1, #8
	bl	_FIELD_PREP
	orr	w2, w20, w0
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_wr
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #5000
	bl	_mt76_poll
	cbnz	w0, LBB0_4
; %bb.3:
Lloh22:
	adrp	x8, _MT7603_WATCHDOG_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MT7603_WATCHDOG_TIMEOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_4:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_bh
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TXQ_BEACON,4,2              ; @MT_TXQ_BEACON
	.comm	_MT_DMA_FQCR0,4,2               ; @MT_DMA_FQCR0
	.comm	_MT_DMA_FQCR0_BUSY,4,2          ; @MT_DMA_FQCR0_BUSY
	.comm	_MT_DMA_FQCR0_TARGET_WCID,4,2   ; @MT_DMA_FQCR0_TARGET_WCID
	.comm	_MT_DMA_FQCR0_TARGET_QID,4,2    ; @MT_DMA_FQCR0_TARGET_QID
	.comm	_MT_TXQ_CAB,8,3                 ; @MT_TXQ_CAB
	.comm	_MT_DMA_FQCR0_DEST_PORT_ID,4,2  ; @MT_DMA_FQCR0_DEST_PORT_ID
	.comm	_MT_DMA_FQCR0_DEST_QUEUE_ID,4,2 ; @MT_DMA_FQCR0_DEST_QUEUE_ID
	.comm	_MT7603_WATCHDOG_TIMEOUT,4,2    ; @MT7603_WATCHDOG_TIMEOUT
	.no_dead_strip	_mt7603_update_beacon_iter
.subsections_via_symbols
