	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723au_power_on
_rtl8723au_power_on:                    ## @rtl8723au_power_on
	.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	%rdi, %r12
	movq	_REG_RSV_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_rtl8xxxu_write8
	movq	%r12, %rdi
	callq	_rtl8xxxu_disabled_to_emu
	movq	%r12, %rdi
	callq	_rtl8723a_emu_to_active
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_REG_APS_FSMCO@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	%r12, %rdi
	callq	_rtl8xxxu_read8
	movl	%eax, %r15d
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %r15d
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_rtl8xxxu_write8
	movq	_REG_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_rtl8xxxu_read16
	movq	_CR_HCI_TXDMA_ENABLE@GOTPCREL(%rip), %rcx
	movq	_CR_HCI_RXDMA_ENABLE@GOTPCREL(%rip), %rdx
	movq	_CR_TXDMA_ENABLE@GOTPCREL(%rip), %rsi
	movq	_CR_RXDMA_ENABLE@GOTPCREL(%rip), %rdi
	movq	_CR_PROTOCOL_ENABLE@GOTPCREL(%rip), %rbx
	movq	_CR_SCHEDULE_ENABLE@GOTPCREL(%rip), %r8
	movq	_CR_MAC_TX_ENABLE@GOTPCREL(%rip), %r9
	movq	_CR_MAC_RX_ENABLE@GOTPCREL(%rip), %r10
	movq	_CR_SECURITY_ENABLE@GOTPCREL(%rip), %r11
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	orl	(%rbx), %eax
	orl	(%r8), %eax
	orl	(%r9), %eax
	orl	(%r10), %eax
	orl	(%r11), %eax
	movq	_CR_CALTIMER_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_rtl8xxxu_write16
	movq	_REG_EFUSE_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rtl8xxxu_read32
	movl	%eax, %r15d
	movl	$28, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$29, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$30, %edi
	callq	_BIT
	orl	%eax, %ebx
	notl	%ebx
	andl	%r15d, %ebx
	orl	$1610612736, %ebx               ## imm = 0x60000000
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rtl8xxxu_write32
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RSV_CTRL,8,3               ## @REG_RSV_CTRL
	.comm	_REG_APS_FSMCO,8,3              ## @REG_APS_FSMCO
	.comm	_REG_CR,4,2                     ## @REG_CR
	.comm	_CR_HCI_TXDMA_ENABLE,4,2        ## @CR_HCI_TXDMA_ENABLE
	.comm	_CR_HCI_RXDMA_ENABLE,4,2        ## @CR_HCI_RXDMA_ENABLE
	.comm	_CR_TXDMA_ENABLE,4,2            ## @CR_TXDMA_ENABLE
	.comm	_CR_RXDMA_ENABLE,4,2            ## @CR_RXDMA_ENABLE
	.comm	_CR_PROTOCOL_ENABLE,4,2         ## @CR_PROTOCOL_ENABLE
	.comm	_CR_SCHEDULE_ENABLE,4,2         ## @CR_SCHEDULE_ENABLE
	.comm	_CR_MAC_TX_ENABLE,4,2           ## @CR_MAC_TX_ENABLE
	.comm	_CR_MAC_RX_ENABLE,4,2           ## @CR_MAC_RX_ENABLE
	.comm	_CR_SECURITY_ENABLE,4,2         ## @CR_SECURITY_ENABLE
	.comm	_CR_CALTIMER_ENABLE,4,2         ## @CR_CALTIMER_ENABLE
	.comm	_REG_EFUSE_CTRL,4,2             ## @REG_EFUSE_CTRL
	.no_dead_strip	_rtl8723au_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8723au_power_on
_rtl8723au_power_on:                    ; @rtl8723au_power_on
	.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	x19, x0
Lloh0:
	adrp	x8, _REG_RSV_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_RSV_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	w2, #0
	bl	_rtl8xxxu_write8
	mov	x0, x19
	bl	_rtl8xxxu_disabled_to_emu
	mov	x0, x19
	bl	_rtl8723a_emu_to_active
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x22, _REG_APS_FSMCO@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REG_APS_FSMCO@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtl8xxxu_read8
	mov	x21, x0
	mov	w0, #3
	bl	_BIT
	orr	w2, w0, w21
	ldr	x8, [x22]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtl8xxxu_write8
