	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_get_maximum_link_speed
_smu7_get_maximum_link_speed:           ## @smu7_get_maximum_link_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	(%rsi), %r10
	xorl	%eax, %eax
	testq	%r10, %r10
	je	LBB0_6
## %bb.1:
	movq	8(%rsi), %rdi
	leaq	-1(%r10), %rcx
	movl	%r10d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rcx
	jae	LBB0_13
## %bb.2:
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_3:
	testq	%r9, %r9
	je	LBB0_7
## %bb.4:
	leaq	(%rdi,%rsi,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	cmpq	%rdi, %rdx
	cmovbeq	%rdi, %rdx
	incq	%rsi
	cmpq	%rsi, %r9
	jne	LBB0_5
	jmp	LBB0_7
LBB0_6:
	xorl	%edx, %edx
LBB0_7:
	movq	16(%r8), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.8:
	movq	24(%r8), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rsi,%rax,8)
	je	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_9
## %bb.11:
	xorl	%eax, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_13:
	andq	$-4, %r10
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %r10
	je	LBB0_3
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rsi,8), %rcx
	cmpq	%rcx, %rdx
	ja	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rcx, %rdx
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rdi,%rsi,8), %rcx
	cmpq	%rcx, %rdx
	ja	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rcx, %rdx
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rdi,%rsi,8), %rcx
	cmpq	%rcx, %rdx
	ja	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rcx, %rdx
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%rdi,%rsi,8), %rcx
	cmpq	%rcx, %rdx
	ja	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rcx, %rdx
	jmp	LBB0_14
LBB0_23:
	movq	(%r8), %rcx
	movq	8(%r8), %rdx
	leaq	-1(%rcx), %rsi
	cmpq	%rcx, %rax
	cmovbq	%rax, %rsi
	movl	(%rdx,%rsi,4), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_smu7_get_maximum_link_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_get_maximum_link_speed
_smu7_get_maximum_link_speed:           ; @smu7_get_maximum_link_speed
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x1]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x10, [x1, #8]
	cmp	x9, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	x12, #0
	b	LBB0_7
LBB0_3:
	mov	x12, #0
	b	LBB0_9
LBB0_4:
	and	x11, x9, #0xfffffffffffffff8
	add	x12, x10, #32
	movi.2d	v0, #0000000000000000
	mov	x13, x11
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v1, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	cmhi.2d	v16, v0, v4
	bif.16b	v0, v4, v16
	cmhi.2d	v4, v3, v5
	bif.16b	v3, v5, v4
	cmhi.2d	v4, v2, v6
	bif.16b	v2, v6, v4
	cmhi.2d	v4, v1, v7
	bif.16b	v1, v7, v4
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	cmhi.2d	v4, v0, v3
	bif.16b	v0, v3, v4
	cmhi.2d	v3, v0, v2
	bif.16b	v0, v2, v3
	cmhi.2d	v2, v0, v1
	bif.16b	v0, v1, v2
	ext.16b	v1, v0, v0, #8
	cmhi	d2, d0, d1
	bif.8b	v0, v1, v2
	fmov	x12, d0
	cmp	x9, x11
	b.eq	LBB0_9
LBB0_7:
	sub	x9, x9, x11
	add	x10, x10, x11, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	cmp	x12, x11
	csel	x12, x12, x11, hi
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	x10, [x8, #16]
	cbz	x10, LBB0_13
; %bb.10:
	mov	x9, #0
	ldr	x11, [x8, #24]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11, x9, lsl #3]
	cmp	x13, x12
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_11
LBB0_13:
	mov	w0, #0
	ret
LBB0_14:
	ldp	x10, x8, [x8]
	sub	x11, x10, #1
	cmp	x9, x10
	csel	x9, x9, x11, lo
	ldr	w0, [x8, x9, lsl #2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_smu7_get_maximum_link_speed
.subsections_via_symbols
