	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis630_set_eq
_sis630_set_eq:                         ## @sis630_set_eq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_SIS630E_900_REV@GOTPCREL(%rip), %rdx
	movq	_SIS630EA1_900_REV@GOTPCREL(%rip), %rcx
	movq	_SIS630A_900_REV@GOTPCREL(%rip), %r13
	movq	_SIS630ET_900_REV@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rdx)
	je	LBB0_4
## %bb.1:
	cmpq	%rbx, (%rcx)
	je	LBB0_4
## %bb.2:
	cmpq	%rbx, (%r13)
	je	LBB0_4
## %bb.3:
	cmpq	%rbx, (%rax)
	je	LBB0_4
## %bb.28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	movq	%rax, %r15
	movl	8(%r14), %esi
	movq	_MII_RESV@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_mdio_read
	testq	%r15, %r15
	je	LBB0_21
## %bb.5:
	movl	8(%r14), %esi
	movl	(%rbx), %edx
	andl	$40447, %eax                    ## imm = 0x9DFF
	orl	$8704, %eax                     ## imm = 0x2200
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_mdio_write
	xorl	%r13d, %r13d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$10, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movq	_MII_RESV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mdio_read
	movl	%eax, %ebx
	shrl	$3, %ebx
	andl	$31, %ebx
	cmpl	$10, %r14d
	cmovel	%ebx, %r15d
	cmovel	%ebx, %r13d
	cmpl	%r15d, %ebx
	cmovgl	%ebx, %r15d
	cmpl	%r13d, %ebx
	cmovll	%ebx, %r13d
	decl	%r14d
	jne	LBB0_6
## %bb.7:
	movq	_MII_RESV@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	_SIS630E_900_REV@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	movq	_SIS630EA1_900_REV@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_SIS630ET_900_REV@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_14
LBB0_10:
	movl	%r15d, %ebx
	cmpl	$5, %r15d
	jb	LBB0_14
## %bb.11:
	xorl	%eax, %eax
	cmpl	$14, %r15d
	ja	LBB0_13
## %bb.12:
	cmpl	%r13d, %r15d
	sete	%al
	leal	(%rax,%r15), %ebx
	incl	%ebx
	jmp	LBB0_14
LBB0_21:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%r13)
	jne	LBB0_27
## %bb.22:
	movq	(%r14), %rcx
	movq	_SIS630B0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_24
## %bb.23:
	movq	_SIS630B1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_24
LBB0_27:
	movl	8(%r14), %esi
	movl	(%rbx), %edx
	andl	$40959, %eax                    ## imm = 0x9FFF
	orl	$8192, %eax                     ## imm = 0x2000
	jmp	LBB0_25
LBB0_24:
	movl	8(%r14), %esi
	movl	(%rbx), %edx
	andl	$40447, %eax                    ## imm = 0x9DFF
	orl	$8704, %eax                     ## imm = 0x2200
LBB0_25:
	movq	%r12, %rdi
	movl	%eax, %ecx
	jmp	LBB0_26
LBB0_13:
	cmpl	%r13d, %r15d
	sete	%al
	leal	(%rax,%r15), %ebx
	addl	$5, %ebx
LBB0_14:
	movq	_SIS630A_900_REV@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_20
## %bb.15:
	movq	(%r14), %rax
	movq	_SIS630B0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movq	_SIS630B1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_17:
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.19:
	leal	(%r15,%r13), %eax
	leal	(%r15,%r13), %ecx
	incl	%ecx
	shrl	$31, %ecx
	leal	(%rcx,%rax), %ebx
	incl	%ebx
	sarl	%ebx
	jmp	LBB0_20
LBB0_18:
	movl	$3, %ebx
LBB0_20:
	movl	8(%r14), %esi
	movq	%rdx, %r13
	movl	(%rdx), %edx
	movq	%r12, %rdi
	callq	_mdio_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$40199, %eax                    ## imm = 0x9D07
	andl	$31, %ebx
	leal	(%rax,%rbx,8), %ecx
	addl	$24576, %ecx                    ## imm = 0x6000
	movl	8(%r14), %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdio_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIS630E_900_REV,8,3            ## @SIS630E_900_REV
	.comm	_SIS630EA1_900_REV,8,3          ## @SIS630EA1_900_REV
	.comm	_SIS630A_900_REV,8,3            ## @SIS630A_900_REV
	.comm	_SIS630ET_900_REV,8,3           ## @SIS630ET_900_REV
	.comm	_MII_RESV,4,2                   ## @MII_RESV
	.comm	_SIS630B0,8,3                   ## @SIS630B0
	.comm	_SIS630B1,8,3                   ## @SIS630B1
	.no_dead_strip	_sis630_set_eq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis630_set_eq
