	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_write_phy_reg_gpy          ## -- Begin function igc_write_phy_reg_gpy
	.p2align	4, 0x90
_igc_write_phy_reg_gpy:                 ## @igc_write_phy_reg_gpy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_GPY_MMD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%esi, %edx
	movq	_GPY_MMD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_GPY_REG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	testl	%edx, %edx
	je	LBB0_1
## %bb.5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_igc_write_xmdio_reg            ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	callq	*8(%r15)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_igc_write_phy_reg_mdic
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	*(%r15)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPY_MMD_MASK,4,2               ## @GPY_MMD_MASK
	.comm	_GPY_MMD_SHIFT,4,2              ## @GPY_MMD_SHIFT
	.comm	_GPY_REG_MASK,4,2               ## @GPY_REG_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_write_phy_reg_gpy          ; -- Begin function igc_write_phy_reg_gpy
	.p2align	2
_igc_write_phy_reg_gpy:                 ; @igc_write_phy_reg_gpy
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _GPY_MMD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPY_MMD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _GPY_MMD_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPY_MMD_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w2, w8, w9
Lloh6:
	adrp	x8, _GPY_REG_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPY_REG_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w21, w8, w1
	cbz	w2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	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
	b	_igc_write_xmdio_reg
LBB0_2:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_igc_write_phy_reg_mdic
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	mov	x0, #0
LBB0_5:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPY_MMD_MASK,4,2               ; @GPY_MMD_MASK
	.comm	_GPY_MMD_SHIFT,4,2              ; @GPY_MMD_SHIFT
	.comm	_GPY_REG_MASK,4,2               ; @GPY_REG_MASK
.subsections_via_symbols
