	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x2u_power_on
_mt76x2u_power_on:                      ## @mt76x2u_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$328, %esi                      ## imm = 0x148
	callq	_MT_VEND_ADDR
	movq	_MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_set
	movq	_MT_WLAN_MTC_CTRL_STATE_UP@GOTPCREL(%rip), %rax
	movq	_MT_WLAN_MTC_CTRL_PWR_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_MT_WLAN_MTC_CTRL_PWR_ACK_S@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r15), %edi
	movl	$328, %esi                      ## imm = 0x148
	callq	_MT_VEND_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_mt76_poll
	movl	(%r15), %edi
	movl	$328, %esi                      ## imm = 0x148
	callq	_MT_VEND_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8323072, %edx                  ## imm = 0x7F0000
	callq	_mt76_clear
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r15), %edi
	movl	$328, %esi                      ## imm = 0x148
	callq	_MT_VEND_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$251658240, %edx                ## imm = 0xF000000
	callq	_mt76_clear
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r15), %edi
	movl	$328, %esi                      ## imm = 0x148
	callq	_MT_VEND_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$251658240, %edx                ## imm = 0xF000000
	callq	_mt76_set
	movl	(%r15), %edi
	movl	$328, %esi                      ## imm = 0x148
	callq	_MT_VEND_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_mt76_clear
	movl	(%r15), %edi
	movl	$4612, %esi                     ## imm = 0x1204
	callq	_MT_VEND_ADDR
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mt76_clear
	movl	(%r15), %edi
	movl	$128, %esi
	callq	_MT_VEND_ADDR
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mt76_set
	movl	(%r15), %edi
	movl	$100, %esi
	callq	_MT_VEND_ADDR
	movl	%eax, %ebx
	movl	$18, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mt76_clear
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mt76x2u_power_on_rf
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76x2u_power_on_rf            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG,4,2                        ## @CFG
	.comm	_MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP,4,2 ## @MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP
	.comm	_MT_WLAN_MTC_CTRL_STATE_UP,4,2  ## @MT_WLAN_MTC_CTRL_STATE_UP
	.comm	_MT_WLAN_MTC_CTRL_PWR_ACK,4,2   ## @MT_WLAN_MTC_CTRL_PWR_ACK
	.comm	_MT_WLAN_MTC_CTRL_PWR_ACK_S,4,2 ## @MT_WLAN_MTC_CTRL_PWR_ACK_S
	.no_dead_strip	_mt76x2u_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x2u_power_on
_mt76x2u_power_on:                      ; @mt76x2u_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	x21, _CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CFG@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #328
	bl	_MT_VEND_ADDR
	mov	x1, x0
Lloh2:
	adrp	x8, _MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_set
Lloh5:
	adrp	x8, _MT_WLAN_MTC_CTRL_STATE_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_WLAN_MTC_CTRL_STATE_UP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MT_WLAN_MTC_CTRL_PWR_ACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MT_WLAN_MTC_CTRL_PWR_ACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _MT_WLAN_MTC_CTRL_PWR_ACK_S@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MT_WLAN_MTC_CTRL_PWR_ACK_S@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w0, [x21]
	mov	w1, #328
	bl	_MT_VEND_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	mov	x3, x20
	mov	w4, #1000
	bl	_mt76_poll
	ldr	w0, [x21]
	mov	w1, #328
	bl	_MT_VEND_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	w2, #8323072
	bl	_mt76_clear
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x21]
	mov	w1, #328
	bl	_MT_VEND_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	w2, #251658240
	bl	_mt76_clear
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x21]
	mov	w1, #328
	bl	_MT_VEND_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	w2, #251658240
	bl	_mt76_set
	ldr	w0, [x21]
	mov	w1, #328
	bl	_MT_VEND_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4095
	bl	_mt76_clear
	ldr	w0, [x21]
	mov	w1, #4612
	bl	_MT_VEND_ADDR
	mov	x20, x0
	mov	w0, #3
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_clear
	ldr	w0, [x21]
	mov	w1, #128
	bl	_MT_VEND_ADDR
	mov	x20, x0
	mov	w0, #0
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_set
	ldr	w0, [x21]
	mov	w1, #100
	bl	_MT_VEND_ADDR
	mov	x20, x0
	mov	w0, #18
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_clear
	mov	x0, x19
	mov	w1, #0
	bl	_mt76x2u_power_on_rf
	mov	x0, x19
	mov	w1, #1
	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
	b	_mt76x2u_power_on_rf
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG,4,2                        ; @CFG
	.comm	_MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP,4,2 ; @MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP
	.comm	_MT_WLAN_MTC_CTRL_STATE_UP,4,2  ; @MT_WLAN_MTC_CTRL_STATE_UP
	.comm	_MT_WLAN_MTC_CTRL_PWR_ACK,4,2   ; @MT_WLAN_MTC_CTRL_PWR_ACK
	.comm	_MT_WLAN_MTC_CTRL_PWR_ACK_S,4,2 ; @MT_WLAN_MTC_CTRL_PWR_ACK_S
	.no_dead_strip	_mt76x2u_power_on
.subsections_via_symbols
