	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rac_get_model_sym
_rac_get_model_sym:                     ## @rac_get_model_sym
	.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
	movl	(%rdi), %r11d
	movq	_MODEL_SCALE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r11d, %r9d
	shrl	%cl, %r9d
	movq	%rsi, %r14
	movl	4(%rdi), %r8d
	movl	%r9d, (%rdi)
	movl	(%rsi), %ecx
	movl	%ecx, %edx
	sarl	%edx
	movq	8(%rsi), %r10
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rdx
	movl	(%r10,%rdx,4), %eax
	imull	%r9d, %eax
	cmpl	%r8d, %eax
	cmoval	%edx, %ecx
	cmovbel	%eax, %esi
	cmoval	%eax, %r11d
	cmovbel	%edx, %ebx
	leal	(%rcx,%rbx), %edx
	sarl	%edx
	cmpl	%ebx, %edx
	jne	LBB0_1
## %bb.2:
	subl	%esi, %r8d
	movl	%r8d, 4(%rdi)
	subl	%esi, %r11d
	movl	%r11d, (%rdi)
	movq	_RAC_BOTTOM@GOTPCREL(%rip), %rax
	cmpq	%r11, (%rax)
	jle	LBB0_4
## %bb.3:
	callq	_rac_normalise
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_model_update
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODEL_SCALE,4,2                ## @MODEL_SCALE
	.comm	_RAC_BOTTOM,8,3                 ## @RAC_BOTTOM
	.no_dead_strip	_rac_get_model_sym
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rac_get_model_sym
_rac_get_model_sym:                     ; @rac_get_model_sym
	.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	x20, x1
	mov	w8, #0
	mov	w19, #0
Lloh0:
	adrp	x9, _MODEL_SCALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODEL_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
	ldp	w9, w10, [x0]
	lsr	w11, w9, w11
	str	w11, [x0]
	ldr	w12, [x1]
	asr	w14, w12, #1
	ldr	x13, [x1, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13, w14, sxtw #2]
	mul	w15, w15, w11
	cmp	w15, w10
	csel	w12, w14, w12, hi
	csel	w8, w8, w15, hi
	csel	w9, w15, w9, hi
	csel	w19, w19, w14, hi
	add	w14, w12, w19
	asr	w14, w14, #1
	cmp	w14, w19
	b.ne	LBB0_1
; %bb.2:
Lloh3:
	adrp	x11, _RAC_BOTTOM@GOTPAGE
Lloh4:
	ldr	x11, [x11, _RAC_BOTTOM@GOTPAGEOFF]
	sub	w10, w10, w8
Lloh5:
	ldr	x11, [x11]
	sub	w8, w9, w8
	cmp	x11, x8
	stp	w8, w10, [x0]
	b.le	LBB0_4
; %bb.3:
	bl	_rac_normalise
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_model_update
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MODEL_SCALE,4,2                ; @MODEL_SCALE
	.comm	_RAC_BOTTOM,8,3                 ; @RAC_BOTTOM
	.no_dead_strip	_rac_get_model_sym
.subsections_via_symbols
