	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function calc_max_draw
LCPI0_0:
	.quad	0x3fcae147ae147ae1              ## double 0.20999999999999999
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_calc_max_draw:                         ## @calc_max_draw
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_LINEAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	callq	_log10
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_av_clipf
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movss	(%r14), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	subss	%xmm0, %xmm1
	jmp	LBB0_5
LBB0_4:
	mulss	8(%rbx), %xmm0
	movaps	%xmm0, %xmm1
LBB0_5:
	cvttss2si	%xmm1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINEAR,8,3                     ## @LINEAR
	.no_dead_strip	_calc_max_draw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_max_draw
_calc_max_draw:                         ; @calc_max_draw
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LINEAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LINEAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	bl	_log10
	mov	x8, #31457
	movk	x8, #44564, lsl #16
	movk	x8, #57671, lsl #32
	movk	x8, #16330, lsl #48
	fmov	d1, x8
	fmov	d2, #1.00000000
	fmadd	d0, d0, d1, d2
	mov	w0, #0
	mov	w1, #1
	bl	_av_clipf
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	s1, [x19]
	fmsub	s0, s1, s0, s1
	b	LBB0_5
LBB0_4:
	ldr	s1, [x20, #8]
	fmul	s0, s0, s1
LBB0_5:
	fcvtzs	w0, s0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LINEAR,8,3                     ; @LINEAR
	.no_dead_strip	_calc_max_draw
.subsections_via_symbols
