	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x2_power_on
_mt76x2_power_on:                       ## @mt76x2_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MT_WLAN_MTC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	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), %ecx
	orl	(%rax), %ecx
	movq	_MT_WLAN_MTC_CTRL_PWR_ACK_S@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_mt76_poll
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$8323072, %edx                  ## imm = 0x7F0000
	callq	_mt76_clear
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$251658240, %edx                ## imm = 0xF000000
	callq	_mt76_clear
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$251658240, %edx                ## imm = 0xF000000
	callq	_mt76_set
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_mt76_clear
	movl	$3, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$70148, %esi                    ## imm = 0x11204
	movl	%eax, %edx
	callq	_mt76_clear
	xorl	%edi, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$65664, %esi                    ## imm = 0x10080
	movl	%eax, %edx
	callq	_mt76_set
	movl	$18, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$65636, %esi                    ## imm = 0x10064
	movl	%eax, %edx
	callq	_mt76_clear
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mt76x2_power_on_rf
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mt76x2_power_on_rf             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_WLAN_MTC_CTRL,4,2           ## @MT_WLAN_MTC_CTRL
	.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	_mt76x2_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x2_power_on
_mt76x2_power_on:                       ; @mt76x2_power_on
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _MT_WLAN_MTC_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MT_WLAN_MTC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
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]
	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	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	mov	x3, x2
	mov	w4, #1000
	bl	_mt76_poll
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #8323072
	bl	_mt76_clear
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #251658240
	bl	_mt76_clear
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #251658240
	bl	_mt76_set
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #4095
	bl	_mt76_clear
	mov	w0, #3
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #4612
	movk	w1, #1, lsl #16
	bl	_mt76_clear
	mov	w0, #0
	bl	_BIT
	mov	x2, x0
	mov	w8, #100
	movk	w8, #1, lsl #16
	add	w1, w8, #28
	mov	x0, x19
	bl	_mt76_set
	mov	w0, #18
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #100
	movk	w1, #1, lsl #16
	bl	_mt76_clear
	mov	x0, x19
	mov	w1, #0
	bl	_mt76x2_power_on_rf
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt76x2_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	_MT_WLAN_MTC_CTRL,4,2           ; @MT_WLAN_MTC_CTRL
	.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	_mt76x2_power_on
.subsections_via_symbols
