	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan9303_indirect_phy_write
_lan9303_indirect_phy_write:            ## @lan9303_indirect_phy_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, %r15d
	movl	%edx, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_LAN9303_PMI_ACCESS_PHY_ADDR
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_LAN9303_PMI_ACCESS_MIIRINDA
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movq	_LAN9303_PMI_ACCESS_MII_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_lan9303_indirect_phy_wait_for_completion
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	4(%r14), %edi
	movq	_LAN9303_PMI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	4(%r14), %edi
	movq	_LAN9303_PMI_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_regmap_write
	movl	%eax, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAN9303_PMI_ACCESS_MII_WRITE,4,2 ## @LAN9303_PMI_ACCESS_MII_WRITE
	.comm	_LAN9303_PMI_DATA,4,2           ## @LAN9303_PMI_DATA
	.comm	_LAN9303_PMI_ACCESS,4,2         ## @LAN9303_PMI_ACCESS
	.no_dead_strip	_lan9303_indirect_phy_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan9303_indirect_phy_write
_lan9303_indirect_phy_write:            ; @lan9303_indirect_phy_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x1
	bl	_LAN9303_PMI_ACCESS_PHY_ADDR
	mov	x20, x0
	mov	x0, x22
	bl	_LAN9303_PMI_ACCESS_MIIRINDA
	mov	x22, x0
Lloh0:
	adrp	x8, _LAN9303_PMI_ACCESS_MII_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAN9303_PMI_ACCESS_MII_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_lan9303_indirect_phy_wait_for_completion
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _LAN9303_PMI_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LAN9303_PMI_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	orr	w8, w22, w20
	orr	w2, w8, w24
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _LAN9303_PMI_ACCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LAN9303_PMI_ACCESS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_regmap_write
	mov	x23, x0
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LAN9303_PMI_ACCESS_MII_WRITE,4,2 ; @LAN9303_PMI_ACCESS_MII_WRITE
	.comm	_LAN9303_PMI_DATA,4,2           ; @LAN9303_PMI_DATA
	.comm	_LAN9303_PMI_ACCESS,4,2         ; @LAN9303_PMI_ACCESS
	.no_dead_strip	_lan9303_indirect_phy_write
.subsections_via_symbols
