	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_rx_pse_busy
_mt7603_rx_pse_busy:                    ## @mt7603_rx_pse_busy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MT_MCU_DEBUG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt76_rr
	movl	%eax, %ecx
	movq	_MT_MCU_DEBUG_RESET_QUEUES@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_mt7603_rx_fifo_busy
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.2:
	movq	_MT_CLIENT_BASE_PHYS_ADDR@GOTPCREL(%rip), %rax
	movq	_MT_CLIENT_STATUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_mt7603_reg_map
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$3, %edx
	callq	_mt76_wr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mt76_rr
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_is_mt7628
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r14d, %ecx
	andl	$1073807360, %ecx               ## imm = 0x40010000
	movl	$1, %eax
	cmpl	$1073807360, %ecx               ## imm = 0x40010000
	je	LBB0_5
LBB0_4:
	notl	%r14d
	xorl	%eax, %eax
	testl	$-2147418112, %r14d             ## imm = 0x80010000
	sete	%al
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_MCU_DEBUG_RESET,4,2         ## @MT_MCU_DEBUG_RESET
	.comm	_MT_MCU_DEBUG_RESET_QUEUES,4,2  ## @MT_MCU_DEBUG_RESET_QUEUES
	.comm	_MT_CLIENT_BASE_PHYS_ADDR,8,3   ## @MT_CLIENT_BASE_PHYS_ADDR
	.comm	_MT_CLIENT_STATUS,8,3           ## @MT_CLIENT_STATUS
	.no_dead_strip	_mt7603_rx_pse_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_rx_pse_busy
_mt7603_rx_pse_busy:                    ; @mt7603_rx_pse_busy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MT_MCU_DEBUG_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_MCU_DEBUG_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt76_rr
Lloh3:
	adrp	x8, _MT_MCU_DEBUG_RESET_QUEUES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_MCU_DEBUG_RESET_QUEUES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_mt7603_rx_fifo_busy
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _MT_CLIENT_BASE_PHYS_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_CLIENT_BASE_PHYS_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _MT_CLIENT_STATUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MT_CLIENT_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_mt7603_reg_map
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #3
	bl	_mt76_wr
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_rr
	mov	x20, x0
	mov	x0, x19
	bl	_is_mt7628
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #1073807360
	and	w9, w20, w8
	cmp	w9, w8
	b.eq	LBB0_1
LBB0_6:
	mov	w8, #-2147418112
	bics	wzr, w8, w20
	cset	w0, eq
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_MCU_DEBUG_RESET,4,2         ; @MT_MCU_DEBUG_RESET
	.comm	_MT_MCU_DEBUG_RESET_QUEUES,4,2  ; @MT_MCU_DEBUG_RESET_QUEUES
	.comm	_MT_CLIENT_BASE_PHYS_ADDR,8,3   ; @MT_CLIENT_BASE_PHYS_ADDR
	.comm	_MT_CLIENT_STATUS,8,3           ; @MT_CLIENT_STATUS
	.no_dead_strip	_mt7603_rx_pse_busy
.subsections_via_symbols
