	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7531_phy_setting
_mt7531_phy_setting:                    ## @mt7531_phy_setting
	.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, %rbx
	movq	_PHY_DEV1F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_DEV1F_REG_44@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$192, %r8d
	callq	*16(%rdi)
	movq	_MT753X_NUM_PHYS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	movq	_PHY_DEV1E@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PHY_DEV07@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_DEV07_REG_03C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$31, %edx
	movl	$1, %ecx
	callq	*24(%rbx)
	movq	_PHY_EXT_REG_14@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rbx)
	movq	_PHY_EN_DOWN_SHFIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$31, %edx
	movl	$21173, %ecx                    ## imm = 0x52B5
	callq	*24(%rbx)
	movq	_PHY_TR_REG_10@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$44974, %ecx                    ## imm = 0xAFAE
	callq	*24(%rbx)
	movq	_PHY_TR_REG_12@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$47, %ecx
	callq	*24(%rbx)
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$36782, %ecx                    ## imm = 0x8FAE
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$31, %edx
	xorl	%ecx, %ecx
	callq	*24(%rbx)
	movl	(%r15), %edx
	movq	_PHY_DEV1E_REG_123@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$65535, %r8d                    ## imm = 0xFFFF
	callq	*16(%rbx)
	movl	(%r15), %edx
	movq	_PHY_DEV1E_REG_A6@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$768, %r8d                      ## imm = 0x300
	callq	*16(%rbx)
	movq	_PHY_EXT_REG_17@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rbx)
	movq	_PHY_LINKDOWN_POWER_SAVING_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	*24(%rbx)
	movl	(%r15), %edx
	movq	_PHY_DEV1E_REG_0C6@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*8(%rbx)
	movq	_PHY_POWER_SAVING_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	_PHY_POWER_SAVING_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_PHY_POWER_SAVING_S@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %r8d
	andl	%eax, %edx
	orl	%edx, %r8d
	movl	(%r15), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*16(%rbx)
	movl	(%r15), %edx
	movq	_PHY_DEV1E_REG_13@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1028, %r8d                     ## imm = 0x404
	callq	*16(%rbx)
	movl	(%r15), %edx
	movq	_PHY_DEV1E_REG_14@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1028, %r8d                     ## imm = 0x404
	callq	*16(%rbx)
	incl	%r14d
	cmpl	(%r12), %r14d
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_DEV1F,4,2                  ## @PHY_DEV1F
	.comm	_PHY_DEV1F_REG_44,4,2           ## @PHY_DEV1F_REG_44
	.comm	_MT753X_NUM_PHYS,4,2            ## @MT753X_NUM_PHYS
	.comm	_PHY_DEV07,4,2                  ## @PHY_DEV07
	.comm	_PHY_DEV07_REG_03C,4,2          ## @PHY_DEV07_REG_03C
	.comm	_PHY_EXT_REG_14,4,2             ## @PHY_EXT_REG_14
	.comm	_PHY_EN_DOWN_SHFIT,4,2          ## @PHY_EN_DOWN_SHFIT
	.comm	_PHY_TR_REG_10,4,2              ## @PHY_TR_REG_10
	.comm	_PHY_TR_REG_12,4,2              ## @PHY_TR_REG_12
	.comm	_PHY_DEV1E,4,2                  ## @PHY_DEV1E
	.comm	_PHY_DEV1E_REG_123,4,2          ## @PHY_DEV1E_REG_123
	.comm	_PHY_DEV1E_REG_A6,4,2           ## @PHY_DEV1E_REG_A6
	.comm	_PHY_EXT_REG_17,4,2             ## @PHY_EXT_REG_17
	.comm	_PHY_LINKDOWN_POWER_SAVING_EN,4,2 ## @PHY_LINKDOWN_POWER_SAVING_EN
	.comm	_PHY_DEV1E_REG_0C6,4,2          ## @PHY_DEV1E_REG_0C6
	.comm	_PHY_POWER_SAVING_M,4,2         ## @PHY_POWER_SAVING_M
	.comm	_PHY_POWER_SAVING_TX,4,2        ## @PHY_POWER_SAVING_TX
	.comm	_PHY_POWER_SAVING_S,4,2         ## @PHY_POWER_SAVING_S
	.comm	_PHY_DEV1E_REG_13,4,2           ## @PHY_DEV1E_REG_13
	.comm	_PHY_DEV1E_REG_14,4,2           ## @PHY_DEV1E_REG_14
	.no_dead_strip	_mt7531_phy_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7531_phy_setting
_mt7531_phy_setting:                    ; @mt7531_phy_setting
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _PHY_DEV1F@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_DEV1F@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x9, _PHY_DEV1F_REG_44@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_DEV1F_REG_44@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	mov	w1, #0
	mov	w4, #192
	blr	x8
Lloh6:
	adrp	x21, _MT753X_NUM_PHYS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MT753X_NUM_PHYS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh8:
	adrp	x24, _PHY_EXT_REG_14@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PHY_EXT_REG_14@GOTPAGEOFF]
Lloh10:
	adrp	x26, _PHY_TR_REG_10@GOTPAGE
Lloh11:
	ldr	x26, [x26, _PHY_TR_REG_10@GOTPAGEOFF]
Lloh12:
	adrp	x28, _PHY_DEV1E@GOTPAGE
