	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_slice_header
_decode_slice_header:                   ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	cmpl	$176, %ecx
	jl	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	(%rbx), %ecx
LBB0_2:
	cmpl	4(%rbx), %ecx
	jge	LBB0_3
## %bb.4:
	movl	%ecx, 8(%rbx)
	imull	16(%rbx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_B_AVAIL@GOTPCREL(%rip), %rax
	movq	_C_AVAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 20(%rbx)
	cmpl	$0, 56(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 48(%rbx)
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, 40(%rbx)
LBB0_6:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	xorl	%r15d, %r15d
	cmpl	$0, 28(%rbx)
	jne	LBB0_12
## %bb.8:
	movl	16(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, 8(%rbx)
	jl	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	24(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_12
LBB0_3:
	movl	24(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected start code 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"stc 0x%02x is too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_B_AVAIL,4,2                    ## @B_AVAIL
	.comm	_C_AVAIL,4,2                    ## @C_AVAIL
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
L_.str.2:                               ## @.str.2
	.asciz	"weighted prediction not yet supported\n"

	.no_dead_strip	_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 decode_slice_header
_decode_slice_header:                   ; @decode_slice_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #176
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w8, [x19]
LBB0_2:
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.3:
	ldp	w9, w10, [x19, #16]
	mul	w9, w9, w8
	stp	w8, w9, [x19, #8]
Lloh5:
	adrp	x8, _B_AVAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B_AVAIL@GOTPAGEOFF]
Lloh7:
	adrp	x9, _C_AVAIL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _C_AVAIL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w10, w8
	str	w8, [x19, #20]
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x19, #48]
	mov	x0, x20
	mov	w1, #6
	bl	_get_bits
	str	w0, [x19, #40]
LBB0_5:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_10
; %bb.7:
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #16]
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	b.lt	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w0, [x19, #24]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #24]
Lloh19:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
Lloh24:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected start code 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"stc 0x%02x is too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_B_AVAIL,4,2                    ; @B_AVAIL
	.comm	_C_AVAIL,4,2                    ; @C_AVAIL
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
l_.str.2:                               ; @.str.2
	.asciz	"weighted prediction not yet supported\n"

	.no_dead_strip	_decode_slice_header
.subsections_via_symbols
