	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avivo_get_fb_ref_div
_avivo_get_fb_ref_div:                  ## @avivo_get_fb_ref_div
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movl	$100, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %edi
	movl	%r8d, %esi
	callq	_min
	movl	%eax, %edi
	movl	$1, %esi
	callq	_max
	movl	%eax, %r14d
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %edi
	movl	$1, %esi
	callq	_max
	movl	%eax, %edi
	movl	%r14d, %esi
	movq	16(%rbp), %r14
	callq	_min
	movl	%eax, (%r14)
	imull	%r13d, %ebx
	imull	%eax, %ebx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_DIV_ROUND_CLOSEST
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi)
	cmpl	%r15d, %eax
	jbe	LBB0_2
## %bb.1:
	movl	%eax, %ecx
	movl	(%r14), %eax
	imull	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, (%r14)
	movl	%r15d, (%rsi)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_avivo_get_fb_ref_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avivo_get_fb_ref_div
_avivo_get_fb_ref_div:                  ; @avivo_get_fb_ref_div
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x19, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	w8, #100
	udiv	w0, w8, w2
	mov	x1, x4
	bl	_min
	mov	w1, #1
	bl	_max
	mov	x25, x0
	udiv	w0, w23, w22
	mov	w1, #1
	bl	_max
	mov	x1, x25
	bl	_min
	str	w0, [x20]
	mul	w8, w22, w24
	mul	w0, w8, w0
	mov	x1, x23
	bl	_DIV_ROUND_CLOSEST
	str	w0, [x19]
	cmp	w0, w21
	b.ls	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	mul	w8, w8, w21
	udiv	w8, w8, w0
	str	w8, [x20]
	str	w21, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_avivo_get_fb_ref_div
.subsections_via_symbols
