	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_init_registers      ## -- Begin function rt2800mmio_init_registers
	.p2align	4, 0x90
_rt2800mmio_init_registers:             ## @rt2800mmio_init_registers
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_WPDMA_RST_IDX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_rt2x00mmio_register_read
	movl	%eax, -28(%rbp)
	movq	_WPDMA_RST_IDX_DTX_IDX0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_WPDMA_RST_IDX_DTX_IDX1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_WPDMA_RST_IDX_DTX_IDX2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_WPDMA_RST_IDX_DTX_IDX3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_WPDMA_RST_IDX_DTX_IDX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_WPDMA_RST_IDX_DTX_IDX5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_WPDMA_RST_IDX_DRX_IDX0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_write
	movq	_PBF_SYS_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$3615, %edx                     ## imm = 0xE1F
	callq	_rt2x00mmio_register_write
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$3584, %edx                     ## imm = 0xE00
	callq	_rt2x00mmio_register_write
	movq	%r14, %rdi
	callq	_rt2x00_is_pcie
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_RT3090@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_RT3390@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	_RT3572@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_RT5390@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_RT5392@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_RT5592@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_AUX_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, -28(%rbp)
	movq	_AUX_CTRL_FORCE_PCIE_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_AUX_CTRL_WAKE_PCIE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_write
LBB0_9:
	movq	_PWR_PIN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_rt2x00mmio_register_write
	movl	$0, -28(%rbp)
	movq	_MAC_SYS_CTRL_RESET_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_MAC_SYS_CTRL_RESET_BBP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_MAC_SYS_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_write
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00mmio_register_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPDMA_RST_IDX,4,2              ## @WPDMA_RST_IDX
	.comm	_WPDMA_RST_IDX_DTX_IDX0,4,2     ## @WPDMA_RST_IDX_DTX_IDX0
	.comm	_WPDMA_RST_IDX_DTX_IDX1,4,2     ## @WPDMA_RST_IDX_DTX_IDX1
	.comm	_WPDMA_RST_IDX_DTX_IDX2,4,2     ## @WPDMA_RST_IDX_DTX_IDX2
	.comm	_WPDMA_RST_IDX_DTX_IDX3,4,2     ## @WPDMA_RST_IDX_DTX_IDX3
	.comm	_WPDMA_RST_IDX_DTX_IDX4,4,2     ## @WPDMA_RST_IDX_DTX_IDX4
	.comm	_WPDMA_RST_IDX_DTX_IDX5,4,2     ## @WPDMA_RST_IDX_DTX_IDX5
	.comm	_WPDMA_RST_IDX_DRX_IDX0,4,2     ## @WPDMA_RST_IDX_DRX_IDX0
	.comm	_PBF_SYS_CTRL,4,2               ## @PBF_SYS_CTRL
	.comm	_RT3090,4,2                     ## @RT3090
	.comm	_RT3390,4,2                     ## @RT3390
	.comm	_RT3572,4,2                     ## @RT3572
	.comm	_RT3593,4,2                     ## @RT3593
	.comm	_RT5390,4,2                     ## @RT5390
	.comm	_RT5392,4,2                     ## @RT5392
	.comm	_RT5592,4,2                     ## @RT5592
	.comm	_AUX_CTRL,4,2                   ## @AUX_CTRL
	.comm	_AUX_CTRL_FORCE_PCIE_CLK,4,2    ## @AUX_CTRL_FORCE_PCIE_CLK
	.comm	_AUX_CTRL_WAKE_PCIE_EN,4,2      ## @AUX_CTRL_WAKE_PCIE_EN
	.comm	_PWR_PIN_CFG,4,2                ## @PWR_PIN_CFG
	.comm	_MAC_SYS_CTRL_RESET_CSR,4,2     ## @MAC_SYS_CTRL_RESET_CSR
	.comm	_MAC_SYS_CTRL_RESET_BBP,4,2     ## @MAC_SYS_CTRL_RESET_BBP
	.comm	_MAC_SYS_CTRL,4,2               ## @MAC_SYS_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_init_registers      ; -- Begin function rt2800mmio_init_registers
	.p2align	2
