	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_mmd_ind_write           ## -- Begin function mt753x_mmd_ind_write
	.p2align	4, 0x90
_mt753x_mmd_ind_write:                  ## @mt753x_mmd_ind_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_MT753X_NUM_PHYS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.1:
	addl	(%r15), %r12d
	movq	_MT753X_SMI_ADDR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
LBB0_2:
	leaq	4(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_MII_MMD_ACC_CTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MMD_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMD_CMD_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_MMD_DEVAD_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	movq	_MMD_DEVAD_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%esi, %eax
	movq	_MDIO_CMD_WRITE@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	movq	_MDIO_ST_C22@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	callq	_mt753x_mii_rw
	movq	_MII_MMD_ADDR_DATA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	movl	(%r13), %r9d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mt753x_mii_rw
	movq	_MMD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MMD_CMD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MMD_DEVAD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_MMD_DEVAD_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_MII_MMD_ACC_CTL_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%eax, %ebx
	movl	(%r14), %r8d
	movl	(%r13), %r9d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %ecx
	callq	_mt753x_mii_rw
	movq	_MII_MMD_ADDR_DATA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	movl	(%r13), %r9d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_mt753x_mii_rw
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT753X_NUM_PHYS,4,2            ## @MT753X_NUM_PHYS
	.comm	_MT753X_SMI_ADDR_MASK,4,2       ## @MT753X_SMI_ADDR_MASK
	.comm	_MII_MMD_ACC_CTL_REG,4,2        ## @MII_MMD_ACC_CTL_REG
	.comm	_MMD_ADDR,4,2                   ## @MMD_ADDR
	.comm	_MMD_CMD_S,4,2                  ## @MMD_CMD_S
	.comm	_MMD_DEVAD_S,4,2                ## @MMD_DEVAD_S
	.comm	_MMD_DEVAD_M,4,2                ## @MMD_DEVAD_M
	.comm	_MDIO_CMD_WRITE,4,2             ## @MDIO_CMD_WRITE
	.comm	_MDIO_ST_C22,4,2                ## @MDIO_ST_C22
	.comm	_MII_MMD_ADDR_DATA_REG,4,2      ## @MII_MMD_ADDR_DATA_REG
	.comm	_MMD_DATA,4,2                   ## @MMD_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_mmd_ind_write           ; -- Begin function mt753x_mmd_ind_write
	.p2align	2
_mt753x_mmd_ind_write:                  ; @mt753x_mmd_ind_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x24, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MT753X_NUM_PHYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT753X_NUM_PHYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _MT753X_SMI_ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT753X_SMI_ADDR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w20
	and	w20, w8, w9
LBB0_2:
	add	x22, x21, #4
	mov	x0, x22
	bl	_mutex_lock
Lloh6:
	adrp	x8, _MII_MMD_ACC_CTL_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_MMD_ACC_CTL_REG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _MMD_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMD_ADDR@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MMD_CMD_S@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MMD_CMD_S@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh15:
	adrp	x27, _MMD_DEVAD_S@GOTPAGE
Lloh16:
	ldr	x27, [x27, _MMD_DEVAD_S@GOTPAGEOFF]
	ldr	w9, [x27]
	lsl	w9, w23, w9
Lloh17:
	adrp	x28, _MMD_DEVAD_M@GOTPAGE
Lloh18:
	ldr	x28, [x28, _MMD_DEVAD_M@GOTPAGEOFF]
	ldr	w10, [x28]
	and	w9, w9, w10
	orr	w3, w9, w8
Lloh19:
	adrp	x19, _MDIO_CMD_WRITE@GOTPAGE
Lloh20:
	ldr	x19, [x19, _MDIO_CMD_WRITE@GOTPAGEOFF]
	ldr	w4, [x19]
Lloh21:
	adrp	x25, _MDIO_ST_C22@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MDIO_ST_C22@GOTPAGEOFF]
	ldr	w5, [x25]
	mov	x0, x21
	mov	x1, x20
	bl	_mt753x_mii_rw
Lloh23:
	adrp	x26, _MII_MMD_ADDR_DATA_REG@GOTPAGE
Lloh24:
	ldr	x26, [x26, _MII_MMD_ADDR_DATA_REG@GOTPAGEOFF]
	ldr	w2, [x26]
	ldr	w4, [x19]
	ldr	w5, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x24
	bl	_mt753x_mii_rw
Lloh25:
	adrp	x8, _MII_MMD_ACC_CTL_REG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MII_MMD_ACC_CTL_REG@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _MMD_DATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MMD_DATA@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _MMD_CMD_S@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MMD_CMD_S@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x27]
	lsl	w9, w23, w9
	ldr	w10, [x28]
	and	w9, w9, w10
	orr	w3, w9, w8
	ldr	w4, [x19]
	ldr	w5, [x25]
	mov	x0, x21
	mov	x1, x20
	bl	_mt753x_mii_rw
	ldr	w2, [x26]
	ldr	w4, [x19]
	ldr	w5, [x25]
	mov	x0, x21
	mov	x1, x20
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_mt753x_mii_rw
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT753X_NUM_PHYS,4,2            ; @MT753X_NUM_PHYS
	.comm	_MT753X_SMI_ADDR_MASK,4,2       ; @MT753X_SMI_ADDR_MASK
	.comm	_MII_MMD_ACC_CTL_REG,4,2        ; @MII_MMD_ACC_CTL_REG
	.comm	_MMD_ADDR,4,2                   ; @MMD_ADDR
	.comm	_MMD_CMD_S,4,2                  ; @MMD_CMD_S
	.comm	_MMD_DEVAD_S,4,2                ; @MMD_DEVAD_S
	.comm	_MMD_DEVAD_M,4,2                ; @MMD_DEVAD_M
	.comm	_MDIO_CMD_WRITE,4,2             ; @MDIO_CMD_WRITE
	.comm	_MDIO_ST_C22,4,2                ; @MDIO_ST_C22
	.comm	_MII_MMD_ADDR_DATA_REG,4,2      ; @MII_MMD_ADDR_DATA_REG
	.comm	_MMD_DATA,4,2                   ; @MMD_DATA
.subsections_via_symbols
