	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function infra_rate_find_second
_infra_rate_find_second:                ## @infra_rate_find_second
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_RATE_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	(%rdi), %r10
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.5:
	leaq	(,%r8,4), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%r10,%rax,2)
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rax
	cmpq	%rax, %rcx
	jne	LBB0_6
## %bb.3:
	movq	(%rdi), %r10
	leaq	-1(%r8), %rax
	movl	%r8d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rax
	jae	LBB0_8
## %bb.4:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_19:
	movl	%ecx, %r8d
	testq	%r9, %r9
	jne	LBB0_20
LBB0_23:
	movslq	%r8d, %rcx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rdx
	movl	%r8d, %ecx
	decq	%r9
	je	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rdx,8), %rbx
	movslq	%ecx, %rax
	movl	%edx, %r8d
	cmpq	(%r10,%rax,8), %rbx
	jl	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%ecx, %r8d
	jmp	LBB0_22
LBB0_1:
	xorl	%ecx, %ecx
LBB0_24:
	movq	%rsi, (%r10,%rcx,8)
	movq	8(%rdi), %rdx
	leaq	(%rdx,%rcx,4), %rax
	movl	$0, (%rdx,%rcx,4)
	jmp	LBB0_25
LBB0_7:
	addq	8(%rdi), %rax
LBB0_25:
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	andl	$-4, %r8d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ecx
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %rdx
	cmpq	%r8, %rdx
	je	LBB0_19
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %r11
	movq	(%r10,%rdx,8), %rbx
	movl	%edx, %eax
	cmpq	(%r10,%r11,8), %rbx
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ecx, %eax
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r10,%rdx,8), %rcx
	movslq	%eax, %rbx
	cmpq	(%r10,%rbx,8), %rcx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%rdx), %eax
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r10,%rdx,8), %rcx
	movslq	%eax, %rbx
	cmpq	(%r10,%rbx,8), %rcx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	2(%rdx), %eax
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r10,%rdx,8), %rcx
	movslq	%eax, %rbx
	cmpq	(%r10,%rbx,8), %rcx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	3(%rdx), %ecx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_WINDOW,4,2                ## @RATE_WINDOW
	.no_dead_strip	_infra_rate_find_second
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function infra_rate_find_second
_infra_rate_find_second:                ; @infra_rate_find_second
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RATE_WINDOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_WINDOW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x0]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x10, #0
	lsl	x11, x9, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	cmp	x12, x1
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #4
	add	x8, x8, #8
	cmp	x11, x10
	b.ne	LBB0_2
; %bb.4:
	mov	x11, #0
	mov	w10, #0
	ldr	x8, [x0]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x11, lsl #3]
	ldr	x13, [x8, w10, sxtw #3]
	cmp	x12, x13
	csel	w10, w11, w10, lt
	add	x11, x11, #1
	cmp	x9, x11
	b.ne	LBB0_5
; %bb.6:
	sxtw	x9, w10
	b	LBB0_8
LBB0_7:
	mov	x9, #0
LBB0_8:
	str	x1, [x8, x9, lsl #3]
	ldr	x8, [x0, #8]
	add	x0, x8, x9, lsl #2
	str	wzr, [x0]
	ret
LBB0_9:
	ldr	x8, [x0, #8]
	add	x0, x8, x10
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_WINDOW,4,2                ; @RATE_WINDOW
	.no_dead_strip	_infra_rate_find_second
.subsections_via_symbols