_rt2800mmio_init_registers:             ; @rt2800mmio_init_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, _WPDMA_RST_IDX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WPDMA_RST_IDX@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_rt2x00mmio_register_read
	str	w0, [sp, #12]
Lloh2:
	adrp	x8, _WPDMA_RST_IDX_DTX_IDX0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WPDMA_RST_IDX_DTX_IDX0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh5:
	adrp	x8, _WPDMA_RST_IDX_DTX_IDX1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WPDMA_RST_IDX_DTX_IDX1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh8:
	adrp	x8, _WPDMA_RST_IDX_DTX_IDX2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WPDMA_RST_IDX_DTX_IDX2@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh11:
	adrp	x8, _WPDMA_RST_IDX_DTX_IDX3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPDMA_RST_IDX_DTX_IDX3@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh14:
	adrp	x8, _WPDMA_RST_IDX_DTX_IDX4@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WPDMA_RST_IDX_DTX_IDX4@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh17:
	adrp	x8, _WPDMA_RST_IDX_DTX_IDX5@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WPDMA_RST_IDX_DTX_IDX5@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh20:
	adrp	x8, _WPDMA_RST_IDX_DRX_IDX0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WPDMA_RST_IDX_DRX_IDX0@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
Lloh23:
	adrp	x20, _PBF_SYS_CTRL@GOTPAGE
Lloh24:
	ldr	x20, [x20, _PBF_SYS_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #3615
	bl	_rt2x00mmio_register_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #3584
	bl	_rt2x00mmio_register_write
	mov	x0, x19
	bl	_rt2x00_is_pcie
	cbz	x0, LBB0_9
; %bb.1:
Lloh25:
	adrp	x8, _RT3090@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RT3090@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_8
; %bb.2:
Lloh28:
	adrp	x8, _RT3390@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RT3390@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_8
; %bb.3:
Lloh31:
	adrp	x8, _RT3572@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RT3572@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_8
; %bb.4:
Lloh34:
	adrp	x8, _RT3593@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RT3593@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_8
; %bb.5:
Lloh37:
	adrp	x8, _RT5390@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RT5390@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_8
; %bb.6:
Lloh40:
	adrp	x8, _RT5392@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RT5392@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_8
; %bb.7:
Lloh43:
	adrp	x8, _RT5592@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RT5592@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_9
LBB0_8:
Lloh46:
	adrp	x20, _AUX_CTRL@GOTPAGE
Lloh47:
	ldr	x20, [x20, _AUX_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	str	w0, [sp, #12]
Lloh48:
	adrp	x8, _AUX_CTRL_FORCE_PCIE_CLK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AUX_CTRL_FORCE_PCIE_CLK@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh51:
	adrp	x8, _AUX_CTRL_WAKE_PCIE_EN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AUX_CTRL_WAKE_PCIE_EN@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
LBB0_9:
Lloh54:
	adrp	x8, _PWR_PIN_CFG@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PWR_PIN_CFG@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_rt2x00mmio_register_write
	str	wzr, [sp, #12]
Lloh57:
	adrp	x8, _MAC_SYS_CTRL_RESET_CSR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MAC_SYS_CTRL_RESET_CSR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh60:
	adrp	x8, _MAC_SYS_CTRL_RESET_BBP@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MAC_SYS_CTRL_RESET_BBP@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh63:
	adrp	x20, _MAC_SYS_CTRL@GOTPAGE
Lloh64:
	ldr	x20, [x20, _MAC_SYS_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_rt2x00mmio_register_write
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_WPDMA_RST_IDX,4,2              ; @WPDMA_RST_IDX
	.comm	_WPDMA_RST_IDX_DTX_IDX0,4,2     ; @WPDMA_RST_IDX_DTX_IDX0
	.comm	_WPDMA_RST_IDX_DTX_IDX1,4,2     ; @WPDMA_RST_IDX_DTX_IDX1
	.comm	_WPDMA_RST_IDX_DTX_IDX2,4,2     ; @WPDMA_RST_IDX_DTX_IDX2
	.comm	_WPDMA_RST_IDX_DTX_IDX3,4,2     ; @WPDMA_RST_IDX_DTX_IDX3
	.comm	_WPDMA_RST_IDX_DTX_IDX4,4,2     ; @WPDMA_RST_IDX_DTX_IDX4
	.comm	_WPDMA_RST_IDX_DTX_IDX5,4,2     ; @WPDMA_RST_IDX_DTX_IDX5
	.comm	_WPDMA_RST_IDX_DRX_IDX0,4,2     ; @WPDMA_RST_IDX_DRX_IDX0
	.comm	_PBF_SYS_CTRL,4,2               ; @PBF_SYS_CTRL
	.comm	_RT3090,4,2                     ; @RT3090
	.comm	_RT3390,4,2                     ; @RT3390
	.comm	_RT3572,4,2                     ; @RT3572
	.comm	_RT3593,4,2                     ; @RT3593
	.comm	_RT5390,4,2                     ; @RT5390
	.comm	_RT5392,4,2                     ; @RT5392
	.comm	_RT5592,4,2                     ; @RT5592
	.comm	_AUX_CTRL,4,2                   ; @AUX_CTRL
	.comm	_AUX_CTRL_FORCE_PCIE_CLK,4,2    ; @AUX_CTRL_FORCE_PCIE_CLK
	.comm	_AUX_CTRL_WAKE_PCIE_EN,4,2      ; @AUX_CTRL_WAKE_PCIE_EN
	.comm	_PWR_PIN_CFG,4,2                ; @PWR_PIN_CFG
	.comm	_MAC_SYS_CTRL_RESET_CSR,4,2     ; @MAC_SYS_CTRL_RESET_CSR
	.comm	_MAC_SYS_CTRL_RESET_BBP,4,2     ; @MAC_SYS_CTRL_RESET_BBP
	.comm	_MAC_SYS_CTRL,4,2               ; @MAC_SYS_CTRL
.subsections_via_symbols
