	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optimum_dist
_optimum_dist:                          ## @optimum_dist
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	16(%rax), %xmm1
	mulsd	8(%rax), %xmm1
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	movq	_color15_7_factor@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	movl	$3, %edi
	callq	_pow
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	callq	_av_log
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_color15_7_factor,8,3           ## @color15_7_factor
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dist: %d\n"

	.no_dead_strip	_optimum_dist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optimum_dist
_optimum_dist:                          ; @optimum_dist
	.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
	ldr	x8, [x0, #8]
	ldp	d2, d0, [x8, #8]
	ldr	d1, [x8]
	fmul	d0, d1, d0
	fmul	d0, d0, d2
	ldr	d1, [x0]
	fdiv	d0, d1, d0
Lloh0:
	adrp	x8, _color15_7_factor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _color15_7_factor@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	fmul	d0, d0, d1
	mov	w0, #3
	bl	_pow
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_av_log
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_color15_7_factor,8,3           ; @color15_7_factor
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dist: %d\n"

	.no_dead_strip	_optimum_dist
.subsections_via_symbols
