	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_phy_write16
_ksz9477_phy_write16:                   ## @ksz9477_phy_write16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rdi), %rdi
	cmpl	%esi, (%rdi)
	jle	LBB0_4
## %bb.1:
	movq	_GBIT_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	jne	LBB0_3
## %bb.2:
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_4
LBB0_3:
	addl	%edx, %edx
	addl	$256, %edx                      ## imm = 0x100
	callq	_ksz_pwrite16
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GBIT_SUPPORT,4,2               ## @GBIT_SUPPORT
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.no_dead_strip	_ksz9477_phy_write16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_phy_write16
_ksz9477_phy_write16:                   ; @ksz9477_phy_write16
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.1:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _GBIT_SUPPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GBIT_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _MII_CTRL1000@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MII_CTRL1000@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w2, #0, eq
	b.eq	LBB0_3
; %bb.2:
	lsl	w8, w2, #1
	add	w2, w8, #256
	bl	_ksz_pwrite16
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GBIT_SUPPORT,4,2               ; @GBIT_SUPPORT
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.no_dead_strip	_ksz9477_phy_write16
.subsections_via_symbols
