	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qdm2_decode_frame
_qdm2_decode_frame:                     ## @qdm2_decode_frame
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rcx), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %r13
	movl	(%rcx), %ecx
	movl	$-1, %eax
	cmpl	(%r13), %ecx
	jl	LBB0_8
## %bb.3:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	4(%r13), %eax
	shll	$4, %eax
	movl	%eax, (%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	movl	$16, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_qdm2_decode
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	8(%r13), %rax
	movslq	4(%r13), %rcx
	imulq	%rax, %rcx
	leaq	(%rbx,%rcx,4), %rbx
	decl	%r12d
	jne	LBB0_5
## %bb.7:
	movl	$1, (%r14)
	movl	(%r13), %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qdm2_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qdm2_decode_frame
_qdm2_decode_frame:                     ; @qdm2_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x3, #8]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x20, [x0]
	ldr	w8, [x3]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_9
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	mov	x19, x2
	mov	x22, x1
	ldr	w8, [x20, #4]
	lsl	w8, w8, #4
	str	w8, [x1]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	x8, [x22, #8]
	ldr	x22, [x8]
	mov	w23, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_qdm2_decode
	tbnz	w0, #31, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w9, w8, [x20, #4]
	mul	w8, w9, w8
	add	x22, x22, w8, sxtw #2
	subs	w23, w23, #1
	b.ne	LBB0_6
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x20]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qdm2_decode_frame
.subsections_via_symbols
