	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_set_xmii
_ksz9477_set_xmii:                      ## @ksz9477_set_xmii
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NEW_XMII@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	(%rdi), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_PORT_RGMII_SEL_S1@GOTPCREL(%rip), %rax
	cmpl	$2, %esi
	jbe	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_PORT_RGMII_SEL@GOTPCREL(%rip), %rax
	cmpl	$2, %esi
	ja	LBB0_5
LBB0_4:
	testl	%ecx, %ecx
	leaq	l_switch.table.ksz9477_set_xmii.1(%rip), %rax
	leaq	l_switch.table.ksz9477_set_xmii(%rip), %rcx
	cmoveq	%rax, %rcx
	movslq	%esi, %rax
	movq	(%rcx,%rax,8), %rax
LBB0_5:
	movq	_PORT_MII_SEL_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%rdx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NEW_XMII,4,2                   ## @NEW_XMII
	.comm	_PORT_MII_SEL,4,2               ## @PORT_MII_SEL
	.comm	_PORT_RMII_SEL,4,2              ## @PORT_RMII_SEL
	.comm	_PORT_GMII_SEL,4,2              ## @PORT_GMII_SEL
	.comm	_PORT_RGMII_SEL,4,2             ## @PORT_RGMII_SEL
	.comm	_PORT_MII_SEL_S1,4,2            ## @PORT_MII_SEL_S1
	.comm	_PORT_RMII_SEL_S1,4,2           ## @PORT_RMII_SEL_S1
	.comm	_PORT_GMII_SEL_S1,4,2           ## @PORT_GMII_SEL_S1
	.comm	_PORT_RGMII_SEL_S1,4,2          ## @PORT_RGMII_SEL_S1
	.comm	_PORT_MII_SEL_M,4,2             ## @PORT_MII_SEL_M
	.no_dead_strip	_ksz9477_set_xmii
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ksz9477_set_xmii
l_switch.table.ksz9477_set_xmii:
	.quad	_PORT_MII_SEL
	.quad	_PORT_RMII_SEL
	.quad	_PORT_GMII_SEL

	.p2align	3                               ## @switch.table.ksz9477_set_xmii.1
l_switch.table.ksz9477_set_xmii.1:
	.quad	_PORT_MII_SEL_S1
	.quad	_PORT_RMII_SEL_S1
	.quad	_PORT_GMII_SEL_S1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_set_xmii
_ksz9477_set_xmii:                      ; @ksz9477_set_xmii
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NEW_XMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NEW_XMII@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w9, w9, w8
Lloh3:
	adrp	x8, _PORT_RGMII_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_RGMII_SEL@GOTPAGEOFF]
Lloh5:
	adrp	x10, _PORT_RGMII_SEL_S1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PORT_RGMII_SEL_S1@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	cmp	w1, #2
	b.hi	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, l_switch.table.ksz9477_set_xmii@PAGE
Lloh8:
	add	x8, x8, l_switch.table.ksz9477_set_xmii@PAGEOFF
Lloh9:
	adrp	x10, l_switch.table.ksz9477_set_xmii.1@PAGE
Lloh10:
	add	x10, x10, l_switch.table.ksz9477_set_xmii.1@PAGEOFF
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	x8, [x8, w1, sxtw #3]
LBB0_2:
Lloh11:
	adrp	x9, _PORT_MII_SEL_M@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PORT_MII_SEL_M@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x2]
	bic	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x2]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NEW_XMII,4,2                   ; @NEW_XMII
	.comm	_PORT_MII_SEL,4,2               ; @PORT_MII_SEL
	.comm	_PORT_RMII_SEL,4,2              ; @PORT_RMII_SEL
	.comm	_PORT_GMII_SEL,4,2              ; @PORT_GMII_SEL
	.comm	_PORT_RGMII_SEL,4,2             ; @PORT_RGMII_SEL
	.comm	_PORT_MII_SEL_S1,4,2            ; @PORT_MII_SEL_S1
	.comm	_PORT_RMII_SEL_S1,4,2           ; @PORT_RMII_SEL_S1
	.comm	_PORT_GMII_SEL_S1,4,2           ; @PORT_GMII_SEL_S1
	.comm	_PORT_RGMII_SEL_S1,4,2          ; @PORT_RGMII_SEL_S1
	.comm	_PORT_MII_SEL_M,4,2             ; @PORT_MII_SEL_M
	.no_dead_strip	_ksz9477_set_xmii
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ksz9477_set_xmii
l_switch.table.ksz9477_set_xmii:
	.quad	_PORT_MII_SEL
	.quad	_PORT_RMII_SEL
	.quad	_PORT_GMII_SEL

	.p2align	3                               ; @switch.table.ksz9477_set_xmii.1
l_switch.table.ksz9477_set_xmii.1:
	.quad	_PORT_MII_SEL_S1
	.quad	_PORT_RMII_SEL_S1
	.quad	_PORT_GMII_SEL_S1

.subsections_via_symbols
