	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_phy_init               ## -- Begin function mt7601u_phy_init
	.p2align	4, 0x90
_mt7601u_phy_init:                      ## @mt7601u_phy_init
	.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_RF_PA_MODE_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt7601u_rr
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_MT_RF_PA_MODE_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_rr
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_mt7601u_rf_wr
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_rf_central@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_mt7601u_write_reg_pairs
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_rf_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_mt7601u_write_reg_pairs
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_rf_vga@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_mt7601u_write_reg_pairs
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_mt7601u_init_cal
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$100, (%rbx)
	leaq	8(%rbx), %rdi
	movq	_mt7601u_phy_calibrate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	addq	$4, %rbx
	movq	_mt7601u_phy_freq_cal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_DELAYED_WORK
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_RF_PA_MODE_CFG0,4,2         ## @MT_RF_PA_MODE_CFG0
	.comm	_MT_RF_PA_MODE_CFG1,4,2         ## @MT_RF_PA_MODE_CFG1
	.comm	_rf_central,4,2                 ## @rf_central
	.comm	_rf_channel,4,2                 ## @rf_channel
	.comm	_rf_vga,4,2                     ## @rf_vga
	.comm	_mt7601u_phy_calibrate,4,2      ## @mt7601u_phy_calibrate
	.comm	_mt7601u_phy_freq_cal,4,2       ## @mt7601u_phy_freq_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_phy_init               ; -- Begin function mt7601u_phy_init
	.p2align	2
_mt7601u_phy_init:                      ; @mt7601u_phy_init
	.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	x8, _MT_RF_PA_MODE_CFG0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_RF_PA_MODE_CFG0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt7601u_rr
	ldr	x8, [x19, #24]
	str	x0, [x8]
Lloh3:
	adrp	x8, _MT_RF_PA_MODE_CFG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_RF_PA_MODE_CFG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt7601u_rr
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_mt7601u_rf_wr
	cbnz	w0, LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _rf_central@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rf_central@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_mt7601u_write_reg_pairs
	cbnz	w0, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _rf_channel@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rf_channel@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_mt7601u_write_reg_pairs
	cbnz	w0, LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _rf_vga@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rf_vga@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_mt7601u_write_reg_pairs
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_mt7601u_init_cal
	cbnz	w0, LBB0_6
; %bb.5:
	mov	w8, #100
	add	x0, x19, #8
	str	w8, [x19], #4
Lloh15:
	adrp	x8, _mt7601u_phy_calibrate@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mt7601u_phy_calibrate@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh18:
	adrp	x8, _mt7601u_phy_freq_cal@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mt7601u_phy_freq_cal@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_RF_PA_MODE_CFG0,4,2         ; @MT_RF_PA_MODE_CFG0
	.comm	_MT_RF_PA_MODE_CFG1,4,2         ; @MT_RF_PA_MODE_CFG1
	.comm	_rf_central,4,2                 ; @rf_central
	.comm	_rf_channel,4,2                 ; @rf_channel
	.comm	_rf_vga,4,2                     ; @rf_vga
	.comm	_mt7601u_phy_calibrate,4,2      ; @mt7601u_phy_calibrate
	.comm	_mt7601u_phy_freq_cal,4,2       ; @mt7601u_phy_freq_cal
.subsections_via_symbols
