	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	movq	8(%rcx), %rdx
	movl	(%rcx), %r15d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	callq	_decode_frame_headers
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	movl	%ecx, (%r14)
	movl	%r15d, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r13), %ecx
	movq	_BS_NONREF@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rdx
	movq	_AVDISCARD_NONREF@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jge	LBB0_12
LBB0_4:
	movq	_BS_KEYFRAME@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rdx
	movq	_AVDISCARD_NONKEY@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jge	LBB0_12
LBB0_6:
	movq	_BS_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	btl	%eax, %ecx
	setb	%dl
	movl	%edx, 4(%r13)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:
	movq	8(%r13), %rdx
	movl	36(%r13), %ecx
	movl	32(%r13), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$40, %r9d
	callq	_decode_plane
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	8(%r13), %rdx
	addq	$4, %rdx
	movl	28(%r13), %ecx
	movl	24(%r13), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$10, %r9d
	callq	_decode_plane
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	8(%r13), %rdx
	addq	$8, %rdx
	movl	20(%r13), %ecx
	movl	16(%r13), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$10, %r9d
	callq	_decode_plane
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	8(%r13), %rdi
	movl	4(%r13), %esi
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movl	8(%rbx), %r8d
	callq	_output_plane
	movq	8(%r13), %rdi
	addq	$4, %rdi
	movl	4(%r13), %esi
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	4(%rcx), %edx
	movl	4(%rax), %ecx
	movl	8(%rbx), %r8d
	addl	$3, %r8d
	sarl	$2, %r8d
	callq	_output_plane
	movq	8(%r13), %rdi
	addq	$8, %rdi
	movl	4(%r13), %esi
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	8(%rcx), %edx
	movl	8(%rax), %ecx
	movl	8(%rbx), %r8d
	addl	$3, %r8d
	sarl	$2, %r8d
	callq	_output_plane
	movl	$1, %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_BS_NONREF,4,2                  ## @BS_NONREF
	.comm	_AVDISCARD_NONREF,8,3           ## @AVDISCARD_NONREF
	.comm	_BS_KEYFRAME,4,2                ## @BS_KEYFRAME
	.comm	_AVDISCARD_NONKEY,8,3           ## @AVDISCARD_NONKEY
	.comm	_BS_BUFFER,4,2                  ## @BS_BUFFER
	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x23, [x0, #16]
	ldr	x2, [x3, #8]
	ldr	w20, [x3]
	mov	x0, x23
	mov	x1, x21
	mov	x3, x20
	bl	_decode_frame_headers
	tbnz	w0, #31, LBB0_14
; %bb.1:
	cbz	w0, LBB0_4
; %bb.2:
	mov	w8, #0
LBB0_3:
	str	w8, [x19]
	mov	x0, x20
	b	LBB0_14
LBB0_4:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _BS_NONREF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BS_NONREF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x9, [x21]
Lloh3:
	adrp	x10, _AVDISCARD_NONREF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVDISCARD_NONREF@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_13
LBB0_6:
Lloh6:
	adrp	x9, _BS_KEYFRAME@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BS_KEYFRAME@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	x9, [x21]
Lloh9:
	adrp	x10, _AVDISCARD_NONKEY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AVDISCARD_NONKEY@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_13
LBB0_8:
Lloh12:
	adrp	x9, _BS_BUFFER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BS_BUFFER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	and	w8, w8, #0x1
	str	w8, [x23, #4]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_14
; %bb.9:
	ldr	x2, [x23, #8]
	ldp	w4, w3, [x23, #32]
	mov	x0, x23
	mov	x1, x21
	mov	w5, #40
	bl	_decode_plane
	cbnz	w0, LBB0_14
; %bb.10:
	ldr	x8, [x23, #8]
	add	x2, x8, #4
	ldp	w4, w3, [x23, #24]
	mov	x0, x23
	mov	x1, x21
	mov	w5, #10
	bl	_decode_plane
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	x8, [x23, #8]
	add	x2, x8, #8
	ldp	w4, w3, [x23, #16]
	mov	x0, x23
	mov	x1, x21
	mov	w5, #10
	bl	_decode_plane
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	x0, [x23, #8]
	ldr	w1, [x23, #4]
	ldp	x9, x8, [x22]
	ldr	w2, [x8]
	ldr	w3, [x9]
	ldr	w4, [x21, #8]
	bl	_output_plane
	ldr	x8, [x23, #8]
	add	x0, x8, #4
	ldr	w1, [x23, #4]
	ldp	x9, x8, [x22]
	ldr	w2, [x8, #4]
	ldr	w3, [x9, #4]
	ldr	w8, [x21, #8]
	add	w8, w8, #3
	asr	w4, w8, #2
	bl	_output_plane
	ldr	x8, [x23, #8]
	add	x0, x8, #8
	ldr	w1, [x23, #4]
	ldp	x9, x8, [x22]
	ldr	w2, [x8, #8]
	ldr	w3, [x9, #8]
	ldr	w8, [x21, #8]
	add	w8, w8, #3
	asr	w4, w8, #2
	bl	_output_plane
	mov	w8, #1
	b	LBB0_3
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BS_NONREF,4,2                  ; @BS_NONREF
	.comm	_AVDISCARD_NONREF,8,3           ; @AVDISCARD_NONREF
	.comm	_BS_KEYFRAME,4,2                ; @BS_KEYFRAME
	.comm	_AVDISCARD_NONKEY,8,3           ; @AVDISCARD_NONKEY
	.comm	_BS_BUFFER,4,2                  ; @BS_BUFFER
	.no_dead_strip	_decode_frame
.subsections_via_symbols
