	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8192eu_power_on
_rtl8192eu_power_on:                    ## @rtl8192eu_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_REG_SYS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtl8xxxu_read32
	movq	_SYS_CFG_SPS_LDO_SEL@GOTPCREL(%rip), %rcx
	movl	$195, %edx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_REG_8192E_LDOV12_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read32
                                        ## kill: def $eax killed $eax def $rax
	andl	$-15728641, %eax                ## imm = 0xFF0FFFFF
	leal	5242880(%rax), %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_write32
	movl	$131, %edx
LBB0_2:
	movq	_REG_LDO_SW_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	callq	_rtl8192e_crystal_afe_adjust
	movq	%rbx, %rdi
	callq	_rtl8192e_disabled_to_emu
	movq	%rbx, %rdi
	callq	_rtl8192e_emu_to_active
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_REG_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl8xxxu_write16
	movl	(%r15), %esi
	movq	%rbx, %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), %r8
	movq	_CR_SCHEDULE_ENABLE@GOTPCREL(%rip), %r9
	movq	_CR_MAC_TX_ENABLE@GOTPCREL(%rip), %r10
	movq	_CR_MAC_RX_ENABLE@GOTPCREL(%rip), %r11
	movq	_CR_SECURITY_ENABLE@GOTPCREL(%rip), %r12
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	orl	(%r8), %eax
	orl	(%r9), %eax
	orl	(%r10), %eax
	orl	(%r11), %eax
	orl	(%r12), %eax
	movq	_CR_CALTIMER_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl8xxxu_write16
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SYS_CFG,4,2                ## @REG_SYS_CFG
	.comm	_SYS_CFG_SPS_LDO_SEL,4,2        ## @SYS_CFG_SPS_LDO_SEL
	.comm	_REG_LDO_SW_CTRL,4,2            ## @REG_LDO_SW_CTRL
	.comm	_REG_8192E_LDOV12_CTRL,4,2      ## @REG_8192E_LDOV12_CTRL
	.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
	.no_dead_strip	_rtl8192eu_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8192eu_power_on
_rtl8192eu_power_on:                    ; @rtl8192eu_power_on
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_SYS_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SYS_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rtl8xxxu_read32
Lloh3:
	adrp	x8, _SYS_CFG_SPS_LDO_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_CFG_SPS_LDO_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w2, #195
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x20, _REG_8192E_LDOV12_CTRL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REG_8192E_LDOV12_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl8xxxu_read32
	mov	x2, x0
	mov	w8, #5
	bfi	w2, w8, #20, #4
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl8xxxu_write32
	mov	w2, #131
LBB0_3:
Lloh8:
	adrp	x8, _REG_LDO_SW_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_LDO_SW_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl8xxxu_write8
	mov	x0, x19
	bl	_rtl8192e_crystal_afe_adjust
	mov	x0, x19
	bl	_rtl8192e_disabled_to_emu
	mov	x0, x19
	bl	_rtl8192e_emu_to_active
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x21, _REG_CR@GOTPAGE
Lloh12:
	ldr	x21, [x21, _REG_CR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl8xxxu_write16
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl8xxxu_read16
Lloh13:
	adrp	x8, _CR_HCI_TXDMA_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CR_HCI_TXDMA_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _CR_HCI_RXDMA_ENABLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CR_HCI_RXDMA_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _CR_TXDMA_ENABLE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CR_TXDMA_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _CR_RXDMA_ENABLE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _CR_RXDMA_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
Lloh25:
	adrp	x12, _CR_PROTOCOL_ENABLE@GOTPAGE
Lloh26:
	ldr	x12, [x12, _CR_PROTOCOL_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w12, [x12]
Lloh28:
	adrp	x13, _CR_SCHEDULE_ENABLE@GOTPAGE
Lloh29:
	ldr	x13, [x13, _CR_SCHEDULE_ENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w13, [x13]
Lloh31:
	adrp	x14, _CR_MAC_TX_ENABLE@GOTPAGE
Lloh32:
	ldr	x14, [x14, _CR_MAC_TX_ENABLE@GOTPAGEOFF]
Lloh33:
	ldr	w14, [x14]
Lloh34:
	adrp	x15, _CR_MAC_RX_ENABLE@GOTPAGE
Lloh35:
	ldr	x15, [x15, _CR_MAC_RX_ENABLE@GOTPAGEOFF]
Lloh36:
	ldr	w15, [x15]
Lloh37:
	adrp	x16, _CR_SECURITY_ENABLE@GOTPAGE
Lloh38:
	ldr	x16, [x16, _CR_SECURITY_ENABLE@GOTPAGEOFF]
Lloh39:
	ldr	w16, [x16]
Lloh40:
	adrp	x17, _CR_CALTIMER_ENABLE@GOTPAGE
Lloh41:
	ldr	x17, [x17, _CR_CALTIMER_ENABLE@GOTPAGEOFF]
Lloh42:
	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
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.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 AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SYS_CFG,4,2                ; @REG_SYS_CFG
	.comm	_SYS_CFG_SPS_LDO_SEL,4,2        ; @SYS_CFG_SPS_LDO_SEL
	.comm	_REG_LDO_SW_CTRL,4,2            ; @REG_LDO_SW_CTRL
	.comm	_REG_8192E_LDOV12_CTRL,4,2      ; @REG_8192E_LDOV12_CTRL
	.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
	.no_dead_strip	_rtl8192eu_power_on
.subsections_via_symbols
