	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssd_to_psnr
_ssd_to_psnr:                           ## @ssd_to_psnr
	.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
	cvtsi2sd	%edi, %xmm0
	imull	$65025, %esi, %eax              ## imm = 0xFE01
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_log
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %ebx
	negl	%ebx
	movl	$10, %edi
	callq	_log
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ssd_to_psnr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssd_to_psnr
_ssd_to_psnr:                           ; @ssd_to_psnr
	.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
	scvtf	d0, w0
	mov	w8, #65025
	mul	w8, w1, w8
	scvtf	d1, w8
	fdiv	d0, d0, d1
	fcvtzs	w0, d0
	bl	_log
	mov	w8, #-10
	mul	w19, w0, w8
	mov	w0, #10
	bl	_log
	sdiv	w8, w19, w0
	scvtf	d0, w8
	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	_ssd_to_psnr
.subsections_via_symbols
