	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_mac_mii_access
_lan743x_mac_mii_access:                ## @lan743x_mac_mii_access
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_MAC_MII_ACC_PHY_ADDR_SHIFT_@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_MAC_MII_ACC_PHY_ADDR_MASK_@GOTPCREL(%rip), %rsi
	shll	%cl, %edi
	movq	_MAC_MII_ACC_MIIRINDA_SHIFT_@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	andl	(%rsi), %edi
	movq	_MAC_MII_ACC_MIIRINDA_MASK_@GOTPCREL(%rip), %rsi
	shll	%cl, %eax
	andl	(%rsi), %eax
	orl	%edi, %eax
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_MAC_MII_ACC_MII_WRITE_@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_MAC_MII_ACC_MII_READ_@GOTPCREL(%rip), %rcx
LBB0_3:
	orl	(%rcx), %eax
	movq	_MAC_MII_ACC_MII_BUSY_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_MII_ACC_PHY_ADDR_SHIFT_,4,2 ## @MAC_MII_ACC_PHY_ADDR_SHIFT_
	.comm	_MAC_MII_ACC_PHY_ADDR_MASK_,4,2 ## @MAC_MII_ACC_PHY_ADDR_MASK_
	.comm	_MAC_MII_ACC_MIIRINDA_SHIFT_,4,2 ## @MAC_MII_ACC_MIIRINDA_SHIFT_
	.comm	_MAC_MII_ACC_MIIRINDA_MASK_,4,2 ## @MAC_MII_ACC_MIIRINDA_MASK_
	.comm	_MAC_MII_ACC_MII_READ_,4,2      ## @MAC_MII_ACC_MII_READ_
	.comm	_MAC_MII_ACC_MII_WRITE_,4,2     ## @MAC_MII_ACC_MII_WRITE_
	.comm	_MAC_MII_ACC_MII_BUSY_,4,2      ## @MAC_MII_ACC_MII_BUSY_
	.no_dead_strip	_lan743x_mac_mii_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_mac_mii_access
_lan743x_mac_mii_access:                ; @lan743x_mac_mii_access
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAC_MII_ACC_PHY_ADDR_SHIFT_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_MII_ACC_PHY_ADDR_SHIFT_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAC_MII_ACC_PHY_ADDR_MASK_@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC_MII_ACC_PHY_ADDR_MASK_@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MAC_MII_ACC_MIIRINDA_SHIFT_@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MAC_MII_ACC_MIIRINDA_SHIFT_@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MAC_MII_ACC_MIIRINDA_MASK_@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MAC_MII_ACC_MIIRINDA_MASK_@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	lsl	w8, w0, w8
	and	w8, w8, w9
	lsl	w9, w1, w10
	and	w9, w9, w11
Lloh12:
	adrp	x10, _MAC_MII_ACC_MII_WRITE_@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MAC_MII_ACC_MII_WRITE_@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _MAC_MII_ACC_MII_READ_@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAC_MII_ACC_MII_READ_@GOTPAGEOFF]
	cmp	w2, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _MAC_MII_ACC_MII_BUSY_@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAC_MII_ACC_MII_BUSY_@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_MII_ACC_PHY_ADDR_SHIFT_,4,2 ; @MAC_MII_ACC_PHY_ADDR_SHIFT_
	.comm	_MAC_MII_ACC_PHY_ADDR_MASK_,4,2 ; @MAC_MII_ACC_PHY_ADDR_MASK_
	.comm	_MAC_MII_ACC_MIIRINDA_SHIFT_,4,2 ; @MAC_MII_ACC_MIIRINDA_SHIFT_
	.comm	_MAC_MII_ACC_MIIRINDA_MASK_,4,2 ; @MAC_MII_ACC_MIIRINDA_MASK_
	.comm	_MAC_MII_ACC_MII_READ_,4,2      ; @MAC_MII_ACC_MII_READ_
	.comm	_MAC_MII_ACC_MII_WRITE_,4,2     ; @MAC_MII_ACC_MII_WRITE_
	.comm	_MAC_MII_ACC_MII_BUSY_,4,2      ; @MAC_MII_ACC_MII_BUSY_
	.no_dead_strip	_lan743x_mac_mii_access
.subsections_via_symbols
