	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800pci_mcu_status
_rt2800pci_mcu_status:                  ## @rt2800pci_mcu_status
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_rt2x00_is_soc
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$200, %r13d
	movq	_H2M_MAILBOX_CID_CMD0@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_H2M_MAILBOX_CID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, %ebx
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_rt2x00_get_field32
	cmpq	%r15, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_H2M_MAILBOX_CID_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	cmpq	%r15, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_H2M_MAILBOX_CID_CMD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	cmpq	%r15, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_H2M_MAILBOX_CID_CMD3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	cmpq	%r15, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_REGISTER_BUSY_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	decl	%r13d
	jne	LBB0_2
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rt2x00_err
LBB0_8:
	movq	_H2M_MAILBOX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_rt2x00mmio_register_write
	movq	_H2M_MAILBOX_CID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00mmio_register_write      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H2M_MAILBOX_CID,4,2            ## @H2M_MAILBOX_CID
	.comm	_H2M_MAILBOX_CID_CMD0,4,2       ## @H2M_MAILBOX_CID_CMD0
	.comm	_H2M_MAILBOX_CID_CMD1,4,2       ## @H2M_MAILBOX_CID_CMD1
	.comm	_H2M_MAILBOX_CID_CMD2,4,2       ## @H2M_MAILBOX_CID_CMD2
	.comm	_H2M_MAILBOX_CID_CMD3,4,2       ## @H2M_MAILBOX_CID_CMD3
	.comm	_REGISTER_BUSY_DELAY,4,2        ## @REGISTER_BUSY_DELAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCU request failed, no response from hardware\n"

	.comm	_H2M_MAILBOX_STATUS,4,2         ## @H2M_MAILBOX_STATUS
	.no_dead_strip	_rt2800pci_mcu_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800pci_mcu_status
_rt2800pci_mcu_status:                  ; @rt2800pci_mcu_status
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_rt2x00_is_soc
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w23, #200
Lloh0:
	adrp	x22, _H2M_MAILBOX_CID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H2M_MAILBOX_CID@GOTPAGEOFF]
Lloh2:
	adrp	x24, _H2M_MAILBOX_CID_CMD0@GOTPAGE
Lloh3:
	ldr	x24, [x24, _H2M_MAILBOX_CID_CMD0@GOTPAGEOFF]
Lloh4:
	adrp	x25, _H2M_MAILBOX_CID_CMD1@GOTPAGE
Lloh5:
	ldr	x25, [x25, _H2M_MAILBOX_CID_CMD1@GOTPAGEOFF]
Lloh6:
	adrp	x26, _H2M_MAILBOX_CID_CMD2@GOTPAGE
Lloh7:
	ldr	x26, [x26, _H2M_MAILBOX_CID_CMD2@GOTPAGEOFF]
Lloh8:
	adrp	x27, _H2M_MAILBOX_CID_CMD3@GOTPAGE
Lloh9:
	ldr	x27, [x27, _H2M_MAILBOX_CID_CMD3@GOTPAGEOFF]
Lloh10:
	adrp	x28, _REGISTER_BUSY_DELAY@GOTPAGE
Lloh11:
	ldr	x28, [x28, _REGISTER_BUSY_DELAY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	mov	x21, x0
	ldr	w1, [x24]
	bl	_rt2x00_get_field32
	cmp	x0, x20
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cmp	x0, x20
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cmp	x0, x20
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cmp	x0, x20
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
	bl	_udelay
	subs	w23, w23, #1
	b.ne	LBB0_3
; %bb.8:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_err
LBB0_9:
Lloh14:
	adrp	x8, _H2M_MAILBOX_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H2M_MAILBOX_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_rt2x00mmio_register_write
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rt2x00mmio_register_write
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_H2M_MAILBOX_CID,4,2            ; @H2M_MAILBOX_CID
	.comm	_H2M_MAILBOX_CID_CMD0,4,2       ; @H2M_MAILBOX_CID_CMD0
	.comm	_H2M_MAILBOX_CID_CMD1,4,2       ; @H2M_MAILBOX_CID_CMD1
	.comm	_H2M_MAILBOX_CID_CMD2,4,2       ; @H2M_MAILBOX_CID_CMD2
	.comm	_H2M_MAILBOX_CID_CMD3,4,2       ; @H2M_MAILBOX_CID_CMD3
	.comm	_REGISTER_BUSY_DELAY,4,2        ; @REGISTER_BUSY_DELAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCU request failed, no response from hardware\n"

	.comm	_H2M_MAILBOX_STATUS,4,2         ; @H2M_MAILBOX_STATUS
	.no_dead_strip	_rt2800pci_mcu_status
.subsections_via_symbols
