	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speedhq_decode_frame
_speedhq_decode_frame:                  ## @speedhq_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rcx), %ebx
	cmpl	$3, %ebx
	jle	LBB0_8
## %bb.1:
	movq	(%rcx), %r12
	movl	(%r12), %eax
	cmpl	$100, %eax
	jge	LBB0_8
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edi
	movl	$100, %esi
	subl	%eax, %esi
	callq	_compute_quant_matrix
	leaq	4(%r12), %rdi
	callq	_AV_RL24
	movl	%eax, %r13d
	leal	-3(%rbx), %eax
	cmpl	%eax, %r13d
	jge	LBB0_8
## %bb.3:
	movl	16(%r14), %edi
	movl	$16, %esi
	callq	_FFALIGN
	movq	%rax, 24(%r14)
	movl	(%r14), %edi
	movl	$16, %esi
	callq	_FFALIGN
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movl	$1, (%r15)
	cmpl	$4, %r13d
	jne	LBB0_10
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	movl	$4, %r9d
	pushq	$1
	jmp	LBB0_6
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	movl	$4, %r9d
	pushq	$2
	pushq	%r13
	callq	_decode_speedhq_field
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	movl	$1, %r8d
	movl	%r13d, %r9d
	pushq	$2
LBB0_6:
	pushq	%rbx
	callq	_decode_speedhq_field
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_7
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_speedhq_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speedhq_decode_frame
_speedhq_decode_frame:                  ; @speedhq_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w19, [x3, #8]
	subs	w26, w19, #3
	b.le	LBB0_6
; %bb.1:
	ldr	x22, [x3]
	ldr	w8, [x22]
	cmp	w8, #100
	b.ge	LBB0_6
; %bb.2:
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	ldr	x23, [x0, #32]
	ldr	w0, [x23]
	mov	w9, #100
	sub	w1, w9, w8
	bl	_compute_quant_matrix
	add	x0, x22, #4
	bl	_AV_RL24
	cmp	w0, w26
	b.ge	LBB0_6
; %bb.3:
	mov	x24, x0
	ldr	w0, [x25, #16]
	mov	w1, #16
	bl	_FFALIGN
	str	x0, [x25, #24]
	ldr	w0, [x25]
	mov	w1, #16
	bl	_FFALIGN
	str	x0, [x25, #8]
	mov	x0, x25
	mov	x1, x21
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_11
; %bb.4:
	mov	w8, #1
	str	w8, [x21]
	cmp	w24, #4
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	w4, #0
	mov	w5, #4
	mov	x6, x19
	mov	w7, #1
	bl	_decode_speedhq_field
	tbz	w0, #31, LBB0_10
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	w4, #0
	mov	w5, #4
	mov	x6, x24
	mov	w7, #2
	bl	_decode_speedhq_field
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	w4, #1
	mov	x5, x24
	mov	x6, x19
	mov	w7, #2
	bl	_decode_speedhq_field
	tbnz	w0, #31, LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_7
LBB0_11:
	mov	x19, x0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_speedhq_decode_frame
.subsections_via_symbols
