	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function get_qscale
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_qscale:                            ## @get_qscale
	.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
	subq	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movsd	%xmm0, -248(%rbp)               ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r8
	movslq	(%rsi), %r12
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	movq	_M_PI@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm1, -224(%rbp)
	movq	_M_E@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm1, -216(%rbp)
	movupd	8(%rsi), %xmm1
	movupd	16(%rsi), %xmm2
	mulpd	%xmm1, %xmm2
	addsd	24(%rsi), %xmm1
	mulsd	16(%rsi), %xmm1
	movapd	%xmm2, -208(%rbp)
	movsd	%xmm1, -192(%rbp)
	movsd	32(%rsi), %xmm1                 ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -184(%rbp)
	movq	40(%rsi), %rsi
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movsd	48(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	cmpq	%rcx, %rsi
	jne	LBB0_2
## %bb.1:
	addsd	56(%rbx), %xmm2
	mulsd	LCPI0_0(%rip), %xmm2
LBB0_2:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	movaps	%xmm1, %xmm3
	cmpq	%rdx, %rsi
	je	LBB0_4
## %bb.3:
	xorps	%xmm3, %xmm3
LBB0_4:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movaps	%xmm1, %xmm4
	cmpq	%rdi, %rsi
	je	LBB0_6
## %bb.5:
	xorps	%xmm4, %xmm4
LBB0_6:
	movsd	%xmm2, -176(%rbp)
	movupd	64(%rbx), %xmm2
	movddup	%xmm0, %xmm5                    ## xmm5 = xmm0[0,0]
	divpd	%xmm5, %xmm2
	movupd	%xmm2, -168(%rbp)
	movsd	80(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	divsd	%xmm0, %xmm2
	movsd	%xmm2, -152(%rbp)
	movsd	%xmm3, -144(%rbp)
	movsd	%xmm4, -136(%rbp)
	cmpq	%rcx, %rsi
	je	LBB0_8
## %bb.7:
	xorps	%xmm1, %xmm1
LBB0_8:
	movsd	%xmm1, -128(%rbp)
	movq	24(%r14), %rsi
	movq	64(%r14), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax,%r12,8), %xmm0
	movsd	(%rsi,%r12,8), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -120(%rbp)
	movsd	(%r8), %xmm1                    ## xmm1 = mem[0],zero
	movsd	%xmm1, -112(%rbp)
	movq	32(%r14), %rsi
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax,%rdx,8), %xmm1
	movsd	(%rsi,%rdx,8), %xmm2            ## xmm2 = mem[0],zero
	divsd	%xmm1, %xmm2
	movsd	%xmm2, -104(%rbp)
	movsd	(%rsi,%rdi,8), %xmm1            ## xmm1 = mem[0],zero
	xorps	%xmm2, %xmm2
	cvtsi2sdq	(%rax,%rdi,8), %xmm2
	divsd	%xmm2, %xmm1
	movsd	%xmm1, -96(%rbp)
	movq	40(%r14), %rdx
	movsd	(%rdx,%rdi,8), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm2, %xmm1
	movsd	%xmm1, -88(%rbp)
	movsd	(%rdx,%rcx,8), %xmm1            ## xmm1 = mem[0],zero
	xorps	%xmm2, %xmm2
	cvtsi2sdq	(%rax,%rcx,8), %xmm2
	divsd	%xmm2, %xmm1
	movsd	%xmm1, -80(%rbp)
	movsd	(%rsi,%r12,8), %xmm1            ## xmm1 = mem[0],zero
	addsd	(%rdx,%r12,8), %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -72(%rbp)
	movq	$0, -64(%rbp)
	movl	56(%r14), %edi
	leaq	-224(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_av_expr_eval
	movsd	%xmm0, -240(%rbp)               ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_26
LBB0_10:
	movq	%r12, -232(%rbp)                ## 8-byte Spill
	movsd	48(%r14), %xmm1                 ## xmm1 = mem[0],zero
	movsd	-240(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	-248(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm0, %xmm2
	xorpd	%xmm0, %xmm0
	maxsd	%xmm2, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	movsd	%xmm1, 48(%r14)
	movq	8(%r14), %rax
	cmpl	$0, 8(%rax)
	jle	LBB0_18
## %bb.11:
	movl	$16, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	mulsd	-8(%rcx,%r13), %xmm0
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movslq	8(%rax), %rcx
	addq	$24, %r13
	cmpq	%rcx, %r12
	jge	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%rax), %rcx
	cmpl	%r15d, -16(%rcx,%r13)
	jg	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r15d, -12(%rcx,%r13)
	jl	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rcx,%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_qp2bits
	movq	8(%r14), %rax
	jmp	LBB0_17
LBB0_18:
	movq	%rbx, %rdi
	callq	_bits2qp
	movq	-232(%rbp), %rcx                ## 8-byte Reload
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_21
## %bb.19:
	movq	8(%r14), %rax
	movsd	16(%rax), %xmm1                 ## xmm1 = mem[0],zero
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_21
## %bb.20:
	movsd	24(%rax), %xmm2                 ## xmm2 = mem[0],zero
	jmp	LBB0_24
LBB0_21:
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_25
## %bb.22:
	movq	8(%r14), %rax
	movsd	32(%rax), %xmm1                 ## xmm1 = mem[0],zero
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_25
## %bb.23:
	movsd	40(%rax), %xmm2                 ## xmm2 = mem[0],zero
LBB0_24:
	mulsd	%xmm1, %xmm0
	subsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm0
LBB0_25:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	maxsd	%xmm0, %xmm1
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movapd	%xmm1, %xmm0
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,8,3                       ## @M_PI
	.comm	_M_E,8,3                        ## @M_E
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,8,3          ## @AV_PICTURE_TYPE_P
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error evaluating rc_eq \"%s\"\n"

	.no_dead_strip	_get_qscale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_qscale
_get_qscale:                            ; @get_qscale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	d11, d10, [sp, #176]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #192]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x21, x2
	fmov	d8, d0
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-120]
	ldr	x8, [x0, #8]
	ldrsw	x22, [x1]
Lloh3:
	adrp	x9, _M_PI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_PI@GOTPAGEOFF]
Lloh5:
	adrp	x10, _M_E@GOTPAGE
Lloh6:
	ldr	x10, [x10, _M_E@GOTPAGEOFF]
Lloh7:
	ldr	d0, [x9]
Lloh8:
	ldr	d1, [x10]
	stp	d0, d1, [sp]
	ldp	d1, d2, [x1, #8]
	fmul	d0, d1, d2
	ldp	d3, d4, [x1, #24]
	fmul	d5, d2, d3
	stp	d0, d5, [sp, #16]
	ldr	d0, [x0]
	fadd	d1, d1, d3
	fmul	d1, d2, d1
	fdiv	d2, d4, d0
	stp	d1, d2, [sp, #32]
	ldr	x10, [x1, #40]
Lloh9:
	adrp	x23, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh10:
	ldr	x23, [x23, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	d1, [x1, #48]
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	d2, [x20, #56]
	fadd	d1, d1, d2
	fmov	d2, #0.50000000
	fmul	d1, d1, d2
LBB0_2:
	str	d1, [sp, #48]
	ldr	q1, [x20, #64]
	dup.2d	v2, v0[0]
	fdiv.2d	v1, v1, v2
	stur	q1, [sp, #56]
	ldr	d1, [x20, #80]
	fdiv	d0, d1, d0
Lloh11:
	adrp	x24, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh12:
	ldr	x24, [x24, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	ldr	x11, [x24]
	cmp	x10, x11
	movi	d10, #0000000000000000
	fmov	d11, #1.00000000
	fcsel	d1, d11, d10, eq
	stp	d0, d1, [sp, #72]
Lloh13:
	adrp	x12, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh14:
	ldr	x12, [x12, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh15:
	ldr	x12, [x12]
	cmp	x10, x12
	fcsel	d0, d11, d10, eq
	cmp	x10, x9
	fcsel	d1, d11, d10, eq
	stp	d0, d1, [sp, #88]
	lsl	x10, x22, #3
	ldp	x13, x14, [x19, #24]
	ldr	d0, [x13, x10]
	ldr	x13, [x19, #64]
	ldr	d1, [x13, x10]
	scvtf	d1, d1
	fdiv	d0, d0, d1
	str	d0, [sp, #104]
	ldr	d0, [x8]
	str	d0, [sp, #112]
	lsl	x8, x11, #3
	ldr	d0, [x14, x8]
	ldr	d2, [x13, x8]
	scvtf	d2, d2
	fdiv	d0, d0, d2
	str	d0, [sp, #120]
	lsl	x8, x12, #3
	ldr	d0, [x14, x8]
	ldr	d2, [x13, x8]
	scvtf	d2, d2
	fdiv	d0, d0, d2
	str	d0, [sp, #128]
	ldr	x11, [x19, #40]
	ldr	d0, [x11, x8]
	fdiv	d0, d0, d2
	str	d0, [sp, #136]
	lsl	x8, x9, #3
	ldr	d0, [x11, x8]
	ldr	d2, [x13, x8]
	scvtf	d2, d2
	fdiv	d0, d0, d2
	str	d0, [sp, #144]
	ldr	d0, [x14, x10]
	ldr	d2, [x11, x10]
	fadd	d0, d0, d2
	fdiv	d0, d0, d1
	str	d0, [sp, #152]
	str	xzr, [sp, #160]
	ldr	w0, [x19, #56]
	mov	x1, sp
	mov	x2, x20
	bl	_av_expr_eval
	fmov	d9, d0
	bl	_isnan
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	fmov	d0, #-1.00000000
	b	LBB0_20
LBB0_4:
	ldr	d0, [x19, #48]
	fadd	d0, d9, d0
	str	d0, [x19, #48]
	fmul	d0, d9, d8
	fmax	d0, d0, d10
	fadd	d0, d0, d11
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, x25
	ldr	d1, [x9, #8]
	fmul	d0, d0, d1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	ldrsw	x9, [x8, #8]
	add	x25, x25, #24
	cmp	x26, x9
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #48]
	ldr	w10, [x9, x25]
	cmp	w10, w21
	b.gt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x9, x25
	ldr	w11, [x10, #4]
	cmp	w11, w21
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x10, #16]
	cbz	x1, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_qp2bits
	ldr	x8, [x19, #8]
	b	LBB0_7
LBB0_12:
	mov	x0, x20
	bl	_bits2qp
	ldr	x8, [x24]
	cmp	x8, x22
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	d1, [x8, #16]
	fcmp	d1, #0.0
	b.pl	LBB0_15
; %bb.14:
	ldr	d2, [x8, #24]
	b	LBB0_18
LBB0_15:
	ldr	x8, [x23]
	cmp	x8, x22
	b.ne	LBB0_19
; %bb.16:
	ldr	x8, [x19, #8]
	ldr	d1, [x8, #32]
	fcmp	d1, #0.0
	b.pl	LBB0_19
; %bb.17:
	ldr	d2, [x8, #40]
LBB0_18:
	fmsub	d0, d0, d1, d2
LBB0_19:
	fmov	d1, #1.00000000
	fmax	d0, d0, d1
LBB0_20:
	ldur	x8, [x29, #-120]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #192]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,8,3                       ; @M_PI
	.comm	_M_E,8,3                        ; @M_E
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,8,3          ; @AV_PICTURE_TYPE_P
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error evaluating rc_eq \"%s\"\n"

	.no_dead_strip	_get_qscale
.subsections_via_symbols
