	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan88xx_set_mdix
_lan88xx_set_mdix:                      ## @lan88xx_set_mdix
	.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	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	cltq
	leaq	l_switch.table.lan88xx_set_mdix(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r15d
	movq	_LAN88XX_EXT_PAGE_ACCESS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_LAN88XX_EXT_PAGE_SPACE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_write
	movq	_LAN88XX_EXT_MODE_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_LAN88XX_EXT_MODE_CTRL_MDIX_MASK_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	%r15d, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_phy_write
	movl	(%r14), %esi
	movq	_LAN88XX_EXT_PAGE_SPACE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAN88XX_EXT_MODE_CTRL_MDI_,4,2 ## @LAN88XX_EXT_MODE_CTRL_MDI_
	.comm	_LAN88XX_EXT_MODE_CTRL_MDI_X_,4,2 ## @LAN88XX_EXT_MODE_CTRL_MDI_X_
	.comm	_LAN88XX_EXT_MODE_CTRL_AUTO_MDIX_,4,2 ## @LAN88XX_EXT_MODE_CTRL_AUTO_MDIX_
	.comm	_LAN88XX_EXT_PAGE_ACCESS,4,2    ## @LAN88XX_EXT_PAGE_ACCESS
	.comm	_LAN88XX_EXT_PAGE_SPACE_1,4,2   ## @LAN88XX_EXT_PAGE_SPACE_1
	.comm	_LAN88XX_EXT_MODE_CTRL,4,2      ## @LAN88XX_EXT_MODE_CTRL
	.comm	_LAN88XX_EXT_MODE_CTRL_MDIX_MASK_,4,2 ## @LAN88XX_EXT_MODE_CTRL_MDIX_MASK_
	.comm	_LAN88XX_EXT_PAGE_SPACE_0,4,2   ## @LAN88XX_EXT_PAGE_SPACE_0
	.no_dead_strip	_lan88xx_set_mdix
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.lan88xx_set_mdix
l_switch.table.lan88xx_set_mdix:
	.quad	_LAN88XX_EXT_MODE_CTRL_MDI_X_
	.quad	_LAN88XX_EXT_MODE_CTRL_AUTO_MDIX_
	.quad	_LAN88XX_EXT_MODE_CTRL_MDI_

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan88xx_set_mdix
_lan88xx_set_mdix:                      ; @lan88xx_set_mdix
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.lan88xx_set_mdix@PAGE
Lloh1:
	add	x9, x9, l_switch.table.lan88xx_set_mdix@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w20, [x8]
Lloh2:
	adrp	x21, _LAN88XX_EXT_PAGE_ACCESS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LAN88XX_EXT_PAGE_ACCESS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _LAN88XX_EXT_PAGE_SPACE_1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LAN88XX_EXT_PAGE_SPACE_1@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_phy_write
Lloh7:
	adrp	x22, _LAN88XX_EXT_MODE_CTRL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _LAN88XX_EXT_MODE_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_phy_read
Lloh9:
	adrp	x8, _LAN88XX_EXT_MODE_CTRL_MDIX_MASK_@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LAN88XX_EXT_MODE_CTRL_MDIX_MASK_@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w2, w8, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_phy_write
	ldr	w1, [x21]
Lloh12:
	adrp	x8, _LAN88XX_EXT_PAGE_SPACE_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LAN88XX_EXT_PAGE_SPACE_0@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	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	_phy_write
LBB0_2:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LAN88XX_EXT_MODE_CTRL_MDI_,4,2 ; @LAN88XX_EXT_MODE_CTRL_MDI_
	.comm	_LAN88XX_EXT_MODE_CTRL_MDI_X_,4,2 ; @LAN88XX_EXT_MODE_CTRL_MDI_X_
	.comm	_LAN88XX_EXT_MODE_CTRL_AUTO_MDIX_,4,2 ; @LAN88XX_EXT_MODE_CTRL_AUTO_MDIX_
	.comm	_LAN88XX_EXT_PAGE_ACCESS,4,2    ; @LAN88XX_EXT_PAGE_ACCESS
	.comm	_LAN88XX_EXT_PAGE_SPACE_1,4,2   ; @LAN88XX_EXT_PAGE_SPACE_1
	.comm	_LAN88XX_EXT_MODE_CTRL,4,2      ; @LAN88XX_EXT_MODE_CTRL
	.comm	_LAN88XX_EXT_MODE_CTRL_MDIX_MASK_,4,2 ; @LAN88XX_EXT_MODE_CTRL_MDIX_MASK_
	.comm	_LAN88XX_EXT_PAGE_SPACE_0,4,2   ; @LAN88XX_EXT_PAGE_SPACE_0
	.no_dead_strip	_lan88xx_set_mdix
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.lan88xx_set_mdix
l_switch.table.lan88xx_set_mdix:
	.quad	_LAN88XX_EXT_MODE_CTRL_MDI_X_
	.quad	_LAN88XX_EXT_MODE_CTRL_AUTO_MDIX_
	.quad	_LAN88XX_EXT_MODE_CTRL_MDI_

.subsections_via_symbols
