	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temac_mdio_read
_temac_mdio_read:                       ## @temac_mdio_read
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movl	4(%rbx), %edi
	callq	_spin_lock_irqsave
	movq	_XTE_LSW0_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	shll	$5, %edx
	orl	%r14d, %edx
	movq	%rbx, %rdi
	callq	_temac_iow
	movq	_XTE_MIIMAI_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_temac_indirect_in32_locked
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	callq	_spin_unlock_irqrestore
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_dev_dbg
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XTE_LSW0_OFFSET,4,2            ## @XTE_LSW0_OFFSET
	.comm	_XTE_MIIMAI_OFFSET,4,2          ## @XTE_MIIMAI_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"temac_mdio_read(phy_id=%i, reg=%x) == %x\n"

	.no_dead_strip	_temac_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temac_mdio_read
_temac_mdio_read:                       ; @temac_mdio_read
	.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, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	w0, [x21, #4]
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _XTE_LSW0_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XTE_LSW0_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	orr	w2, w19, w20, lsl #5
	mov	x0, x21
	bl	_temac_iow
Lloh3:
	adrp	x8, _XTE_MIIMAI_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XTE_MIIMAI_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_temac_indirect_in32_locked
	mov	x22, x0
	ldr	w0, [x21, #4]
	bl	_spin_unlock_irqrestore
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_dev_dbg
	mov	x0, x22
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XTE_LSW0_OFFSET,4,2            ; @XTE_LSW0_OFFSET
	.comm	_XTE_MIIMAI_OFFSET,4,2          ; @XTE_MIIMAI_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"temac_mdio_read(phy_id=%i, reg=%x) == %x\n"

	.no_dead_strip	_temac_mdio_read
.subsections_via_symbols
