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

	.comm	_XTE_MGTDR_OFFSET,4,2           ## @XTE_MGTDR_OFFSET
	.comm	_XTE_MIIMAI_OFFSET,4,2          ## @XTE_MIIMAI_OFFSET
	.no_dead_strip	_temac_mdio_write
.subsections_via_symbols

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

	.comm	_XTE_MGTDR_OFFSET,4,2           ; @XTE_MGTDR_OFFSET
	.comm	_XTE_MIIMAI_OFFSET,4,2          ; @XTE_MIIMAI_OFFSET
	.no_dead_strip	_temac_mdio_write
.subsections_via_symbols
