	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on2avc_decode_band_types
_on2avc_decode_band_types:              ## @on2avc_decode_band_types
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	cmpq	$0, 32(%rdi)
	setne	%al
	leal	(%rax,%rax), %r13d
	addl	$3, %r13d
	movl	$-1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movl	4(%rdi), %r14d
	imull	(%rdi), %r14d
	testl	%r14d, %r14d
	jle	LBB0_21
## %bb.1:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	notl	%ebx
	xorl	%eax, %eax
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movl	%eax, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_get_bits
	movl	%r14d, %edx
	subl	%r12d, %edx
	subl	%r15d, %edx
	cmpl	%edx, %eax
	jg	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	addl	%eax, %r15d
	cmpl	%ebx, %eax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r15,%r12), %eax
	testl	%r15d, %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jle	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r11
	movq	16(%rcx), %r9
	movslq	%r12d, %rsi
	movslq	%eax, %r15
	leaq	1(%rsi), %rcx
	cmpq	%r15, %rcx
	cmovleq	%r15, %rcx
	subq	%rsi, %rcx
	cmpq	$8, %rcx
	jb	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r9,%rsi,4), %r8
	leaq	(%r11,%rsi,4), %rdx
	subq	%rdx, %r8
	cmpq	$32, %r8
	jb	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	andq	$-8, %rcx
	movd	%edi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	-8(%rcx), %rdx
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %r10d
	andl	$3, %r10d
	cmpq	$24, %rdx
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	andq	$-4, %rcx
	leaq	(%r9,%rsi,4), %r12
	addq	$112, %r12
	leaq	(%r11,%rsi,4), %r8
	addq	$112, %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -112(%r8,%rdx,4)
	movdqu	%xmm0, -96(%r8,%rdx,4)
	movdqu	%xmm1, -112(%r12,%rdx,4)
	movdqu	%xmm1, -96(%r12,%rdx,4)
	movdqu	%xmm0, -80(%r8,%rdx,4)
	movdqu	%xmm0, -64(%r8,%rdx,4)
	movdqu	%xmm1, -80(%r12,%rdx,4)
	movdqu	%xmm1, -64(%r12,%rdx,4)
	movdqu	%xmm0, -48(%r8,%rdx,4)
	movdqu	%xmm0, -32(%r8,%rdx,4)
	movdqu	%xmm1, -48(%r12,%rdx,4)
	movdqu	%xmm1, -32(%r12,%rdx,4)
	movdqu	%xmm0, -16(%r8,%rdx,4)
	movdqu	%xmm0, (%r8,%rdx,4)
	movdqu	%xmm1, -16(%r12,%rdx,4)
	movdqu	%xmm1, (%r12,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rcx
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r10, %r10
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%rsi, %rdx
	leaq	(%r9,%rdx,4), %rcx
	addq	$16, %rcx
	leaq	(%r11,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rdx,%rdi)
	movdqu	%xmm0, (%rdx,%rdi)
	movdqu	%xmm1, -16(%rcx,%rdi)
	movdqu	%xmm1, (%rcx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, -80(%rbp)                 ## 8-byte Folded Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edi, (%r11,%rsi,4)
	movl	%eax, (%r9,%rsi,4)
	incq	%rsi
	cmpq	%r15, %rsi
	jl	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r14d
	jg	LBB0_2
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	addq	$40, %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	"Invalid band type run\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_on2avc_decode_band_types
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on2avc_decode_band_types
_on2avc_decode_band_types:              ; @on2avc_decode_band_types
	.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	x8, [x0, #32]
	cmp	x8, #0
	mov	w8, #5
	mov	w9, #3
	csel	w21, w9, w8, eq
	ldp	w8, w9, [x0]
	mul	w23, w9, w8
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w8, #0
	mov	w9, #-1
	lsl	w9, w9, w21
	mvn	w24, w9
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	mov	x25, x8
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	mov	x22, x0
	mov	w26, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_get_bits
	add	w8, w25, w26
	sub	w8, w23, w8
	cmp	w0, w8
	b.gt	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	add	w26, w0, w26
	cmp	w0, w24
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w26, w25
	cmp	w26, #1
	b.lt	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x10, [x19, #8]
	sxtw	x11, w25
	sxtw	x12, w8
	add	x13, x11, #1
	cmp	x13, x12
	csinc	x13, x12, x11, le
	sub	x13, x13, x11
	cmp	x13, #16
	b.lo	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	x16, x11, #2
	add	x14, x16, x10
	add	x15, x16, x9
	sub	x14, x14, x15
	cmp	x14, #64
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	and	x14, x13, #0xfffffffffffffff0
	dup.4s	v0, w22
	dup.4s	v1, w8
	add	x11, x14, x11
	add	x15, x10, x16
	add	x15, x15, #32
	add	x16, x9, x16
	add	x16, x16, #32
	mov	x17, x14
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x16, #-32]
	stp	q0, q0, [x16], #64
	stp	q1, q1, [x15, #-32]
	stp	q1, q1, [x15], #64
	subs	x17, x17, #16
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x13, x14
	b.eq	LBB0_12
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x11, #2
	str	w22, [x9, x13]
	str	w8, [x10, x13]
	add	x11, x11, #1
	cmp	x11, x12
	b.lt	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, w8
	b.gt	LBB0_2
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid band type run\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_on2avc_decode_band_types
.subsections_via_symbols
