	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svq3_decode_slice_header
_svq3_decode_slice_header:              ## @svq3_decode_slice_header
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movslq	(%rbx), %r13
	leaq	112(%rbx), %rdi
	movq	%rdi, %r14
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, %r12
	movl	%r12d, %ecx
	andl	$159, %ecx
	leal	-3(%rcx), %eax
	cmpl	$-2, %eax
	jb	LBB0_2
## %bb.1:
	movl	%r12d, %eax
	andl	$96, %eax
	je	LBB0_2
## %bb.4:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	shrl	$5, %r12d
	andl	$3, %r12d
	leal	(,%r12,8), %esi
	movq	%r14, %rdi
	callq	_show_bits
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(%r12,%rax), %r13d
	decl	%r13d
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_skip_bits
	leaq	128(%rbx), %rdi
	leaq	136(%rbx), %rsi
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movslq	%r13d, %r13
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r13, %rdx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_av_fast_malloc
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	cmpq	$0, 128(%rbx)
	je	LBB0_29
## %bb.5:
	shlq	$3, %r13
	movq	%r14, %rdi
	callq	_get_bits_left
	cltq
	cmpq	%rax, %r13
	jle	LBB0_7
## %bb.6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_20:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %ecx
LBB0_3:
	xorl	%eax, %eax
	callq	_av_log
	movl	$-1, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	128(%r13), %rdi
	movl	112(%r13), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rsi
	addq	120(%r13), %rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	cmpl	$0, 4(%r13)
	je	LBB0_9
## %bb.8:
	movq	128(%r13), %rdi
	addq	$4, %rdi
	callq	_AV_RL32
	movq	128(%r13), %rdi
	addq	$4, %rdi
	xorl	4(%r13), %eax
	movl	%eax, %esi
	callq	_AV_WL32
LBB0_9:
	leaq	48(%r13), %r15
	movq	128(%r13), %rsi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_init_get_bits
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	decl	%r12d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%rdi,%rax,4), %rsi
	movl	%r12d, %edx
	callq	_memmove
LBB0_11:
	shll	$3, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skip_bits_long
	movq	%r15, %rdi
	callq	_get_interleaved_ue_golomb
	cmpl	$3, %eax
	jb	LBB0_13
