	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_cpl_coord
_calc_cpl_coord:                        ## @calc_cpl_coord
	.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	_COEF_MAX@GOTPCREL(%rip), %rbx
	cmpl	%esi, (%rbx)
	jge	LBB0_1
## %bb.2:
	sarl	$24, %esi
	movl	%edi, %eax
	cltd
	idivl	%esi
	movl	%eax, %edi
	movl	$1073741824, %esi               ## imm = 0x40000000
	callq	_FFMIN
	movl	%eax, %edi
	callq	_ff_sqrt
	shll	$9, %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_FFMIN                          ## TAILCALL
LBB0_1:
	movl	$1048576, %eax                  ## imm = 0x100000
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COEF_MAX,4,2                   ## @COEF_MAX
	.no_dead_strip	_calc_cpl_coord
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_cpl_coord
_calc_cpl_coord:                        ; @calc_cpl_coord
	.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
Lloh0:
	adrp	x19, _COEF_MAX@GOTPAGE
Lloh1:
	ldr	x19, [x19, _COEF_MAX@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	asr	w8, w1, #24
	sdiv	w0, w0, w8
	mov	w1, #1073741824
	bl	_FFMIN
	bl	_ff_sqrt
	lsl	w0, w0, #9
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FFMIN
LBB0_2:
	mov	w0, #1048576
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_COEF_MAX,4,2                   ; @COEF_MAX
	.no_dead_strip	_calc_cpl_coord
.subsections_via_symbols
