	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc589_set_xcvr
_tc589_set_xcvr:                        ## @tc589_set_xcvr
	.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	%esi, %r12d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r15), %ebx
	xorl	%edi, %edi
	callq	_EL3WINDOW
	cmpl	$3, %r12d
	ja	LBB0_2
## %bb.1:
	movslq	%r12d, %rax
	leaq	L_switch.table.tc589_set_xcvr(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
	leal	6(%rbx), %esi
	callq	_outw
LBB0_2:
	cmpl	$2, %r12d
	jne	LBB0_3
## %bb.4:
	movq	_StartCoax@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_StopCoax@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	callq	_outw
	movl	$4, %edi
	callq	_EL3WINDOW
	xorl	%edi, %edi
	movq	_MEDIA_LED@GOTPCREL(%rip), %rax
	cmpl	$2, %r12d
	jge	LBB0_7
## %bb.6:
	movq	_MEDIA_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_7:
	orl	(%rax), %edi
	movq	_WN4_MEDIA@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_outw
	movl	$1, %edi
	callq	_EL3WINDOW
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	sete	%al
	movl	$16400, %ecx                    ## imm = 0x4010
	movl	$34816, %edx                    ## imm = 0x8800
	cmovel	%ecx, %edx
	shll	$14, %eax
	addl	$16384, %eax                    ## imm = 0x4000
	cmpl	$2, %r12d
	cmovnel	%edx, %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_StartCoax,4,2                  ## @StartCoax
	.comm	_StopCoax,4,2                   ## @StopCoax
	.comm	_EL3_CMD,4,2                    ## @EL3_CMD
	.comm	_MEDIA_LED,4,2                  ## @MEDIA_LED
	.comm	_MEDIA_TP,4,2                   ## @MEDIA_TP
	.comm	_WN4_MEDIA,4,2                  ## @WN4_MEDIA
	.no_dead_strip	_tc589_set_xcvr
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.tc589_set_xcvr
L_switch.table.tc589_set_xcvr:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	49152                           ## 0xc000
	.long	16384                           ## 0x4000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc589_set_xcvr
_tc589_set_xcvr:                        ; @tc589_set_xcvr
	.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	x19, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w22, [x21]
	mov	w0, #0
	bl	_EL3WINDOW
	cmp	w19, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_switch.table.tc589_set_xcvr@PAGE
Lloh1:
	add	x8, x8, l_switch.table.tc589_set_xcvr@PAGEOFF
	ldr	w0, [x8, w19, sxtw #2]
	add	w1, w22, #6
	bl	_outw
LBB0_2:
Lloh2:
	adrp	x8, _StartCoax@GOTPAGE
Lloh3:
	ldr	x8, [x8, _StartCoax@GOTPAGEOFF]
Lloh4:
	adrp	x9, _StopCoax@GOTPAGE
Lloh5:
	ldr	x9, [x9, _StopCoax@GOTPAGEOFF]
	cmp	w19, #2
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EL3_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EL3_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w1, w8, w22
	bl	_outw
	mov	w0, #4
	bl	_EL3WINDOW
Lloh9:
	adrp	x8, _MEDIA_LED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEDIA_LED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MEDIA_TP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MEDIA_TP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w19, #2
	csel	w9, w9, wzr, lt
	orr	w0, w9, w8
Lloh15:
	adrp	x8, _WN4_MEDIA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WN4_MEDIA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w1, w8, w22
	bl	_outw
	mov	w0, #1
	bl	_EL3WINDOW
	ldr	x8, [x21, #8]
	cmp	x8, #0
	mov	w8, #16384
	mov	w9, #32768
	csel	w8, w9, w8, eq
	mov	w9, #34816
	mov	w10, #16400
	csel	w9, w10, w9, eq
	cmp	w19, #2
	csel	w8, w8, w9, eq
	str	w8, [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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_StartCoax,4,2                  ; @StartCoax
	.comm	_StopCoax,4,2                   ; @StopCoax
	.comm	_EL3_CMD,4,2                    ; @EL3_CMD
	.comm	_MEDIA_LED,4,2                  ; @MEDIA_LED
	.comm	_MEDIA_TP,4,2                   ; @MEDIA_TP
	.comm	_WN4_MEDIA,4,2                  ; @WN4_MEDIA
	.no_dead_strip	_tc589_set_xcvr
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.tc589_set_xcvr
l_switch.table.tc589_set_xcvr:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	49152                           ; 0xc000
	.long	16384                           ; 0x4000

.subsections_via_symbols
