	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad714x_cal_highest_stage
_ad714x_cal_highest_stage:              ## @ad714x_cal_highest_stage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	xorl	%eax, %eax
	subl	%esi, %edx
	jl	LBB0_8
## %bb.1:
	movq	(%rdi), %r8
	movslq	%esi, %rdi
	leal	1(%rdx), %r9d
	movl	%r9d, %r14d
	andl	$3, %r14d
	cmpl	$3, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	xorl	%edx, %edx
	testl	%r14d, %r14d
	jne	LBB0_7
	jmp	LBB0_8
LBB0_3:
	movl	%esi, %r10d
	leaq	(%r8,%rdi,4), %r11
	addq	$12, %r11
	andl	$-4, %r9d
	xorl	%esi, %esi
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r10,%rsi), %ebx
	movl	-12(%r11,%rsi,4), %ecx
	cmpl	%edx, %ecx
	cmovgl	%ecx, %edx
	cmovlel	%eax, %ebx
	movl	-8(%r11,%rsi,4), %eax
	cmpl	%edx, %eax
	cmovgl	%eax, %edx
	leal	1(%r10,%rsi), %eax
	cmovlel	%ebx, %eax
	movl	-4(%r11,%rsi,4), %ecx
	cmpl	%edx, %ecx
	cmovgl	%ecx, %edx
	leal	2(%r10,%rsi), %ecx
	cmovlel	%eax, %ecx
	movl	(%r11,%rsi,4), %eax
	cmpl	%edx, %eax
	cmovgl	%eax, %edx
	leal	3(%r10,%rsi), %eax
	cmovlel	%ecx, %eax
	addq	$4, %rsi
	cmpl	%esi, %r9d
	jne	LBB0_4
## %bb.5:
	addq	%rsi, %rdi
	testl	%r14d, %r14d
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rdi,4), %ecx
	cmpl	%edx, %ecx
	cmovgl	%ecx, %edx
	cmovgl	%edi, %eax
	incq	%rdi
	decl	%r14d
	jne	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ad714x_cal_highest_stage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad714x_cal_highest_stage
_ad714x_cal_highest_stage:              ; @ad714x_cal_highest_stage
	.cfi_startproc
; %bb.0:
	cmp	w1, w2
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #0
	ldr	x10, [x8]
	add	w8, w2, #1
	add	x10, x10, w1, sxtw #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	cmp	w11, w9
	csel	w9, w11, w9, gt
	csel	w0, w1, w0, gt
	add	w1, w1, #1
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.4:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ad714x_cal_highest_stage
.subsections_via_symbols
