	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_phy_write_reg_miic     ## -- Begin function pch_gbe_phy_write_reg_miic
	.p2align	4, 0x90
_pch_gbe_phy_write_reg_miic:            ## @pch_gbe_phy_write_reg_miic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_PHY_MAX_REG_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_2
## %bb.1:
	callq	_pch_gbe_hw_to_adapter
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%edx, %r8d
	movl	(%rdi), %esi
	movq	_PCH_GBE_HAL_MIIM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	callq	_pch_gbe_mac_ctrl_miim
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MAX_REG_ADDRESS,8,3        ## @PHY_MAX_REG_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY Address %d is out of range\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCH_GBE_HAL_MIIM_WRITE,4,2     ## @PCH_GBE_HAL_MIIM_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_phy_write_reg_miic     ; -- Begin function pch_gbe_phy_write_reg_miic
	.p2align	2
_pch_gbe_phy_write_reg_miic:            ; @pch_gbe_phy_write_reg_miic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _PHY_MAX_REG_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_MAX_REG_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_2
; %bb.1:
	bl	_pch_gbe_hw_to_adapter
	ldr	w0, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_netdev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x4, x2
	ldr	w1, [x0]
Lloh8:
	adrp	x8, _PCH_GBE_HAL_MIIM_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCH_GBE_HAL_MIIM_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_pch_gbe_mac_ctrl_miim
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MAX_REG_ADDRESS,8,3        ; @PHY_MAX_REG_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY Address %d is out of range\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCH_GBE_HAL_MIIM_WRITE,4,2     ; @PCH_GBE_HAL_MIIM_WRITE
.subsections_via_symbols
