	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_g2_smi_phy_access
_mv88e6xxx_g2_smi_phy_access:           ## @mv88e6xxx_g2_smi_phy_access
	.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
	movl	%r9d, %ebx
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rdi, %r12
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_MV88E6390_G2_SMI_PHY_CMD_FUNC_INTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MV88E6390_G2_SMI_PHY_CMD_FUNC_EXTERNAL@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %r14d
	testl	%edx, %edx
	jne	LBB0_4
## %bb.5:
	movq	_MV88E6XXX_G2_SMI_PHY_CMD_MODE_22@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_MV88E6XXX_G2_SMI_PHY_CMD_MODE_45@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %r14d
	movq	_MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	___bf_shf
	movl	%eax, %ecx
	shll	%cl, %r15d
	andl	(%r13), %r15d
	movq	_MV88E6XXX_G2_SMI_PHY_CMD_REG_ADDR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	%r15d, %ebx
	orl	%r14d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv88e6xxx_g2_smi_phy_cmd       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6390_G2_SMI_PHY_CMD_FUNC_EXTERNAL,4,2 ## @MV88E6390_G2_SMI_PHY_CMD_FUNC_EXTERNAL
	.comm	_MV88E6390_G2_SMI_PHY_CMD_FUNC_INTERNAL,4,2 ## @MV88E6390_G2_SMI_PHY_CMD_FUNC_INTERNAL
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_MODE_45,4,2 ## @MV88E6XXX_G2_SMI_PHY_CMD_MODE_45
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_MODE_22,4,2 ## @MV88E6XXX_G2_SMI_PHY_CMD_MODE_22
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK,4,2 ## @MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_REG_ADDR_MASK,4,2 ## @MV88E6XXX_G2_SMI_PHY_CMD_REG_ADDR_MASK
	.no_dead_strip	_mv88e6xxx_g2_smi_phy_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_g2_smi_phy_access
_mv88e6xxx_g2_smi_phy_access:           ; @mv88e6xxx_g2_smi_phy_access
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x0
Lloh0:
	adrp	x8, _MV88E6390_G2_SMI_PHY_CMD_FUNC_INTERNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6390_G2_SMI_PHY_CMD_FUNC_INTERNAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MV88E6390_G2_SMI_PHY_CMD_FUNC_EXTERNAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MV88E6390_G2_SMI_PHY_CMD_FUNC_EXTERNAL@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	orr	w8, w8, w3
Lloh4:
	adrp	x9, _MV88E6XXX_G2_SMI_PHY_CMD_MODE_22@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MV88E6XXX_G2_SMI_PHY_CMD_MODE_22@GOTPAGEOFF]
Lloh6:
	adrp	x10, _MV88E6XXX_G2_SMI_PHY_CMD_MODE_45@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MV88E6XXX_G2_SMI_PHY_CMD_MODE_45@GOTPAGEOFF]
	cmp	w2, #0
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w22, w8, w9
Lloh8:
	adrp	x23, _MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	___bf_shf
	lsl	w8, w20, w0
	ldr	w9, [x23]
	and	w8, w8, w9
Lloh10:
	adrp	x9, _MV88E6XXX_G2_SMI_PHY_CMD_REG_ADDR_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MV88E6XXX_G2_SMI_PHY_CMD_REG_ADDR_MASK@GOTPAGEOFF]
	orr	w8, w22, w8
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, w19
	orr	w1, w8, w9
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mv88e6xxx_g2_smi_phy_cmd
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6390_G2_SMI_PHY_CMD_FUNC_EXTERNAL,4,2 ; @MV88E6390_G2_SMI_PHY_CMD_FUNC_EXTERNAL
	.comm	_MV88E6390_G2_SMI_PHY_CMD_FUNC_INTERNAL,4,2 ; @MV88E6390_G2_SMI_PHY_CMD_FUNC_INTERNAL
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_MODE_45,4,2 ; @MV88E6XXX_G2_SMI_PHY_CMD_MODE_45
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_MODE_22,4,2 ; @MV88E6XXX_G2_SMI_PHY_CMD_MODE_22
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK,4,2 ; @MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK
	.comm	_MV88E6XXX_G2_SMI_PHY_CMD_REG_ADDR_MASK,4,2 ; @MV88E6XXX_G2_SMI_PHY_CMD_REG_ADDR_MASK
	.no_dead_strip	_mv88e6xxx_g2_smi_phy_access
.subsections_via_symbols
