	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_phy_init
_mt7603_phy_init:                       ## @mt7603_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	%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, %r13
	movl	16(%rdi), %r15d
	movl	%r15d, %edi
	callq	_hweight8
                                        ## kill: def $eax killed $eax def $rax
	decl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MT_WF_RMAC_RMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MT_WF_RMAC_RMCR_SMPS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MT_WF_RMAC_RMCR_RX_STREAMS@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	orl	%edi, %ebx
	movl	$3, %esi
	callq	_FIELD_PREP
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_FIELD_PREP
	orl	%eax, %r14d
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_mt76_rmw
	movq	_MT_TMAC_TCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TMAC_TCR_TX_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_mt76_rmw_field
	xorl	%edi, %edi
	callq	_MT_AGC
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	movq	%rax, 8(%r13)
	movl	$3, %edi
	callq	_MT_AGC
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	movq	%rax, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_WF_RMAC_RMCR,4,2            ## @MT_WF_RMAC_RMCR
	.comm	_MT_WF_RMAC_RMCR_SMPS_MODE,4,2  ## @MT_WF_RMAC_RMCR_SMPS_MODE
	.comm	_MT_WF_RMAC_RMCR_RX_STREAMS,4,2 ## @MT_WF_RMAC_RMCR_RX_STREAMS
	.comm	_MT_TMAC_TCR,4,2                ## @MT_TMAC_TCR
	.comm	_MT_TMAC_TCR_TX_STREAMS,4,2     ## @MT_TMAC_TCR_TX_STREAMS
	.no_dead_strip	_mt7603_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_phy_init
_mt7603_phy_init:                       ; @mt7603_phy_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w20, [x0, #16]
	mov	x0, x20
	bl	_hweight8
	sub	w21, w0, #1
Lloh0:
	adrp	x8, _MT_WF_RMAC_RMCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_WF_RMAC_RMCR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MT_WF_RMAC_RMCR_SMPS_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MT_WF_RMAC_RMCR_SMPS_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w0, [x9]
Lloh6:
	adrp	x25, _MT_WF_RMAC_RMCR_RX_STREAMS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MT_WF_RMAC_RMCR_RX_STREAMS@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w23, w8, w0
	mov	w1, #3
	bl	_FIELD_PREP
	mov	x24, x0
	ldr	w0, [x25]
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w3, w0, w24
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_mt76_rmw
Lloh8:
	adrp	x8, _MT_TMAC_TCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_TMAC_TCR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _MT_TMAC_TCR_TX_STREAMS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_TMAC_TCR_TX_STREAMS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_mt76_rmw_field
	mov	w0, #0
	bl	_MT_AGC
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	str	x0, [x19, #8]
	mov	w0, #3
	bl	_MT_AGC
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	str	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_WF_RMAC_RMCR,4,2            ; @MT_WF_RMAC_RMCR
	.comm	_MT_WF_RMAC_RMCR_SMPS_MODE,4,2  ; @MT_WF_RMAC_RMCR_SMPS_MODE
	.comm	_MT_WF_RMAC_RMCR_RX_STREAMS,4,2 ; @MT_WF_RMAC_RMCR_RX_STREAMS
	.comm	_MT_TMAC_TCR,4,2                ; @MT_TMAC_TCR
	.comm	_MT_TMAC_TCR_TX_STREAMS,4,2     ; @MT_TMAC_TCR_TX_STREAMS
	.no_dead_strip	_mt7603_phy_init
.subsections_via_symbols
