	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_read_mmd_regs_v2
_xgbe_read_mmd_regs_v2:                 ## @xgbe_read_mmd_regs_v2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	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	(%r14), %eax
	shll	$16, %eax
	movzwl	%dx, %ebx
	orl	%eax, %ebx
LBB0_3:
	addl	%ebx, %ebx
	movl	4(%r14), %eax
	movl	%eax, %r15d
	notl	%r15d
	andl	%ebx, %r15d
	andl	%eax, %ebx
	addl	8(%r14), %ebx
	leaq	12(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	16(%r14), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_XPCS32_IOWRITE
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_XPCS16_IOREAD
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADDR_C45,4,2               ## @MII_ADDR_C45
	.no_dead_strip	_xgbe_read_mmd_regs_v2
.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_v2
_xgbe_read_mmd_regs_v2:                 ; @xgbe_read_mmd_regs_v2
	.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	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	w2, w2, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	bfi	w2, w8, #16, #16
LBB0_3:
	lsl	w8, w2, #1
	ldp	w9, w10, [x19, #4]
	bic	w20, w8, w9
	and	w8, w8, w9
	add	w21, w10, w8
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w1, [x19, #16]
	mov	x0, x19
	mov	x2, x20
	bl	_XPCS32_IOWRITE
	mov	x0, x19
	mov	x1, x21
	bl	_XPCS16_IOREAD
	mov	x19, x0
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADDR_C45,4,2               ; @MII_ADDR_C45
	.no_dead_strip	_xgbe_read_mmd_regs_v2
.subsections_via_symbols
