	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lag_get_rac
_lag_get_rac:                           ## @lag_get_rac
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_lag_rac_refill
	movl	(%rbx), %edx
	movb	4(%rbx), %cl
	movl	%edx, %edi
	shrl	%cl, %edi
	movl	8(%rbx), %esi
	movq	16(%rbx), %r8
	movl	1020(%r8), %eax
	imull	%edi, %eax
	cmpl	%eax, %esi
	jae	LBB0_5
## %bb.1:
	movl	4(%r8), %ecx
	imull	%edi, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %esi
	jb	LBB0_4
## %bb.2:
	movb	24(%rbx), %cl
	movl	%edi, %r9d
	shll	%cl, %r9d
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r9d
                                        ## kill: def $eax killed $eax def $rax
	movq	32(%rbx), %rcx
	movslq	(%rcx,%rax,4), %rcx
	leal	-1(%rcx), %eax
	leaq	(%r8,%rcx,4), %rcx
	addq	$4, %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	imull	%edi, %edx
	incl	%eax
	addq	$4, %rcx
	cmpl	%edx, %esi
	jae	LBB0_3
LBB0_4:
	movslq	%eax, %rcx
	movl	4(%r8,%rcx,4), %edx
	subl	(%r8,%rcx,4), %edx
	imull	%edi, %edx
	jmp	LBB0_6
LBB0_5:
	subl	%eax, %edx
	movl	$255, %eax
LBB0_6:
	testl	%edx, %edx
	movl	$128, %ecx
	cmovnel	%edx, %ecx
	movl	%ecx, (%rbx)
	cltq
	imull	(%r8,%rax,4), %edi
	subl	%edi, %esi
	movl	%esi, 8(%rbx)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lag_get_rac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lag_get_rac
_lag_get_rac:                           ; @lag_get_rac
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_lag_rac_refill
	ldp	w11, w8, [x19]
	lsr	w8, w11, w8
	ldr	w9, [x19, #8]
	ldr	x10, [x19, #16]
	ldr	w12, [x10, #1020]
	mul	w12, w12, w8
	cmp	w9, w12
	b.hs	LBB0_3
; %bb.1:
	ldr	w11, [x10, #4]
	mul	w11, w11, w8
	cmp	w9, w11
	b.hs	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	sub	w11, w11, w12
	mov	w0, #255
	b	LBB0_7
LBB0_4:
	ldr	w11, [x19, #24]
	lsl	w11, w8, w11
	udiv	w11, w9, w11
	ldr	x12, [x19, #32]
	ldrsw	x11, [x12, w11, uxtw #2]
	sub	w0, w11, #1
	add	x11, x10, x11, lsl #2
	add	x11, x11, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	mul	w12, w12, w8
	add	w0, w0, #1
	cmp	w9, w12
	b.hs	LBB0_5
LBB0_6:
	add	x11, x10, w0, sxtw #2
	ldp	w11, w12, [x11]
	sub	w11, w12, w11
	mul	w11, w11, w8
LBB0_7:
	mov	w12, #128
	cmp	w11, #0
	csel	w11, w12, w11, eq
	str	w11, [x19]
	ldr	w10, [x10, w0, sxtw #2]
	msub	w8, w10, w8, w9
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lag_get_rac
.subsections_via_symbols
