	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_read_mmd_regs_v1
_xgbe_read_mmd_regs_v1:                 ## @xgbe_read_mmd_regs_v1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%edx, %ebx
	je	LBB0_2
## %bb.1:
	notl	%ebx
	andl	%edx, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	(%r15), %eax
	shll	$16, %eax
	movzwl	%dx, %ebx
	orl	%eax, %ebx
LBB0_3:
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_PCS_V1_WINDOW_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shrl	$8, %edx
	movq	%r15, %rdi
	callq	_XPCS32_IOWRITE
	movzbl	%bl, %esi
	shll	$2, %esi
	movq	%r15, %rdi
	callq	_XPCS32_IOREAD
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADDR_C45,4,2               ## @MII_ADDR_C45
	.comm	_PCS_V1_WINDOW_SELECT,4,2       ## @PCS_V1_WINDOW_SELECT
	.no_dead_strip	_xgbe_read_mmd_regs_v1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_read_mmd_regs_v1
_xgbe_read_mmd_regs_v1:                 ; @xgbe_read_mmd_regs_v1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _MII_ADDR_C45@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_ADDR_C45@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	bic	w20, w20, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	bfi	w20, w8, #16, #16
LBB0_3:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _PCS_V1_WINDOW_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCS_V1_WINDOW_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	lsr	w2, w20, #8
	mov	x0, x19
	bl	_XPCS32_IOWRITE
	ubfiz	w1, w20, #2, #8
	mov	x0, x19
	bl	_XPCS32_IOREAD
	mov	x19, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADDR_C45,4,2               ; @MII_ADDR_C45
	.comm	_PCS_V1_WINDOW_SELECT,4,2       ; @PCS_V1_WINDOW_SELECT
	.no_dead_strip	_xgbe_read_mmd_regs_v1
.subsections_via_symbols