## %bb.12:
	movq	96(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %ecx
	jmp	LBB0_3
LBB0_13:
	movq	_ff_h264_golomb_to_pict_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 104(%r13)
	cmpl	$2, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_21
## %bb.14:
	movl	8(%r13), %edi
	movl	$6, %esi
	cmpl	$64, %edi
	jl	LBB0_16
## %bb.15:
	decl	%edi
	callq	_av_log2
	movl	%eax, %esi
	incl	%esi
LBB0_16:
	movq	%r15, %rdi
	callq	_get_bits
	jmp	LBB0_17
LBB0_21:
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_17
## %bb.22:
	movq	96(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_17:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 88(%r13)
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, 80(%r13)
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, 72(%r13)
	movq	%r15, %rdi
	callq	_skip_bits1
	cmpq	$0, 64(%r13)
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_skip_bits1
LBB0_19:
	movq	%r15, %rdi
	callq	_skip_bits1
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	callq	_skip_1stop_8data_bits
	testq	%rax, %rax
	js	LBB0_20
## %bb.23:
	cmpl	$0, 12(%r13)
	jle	LBB0_25
## %bb.24:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	-4(%rcx,%rbx,4), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$12, %rdi
	movl	$-1, %esi
	movl	$16, %edx
	callq	_memset
	movq	24(%r13), %rax
	movslq	12(%r13), %rdx
	movq	%rbx, %rcx
	subq	%rdx, %rcx
	movslq	(%rax,%rcx,4), %rdi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	shll	$5, %edx
	movl	$-1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
LBB0_25:
	xorl	%ebx, %ebx
	cmpq	$0, 32(%r13)
	jle	LBB0_28
## %bb.26:
	movq	24(%r13), %rax
	movslq	40(%r13), %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	subq	%rcx, %rdx
	movslq	(%rax,%rdx,4), %rdi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	movl	44(%r13), %edx
	subl	12(%r13), %edx
	shll	$5, %edx
	movl	$-1, %esi
	callq	_memset
	cmpl	$0, 12(%r13)
	jle	LBB0_28
## %bb.27:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movl	40(%r13), %edx
	notl	%edx
	addl	%r14d, %edx
	movslq	%edx, %rdx
	movslq	(%rcx,%rdx,4), %rcx
	movl	$-1, 12(%rax,%rcx,4)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported slice header (%02X)\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"slice after bitstream end\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"illegal slice type %u \n"

	.comm	_ff_h264_golomb_to_pict_type,8,3 ## @ff_h264_golomb_to_pict_type
L_.str.3:                               ## @.str.3
	.asciz	"Media key encryption"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_svq3_decode_slice_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svq3_decode_slice_header
_svq3_decode_slice_header:              ; @svq3_decode_slice_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	ldr	x26, [x0]
	mov	x19, x26
	ldr	w25, [x19], #112
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	mov	w8, #159
	and	w28, w0, w8
	sub	w8, w28, #3
	and	w9, w0, #0x60
	cmn	w8, #2
	ccmp	w9, #0, #4, hs
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
LBB0_2:
	bl	_av_log
	mov	w0, #-1
	b	LBB0_8
LBB0_3:
	ubfx	w27, w0, #5, #2
	lsl	w1, w27, #3
	mov	x0, x19
	bl	_show_bits
	mov	x22, x0
	sub	w21, w27, #1
	add	w23, w21, w0
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	add	x24, x26, #128
	add	x1, x26, #136
	sxtw	x23, w23
Lloh5:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x2, x8, x23
	mov	x0, x24
	bl	_av_fast_malloc
	ldr	x8, [x26, #128]
	cbz	x8, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_get_bits_left
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23, lsl #3
	b.ge	LBB0_10
; %bb.5:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_6:
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_10:
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	lsl	w25, w22, #3
	ldp	x8, x0, [x26, #120]
	ldr	w9, [x26, #112]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	add	x1, x8, w9, sxtw
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [x26, #4]
	cbz	w8, LBB0_12
; %bb.11:
	ldr	x8, [x26, #128]
	add	x0, x8, #4
	bl	_AV_RL32
	ldr	x8, [x26, #128]
	add	x8, x8, #4
	ldr	w9, [x26, #4]
	eor	w1, w9, w0
	mov	x0, x8
	bl	_AV_WL32
LBB0_12:
	add	x20, x26, #48
	ldr	x1, [x26, #128]
	mov	x0, x20
	mov	x2, x25
	bl	_init_get_bits
	cbz	w27, LBB0_14
; %bb.13:
	ldr	x0, [x24]
	add	x1, x0, w22, sxtw #2
	mov	x2, x21
	bl	_memmove
LBB0_14:
	lsl	w1, w23, #3
	mov	x0, x19
	bl	_skip_bits_long
	mov	x0, x20
	bl	_get_interleaved_ue_golomb
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #3
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	b.lo	LBB0_16
; %bb.15:
	ldr	x8, [x26, #96]
Lloh18:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	str	x0, [sp]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x8
	b	LBB0_2
LBB0_16:
Lloh23:
	adrp	x8, _ff_h264_golomb_to_pict_type@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ff_h264_golomb_to_pict_type@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, uxtw #2]
	str	w8, [x26, #104]
	cmp	w28, #2
	b.ne	LBB0_19
; %bb.17:
	ldr	w8, [x26, #8]
	cmp	w8, #64
	b.ge	LBB0_21
; %bb.18:
	mov	w1, #6
	b	LBB0_22
LBB0_19:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_23
; %bb.20:
	ldr	x0, [x26, #96]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh28:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_7
LBB0_21:
	sub	w0, w8, #1
	bl	_av_log2
	add	w1, w0, #1
LBB0_22:
	mov	x0, x20
	bl	_get_bits
LBB0_23:
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	str	x0, [x26, #88]
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	str	x0, [x26, #80]
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x26, #72]
	mov	x0, x20
	bl	_skip_bits1
	ldr	x8, [x26, #64]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_skip_bits1
LBB0_25:
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	mov	w1, #2
	bl	_skip_bits
	mov	x0, x20
	bl	_skip_1stop_8data_bits
	tbnz	x0, #63, LBB0_6
; %bb.26:
	ldr	w8, [x26, #12]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.27:
	ldp	x8, x9, [x26, #16]
	sub	w10, w21, #1
	ldrsw	x9, [x9, w10, sxtw #2]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #12
	mov	w1, #-1
	mov	w2, #16
	bl	_memset
	ldp	x8, x9, [x26, #16]
	ldr	w10, [x26, #12]
	sub	w11, w21, w10
	ldrsw	x9, [x9, w11, sxtw #2]
	add	x0, x8, x9, lsl #2
	lsl	w2, w10, #5
	mov	w1, #-1
	bl	_memset
LBB0_28:
	ldr	x8, [x26, #32]
	cmp	x8, #1
	b.lt	LBB0_31
; %bb.29:
	ldp	x8, x9, [x26, #16]
	ldp	w10, w11, [x26, #40]
	sub	w10, w21, w10
	ldrsw	x9, [x9, w10, sxtw #2]
	add	x0, x8, x9, lsl #2
	ldr	w8, [x26, #12]
	sub	w8, w11, w8
	lsl	w2, w8, #5
	mov	w19, #-1
	mov	w1, #-1
	bl	_memset
	ldr	w8, [x26, #12]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.30:
	mov	w0, #0
	ldp	x8, x9, [x26, #16]
	ldr	w10, [x26, #40]
	mvn	w10, w10
	add	w10, w21, w10
	ldrsw	x9, [x9, w10, sxtw #2]
	add	x8, x8, x9, lsl #2
	str	w19, [x8, #12]
	b	LBB0_8
LBB0_31:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported slice header (%02X)\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"slice after bitstream end\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"illegal slice type %u \n"

	.comm	_ff_h264_golomb_to_pict_type,8,3 ; @ff_h264_golomb_to_pict_type
l_.str.3:                               ; @.str.3
	.asciz	"Media key encryption"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_svq3_decode_slice_header
.subsections_via_symbols
