	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_afk_picker_most_hits_get
_mlxsw_afk_picker_most_hits_get:        ## @mlxsw_afk_picker_most_hits_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.1:
	movq	(%rsi), %r9
	leaq	-1(%r8), %rdx
	movl	%r8d, %r10d
	andl	$3, %r10d
	cmpq	$3, %rdx
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
LBB0_14:
	testq	%r10, %r10
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rsi,4), %edx
	cmpl	%ecx, %edx
	cmovgl	%esi, %eax
	cmovgl	%edx, %ecx
	incq	%rsi
	decq	%r10
	jne	LBB0_15
LBB0_16:
	popq	%rbp
	retq
LBB0_3:
	andl	$-4, %r8d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rsi
	cmpq	%r8, %rsi
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rsi,4), %edi
	cmpl	%ecx, %edi
	cmovgl	%esi, %eax
	movl	4(%r9,%rsi,4), %edx
	cmovgl	%edi, %ecx
	cmpl	%ecx, %edx
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rsi), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r9,%rsi,4), %edi
	cmpl	%edx, %edi
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	2(%rsi), %eax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r9,%rsi,4), %ecx
	cmpl	%edi, %ecx
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	3(%rsi), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_afk_picker_most_hits_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_afk_picker_most_hits_get
_mlxsw_afk_picker_most_hits_get:        ; @mlxsw_afk_picker_most_hits_get
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w0, w9
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	mov	w10, #0
	ldr	x11, [x1]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x9, lsl #2]
	cmp	w12, w10
	csel	w0, w9, w0, gt
	csel	w10, w12, w10, gt
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_afk_picker_most_hits_get
.subsections_via_symbols