_sis630_set_eq:                         ; @sis630_set_eq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _SIS630E_900_REV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIS630E_900_REV@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SIS630EA1_900_REV@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SIS630EA1_900_REV@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x26]
Lloh5:
	adrp	x24, _SIS630A_900_REV@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SIS630A_900_REV@GOTPAGEOFF]
Lloh7:
	adrp	x27, _SIS630ET_900_REV@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SIS630ET_900_REV@GOTPAGEOFF]
	ldr	x10, [x24]
	ldr	x11, [x27]
	cmp	x8, x21
	ccmp	x9, x21, #4, ne
	ccmp	x10, x21, #4, ne
	ccmp	x11, x21, #4, ne
	b.ne	LBB0_10
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_netif_carrier_ok
	mov	x22, x0
	ldr	w1, [x20, #8]
Lloh9:
	adrp	x23, _MII_RESV@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MII_RESV@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_mdio_read
	cbz	x22, LBB0_11
; %bb.2:
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	mov	w8, #40447
	and	w8, w0, w8
	mov	w9, #8704
	orr	w3, w8, w9
	mov	x0, x19
	bl	_mdio_write
	mov	w28, #0
	mov	w22, #0
	mov	w25, #10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_mdio_read
	ubfx	w24, w0, #3, #5
	cmp	w25, #10
	csel	w8, w24, w22, eq
	csel	w9, w24, w28, eq
	cmp	w24, w8
	csel	w22, w24, w8, gt
	cmp	w24, w9
	csel	w28, w24, w9, lt
	subs	w25, w25, #1
	b.ne	LBB0_3
; %bb.4:
Lloh11:
	adrp	x8, _SIS630E_900_REV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIS630E_900_REV@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x8, x21
	ccmp	x9, x21, #4, ne
	ccmp	x10, x21, #4, ne
	b.ne	LBB0_6
; %bb.5:
	cmp	w22, w28
	mov	w8, #5
	cinc	w8, w8, eq
	add	w8, w8, w22
	mov	w9, #1
	cinc	w9, w9, eq
	add	w9, w9, w22
	cmp	w22, #14
	csel	w8, w8, w9, hi
	cmp	w22, #5
	csel	w24, w22, w8, lo
LBB0_6:
Lloh14:
	adrp	x8, _SIS630A_900_REV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIS630A_900_REV@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_16
; %bb.7:
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _SIS630B0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SIS630B0@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _SIS630B1@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SIS630B1@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.8:
	cbz	w22, LBB0_15
; %bb.9:
	add	w8, w22, w28
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w24, w8, #1
	b	LBB0_16
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _SIS630B0@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SIS630B0@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _SIS630B1@GOTPAGE
Lloh27:
	ldr	x10, [x10, _SIS630B1@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_14
; %bb.13:
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	mov	w8, #40447
	and	w8, w0, w8
	mov	w9, #8704
	orr	w3, w8, w9
	b	LBB0_17
LBB0_14:
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	mov	w8, #40959
	and	w8, w0, w8
	orr	w3, w8, #0x2000
	b	LBB0_17
LBB0_15:
	mov	w24, #3
LBB0_16:
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_mdio_read
	mov	w8, #40199
	and	w8, w0, w8
	bfi	w8, w24, #3, #5
	orr	w3, w8, #0x6000
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mdio_write
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SIS630E_900_REV,8,3            ; @SIS630E_900_REV
	.comm	_SIS630EA1_900_REV,8,3          ; @SIS630EA1_900_REV
	.comm	_SIS630A_900_REV,8,3            ; @SIS630A_900_REV
	.comm	_SIS630ET_900_REV,8,3           ; @SIS630ET_900_REV
	.comm	_MII_RESV,4,2                   ; @MII_RESV
	.comm	_SIS630B0,8,3                   ; @SIS630B0
	.comm	_SIS630B1,8,3                   ; @SIS630B1
	.no_dead_strip	_sis630_set_eq
.subsections_via_symbols
