	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_band_hdr
_decode_band_hdr:                       ## @decode_band_hdr
	.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, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, %r15d
	testb	$1, %r15b
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	testb	$-128, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_get_bits_long
LBB0_4:
	movl	%eax, 60(%r13)
	movl	%r15d, %eax
	andl	$2, %eax
	movl	%eax, 4(%r13)
	movl	%r15d, %eax
	andl	$8, %eax
	movl	%eax, 8(%r13)
	movl	%r15d, %eax
	andl	$4, %eax
	movl	%eax, 12(%r13)
	jne	LBB0_6
## %bb.5:
	movl	$1, 8(%r13)
LBB0_6:
	movl	$0, 16(%r13)
	testb	$16, %r15b
	je	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, 16(%r13)
	cmpl	$61, %eax
	jle	LBB0_8
## %bb.21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_1:
	movl	$1, (%r13)
	jmp	LBB0_19
LBB0_8:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	16(%r13), %rax
	addq	%rax, %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movl	$8, %eax
	testb	$64, %r15b
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
LBB0_13:
	movl	%eax, 32(%r13)
	movl	%r15d, %esi
	andl	$128, %esi
	movq	_IVI_BLK_HUFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	56(%r13), %rcx
	movq	%r14, %rdi
	movq	%r12, %r8
	callq	_ff_ivi_dec_huff_desc
	testl	%eax, %eax
	js	LBB0_20
## %bb.14:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, 36(%r13)
LBB0_16:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, 40(%r13)
	testb	$32, %r15b
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_align_get_bits
	movq	%r14, %rdi
	callq	_skip_hdr_extension
LBB0_18:
	movq	%r14, %rdi
	callq	_align_get_bits
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many corrections: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_IVI_BLK_HUFF,4,2               ## @IVI_BLK_HUFF
	.no_dead_strip	_decode_band_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function decode_band_hdr
lCPI0_0:
	.long	2                               ; 0x2
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_decode_band_hdr:                       ; @decode_band_hdr
	.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	x22, x2
	mov	x20, x1
	mov	x23, x0
	add	x19, x0, #4
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	tbnz	w0, #0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x23]
	tbnz	w8, #7, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_22
LBB0_4:
	mov	x0, x19
	mov	w1, #24
	bl	_get_bits_long
LBB0_5:
	str	w0, [x20, #60]
	dup.2s	v0, w21
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	and.8b	v0, v0, v1
	stur	d0, [x20, #4]
	and	w8, w21, #0x4
	str	w8, [x20, #12]
	tbnz	w21, #2, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_7:
	str	wzr, [x20, #16]
	tbz	w21, #4, LBB0_13
; %bb.8:
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	mov	x3, x0
	str	w0, [x20, #16]
	cmp	w0, #61
	b.le	LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_10:
	cmp	w3, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x20, #24]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x20, #16]
	cmp	x23, x8, lsl #1
	b.lt	LBB0_12
LBB0_13:
	tbnz	w21, #6, LBB0_15
; %bb.14:
	mov	w0, #8
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
LBB0_16:
	str	w0, [x20, #32]
	and	w1, w21, #0x80
Lloh10:
	adrp	x8, _IVI_BLK_HUFF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IVI_BLK_HUFF@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, x20, #56
	mov	x0, x19
	mov	x4, x22
	bl	_ff_ivi_dec_huff_desc
	tbnz	w0, #31, LBB0_22
; %bb.17:
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x20, #48]
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #16
	bl	_get_bits
	str	w0, [x20, #36]
LBB0_19:
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
	str	w0, [x20, #40]
	tbz	w21, #5, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_align_get_bits
	mov	x0, x19
	bl	_skip_hdr_extension
LBB0_21:
	mov	x0, x19
	bl	_align_get_bits
	mov	w0, #0
LBB0_22:
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many corrections: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_IVI_BLK_HUFF,4,2               ; @IVI_BLK_HUFF
	.no_dead_strip	_decode_band_hdr
.subsections_via_symbols