Lloh5:
	adrp	x21, _REG_CR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_CR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl8xxxu_read16
Lloh7:
	adrp	x8, _CR_HCI_TXDMA_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CR_HCI_TXDMA_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _CR_HCI_RXDMA_ENABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CR_HCI_RXDMA_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _CR_TXDMA_ENABLE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CR_TXDMA_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _CR_RXDMA_ENABLE@GOTPAGE
Lloh17:
	ldr	x11, [x11, _CR_RXDMA_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
Lloh19:
	adrp	x12, _CR_PROTOCOL_ENABLE@GOTPAGE
Lloh20:
	ldr	x12, [x12, _CR_PROTOCOL_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
Lloh22:
	adrp	x13, _CR_SCHEDULE_ENABLE@GOTPAGE
Lloh23:
	ldr	x13, [x13, _CR_SCHEDULE_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w13, [x13]
Lloh25:
	adrp	x14, _CR_MAC_TX_ENABLE@GOTPAGE
Lloh26:
	ldr	x14, [x14, _CR_MAC_TX_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w14, [x14]
Lloh28:
	adrp	x15, _CR_MAC_RX_ENABLE@GOTPAGE
Lloh29:
	ldr	x15, [x15, _CR_MAC_RX_ENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w15, [x15]
Lloh31:
	adrp	x16, _CR_SECURITY_ENABLE@GOTPAGE
Lloh32:
	ldr	x16, [x16, _CR_SECURITY_ENABLE@GOTPAGEOFF]
Lloh33:
	ldr	w16, [x16]
Lloh34:
	adrp	x17, _CR_CALTIMER_ENABLE@GOTPAGE
Lloh35:
	ldr	x17, [x17, _CR_CALTIMER_ENABLE@GOTPAGEOFF]
Lloh36:
	ldr	w17, [x17]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	orr	w8, w8, w15
	orr	w8, w8, w16
	orr	w2, w8, w17
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl8xxxu_write16
Lloh37:
	adrp	x23, _REG_EFUSE_CTRL@GOTPAGE
Lloh38:
	ldr	x23, [x23, _REG_EFUSE_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_rtl8xxxu_read32
	mov	x21, x0
	mov	w0, #28
	bl	_BIT
	mov	x22, x0
	mov	w0, #29
	bl	_BIT
	orr	w22, w0, w22
	mov	w0, #30
	bl	_BIT
	orr	w8, w22, w0
	bic	w8, w21, w8
	orr	w2, w8, #0x60000000
	ldr	w1, [x23]
	mov	x0, x19
	bl	_rtl8xxxu_write32
LBB0_2:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RSV_CTRL,8,3               ; @REG_RSV_CTRL
	.comm	_REG_APS_FSMCO,8,3              ; @REG_APS_FSMCO
	.comm	_REG_CR,4,2                     ; @REG_CR
	.comm	_CR_HCI_TXDMA_ENABLE,4,2        ; @CR_HCI_TXDMA_ENABLE
	.comm	_CR_HCI_RXDMA_ENABLE,4,2        ; @CR_HCI_RXDMA_ENABLE
	.comm	_CR_TXDMA_ENABLE,4,2            ; @CR_TXDMA_ENABLE
	.comm	_CR_RXDMA_ENABLE,4,2            ; @CR_RXDMA_ENABLE
	.comm	_CR_PROTOCOL_ENABLE,4,2         ; @CR_PROTOCOL_ENABLE
	.comm	_CR_SCHEDULE_ENABLE,4,2         ; @CR_SCHEDULE_ENABLE
	.comm	_CR_MAC_TX_ENABLE,4,2           ; @CR_MAC_TX_ENABLE
	.comm	_CR_MAC_RX_ENABLE,4,2           ; @CR_MAC_RX_ENABLE
	.comm	_CR_SECURITY_ENABLE,4,2         ; @CR_SECURITY_ENABLE
	.comm	_CR_CALTIMER_ENABLE,4,2         ; @CR_CALTIMER_ENABLE
	.comm	_REG_EFUSE_CTRL,4,2             ; @REG_EFUSE_CTRL
	.no_dead_strip	_rtl8723au_power_on
.subsections_via_symbols