Lloh13:
	ldr	x28, [x28, _PHY_DEV1E@GOTPAGEOFF]
Lloh14:
	adrp	x25, _PHY_EXT_REG_17@GOTPAGE
Lloh15:
	ldr	x25, [x25, _PHY_EXT_REG_17@GOTPAGEOFF]
Lloh16:
	adrp	x27, _PHY_DEV1E_REG_0C6@GOTPAGE
Lloh17:
	ldr	x27, [x27, _PHY_DEV1E_REG_0C6@GOTPAGEOFF]
Lloh18:
	adrp	x22, _PHY_DEV1E_REG_13@GOTPAGE
Lloh19:
	ldr	x22, [x22, _PHY_DEV1E_REG_13@GOTPAGEOFF]
Lloh20:
	adrp	x23, _PHY_DEV1E_REG_14@GOTPAGE
Lloh21:
	ldr	x23, [x23, _PHY_DEV1E_REG_14@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
Lloh22:
	adrp	x9, _PHY_DEV07@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PHY_DEV07@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x9]
Lloh25:
	adrp	x9, _PHY_DEV07_REG_03C@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PHY_DEV07_REG_03C@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x9]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	blr	x8
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w3, #1
	blr	x8
	ldr	x8, [x19]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x20
	blr	x8
Lloh28:
	adrp	x8, _PHY_EN_DOWN_SHFIT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PHY_EN_DOWN_SHFIT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	x8, [x19, #24]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w3, #21173
	blr	x8
	ldr	x8, [x19, #24]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #44974
	blr	x8
	ldr	x8, [x19, #24]
Lloh31:
	adrp	x9, _PHY_TR_REG_12@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PHY_TR_REG_12@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #47
	blr	x8
	ldr	x8, [x19, #24]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #36782
	blr	x8
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w3, #0
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w2, [x28]
Lloh34:
	adrp	x9, _PHY_DEV1E_REG_123@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PHY_DEV1E_REG_123@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x9]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #65535
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w2, [x28]
Lloh37:
	adrp	x9, _PHY_DEV1E_REG_A6@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PHY_DEV1E_REG_A6@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x9]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #768
	blr	x8
	ldr	x8, [x19]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	blr	x8
Lloh40:
	adrp	x8, _PHY_LINKDOWN_POWER_SAVING_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PHY_LINKDOWN_POWER_SAVING_EN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	x8, [x19, #24]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x19, #8]
	ldr	w2, [x28]
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, x20
	blr	x8
Lloh43:
	adrp	x8, _PHY_POWER_SAVING_M@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PHY_POWER_SAVING_M@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh46:
	adrp	x9, _PHY_POWER_SAVING_TX@GOTPAGE
Lloh47:
	ldr	x9, [x9, _PHY_POWER_SAVING_TX@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
Lloh49:
	adrp	x10, _PHY_POWER_SAVING_S@GOTPAGE
Lloh50:
	ldr	x10, [x10, _PHY_POWER_SAVING_S@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w4, w9, w8
	ldr	x8, [x19, #16]
	ldr	w2, [x28]
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w2, [x28]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1028
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w2, [x28]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1028
	blr	x8
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_DEV1F,4,2                  ; @PHY_DEV1F
	.comm	_PHY_DEV1F_REG_44,4,2           ; @PHY_DEV1F_REG_44
	.comm	_MT753X_NUM_PHYS,4,2            ; @MT753X_NUM_PHYS
	.comm	_PHY_DEV07,4,2                  ; @PHY_DEV07
	.comm	_PHY_DEV07_REG_03C,4,2          ; @PHY_DEV07_REG_03C
	.comm	_PHY_EXT_REG_14,4,2             ; @PHY_EXT_REG_14
	.comm	_PHY_EN_DOWN_SHFIT,4,2          ; @PHY_EN_DOWN_SHFIT
	.comm	_PHY_TR_REG_10,4,2              ; @PHY_TR_REG_10
	.comm	_PHY_TR_REG_12,4,2              ; @PHY_TR_REG_12
	.comm	_PHY_DEV1E,4,2                  ; @PHY_DEV1E
	.comm	_PHY_DEV1E_REG_123,4,2          ; @PHY_DEV1E_REG_123
	.comm	_PHY_DEV1E_REG_A6,4,2           ; @PHY_DEV1E_REG_A6
	.comm	_PHY_EXT_REG_17,4,2             ; @PHY_EXT_REG_17
	.comm	_PHY_LINKDOWN_POWER_SAVING_EN,4,2 ; @PHY_LINKDOWN_POWER_SAVING_EN
	.comm	_PHY_DEV1E_REG_0C6,4,2          ; @PHY_DEV1E_REG_0C6
	.comm	_PHY_POWER_SAVING_M,4,2         ; @PHY_POWER_SAVING_M
	.comm	_PHY_POWER_SAVING_TX,4,2        ; @PHY_POWER_SAVING_TX
	.comm	_PHY_POWER_SAVING_S,4,2         ; @PHY_POWER_SAVING_S
	.comm	_PHY_DEV1E_REG_13,4,2           ; @PHY_DEV1E_REG_13
	.comm	_PHY_DEV1E_REG_14,4,2           ; @PHY_DEV1E_REG_14
	.no_dead_strip	_mt7531_phy_setting
.subsections_via_symbols
