	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_band_data
_parse_band_data:                       ## @parse_band_data
	.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	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	movq	40(%r15), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_chs_alloc_msb_band_data
	testl	%eax, %eax
	js	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_chs_alloc_lsb_band_data
	testl	%eax, %eax
	js	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	addq	$4, %rbx
	cmpl	(%r15), %r14d
	jl	LBB0_2
LBB0_5:
	leaq	28(%r15), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.7:
	movq	8(%r15), %r14
	movl	20(%r15), %ecx
	xorl	%ebx, %ebx
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%r15), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	20(%r15), %ecx
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %edx
	jge	LBB0_23
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
	testl	%eax, %eax
	jle	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	40(%r15), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=3
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_chs_clear_band_data
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=3
	movq	%r15, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_get_bits_count
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %esi
	subl	%eax, %esi
	movq	%r15, %rdi
	movq	%rbx, %r15
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	callq	_skip_bits_long
	movl	24(%r15), %eax
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=3
	addq	$4, %r14
	incl	%r12d
	addq	$4, %r13
	cmpl	%eax, %r12d
	jge	LBB0_21
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%ebx, (%r13)
	jle	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=3
	movl	(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax,8), %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	(%rax), %ecx
	jg	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=3
	cmpl	(%r15), %r12d
	jge	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_chs_parse_band_data
	testl	%eax, %eax
	jns	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	32(%r15), %rcx
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_18
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%r15), %edx
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	xorl	%eax, %eax
	cmpl	%edx, %ebx
	jl	LBB0_8
	jmp	LBB0_25
LBB0_14:
	movq	32(%r15), %rdi
	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
	jmp	LBB0_25
LBB0_6:
	xorl	%eax, %eax
LBB0_25:
	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 NAVI position\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_parse_band_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_band_data
_parse_band_data:                       ; @parse_band_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w21, #0
	ldr	x20, [x19, #40]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_chs_alloc_msb_band_data
	tbnz	w0, #31, LBB0_25
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_chs_alloc_lsb_band_data
	tbnz	w0, #31, LBB0_25
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_5:
	add	x20, x19, #28
	mov	x0, x20
	bl	_get_bits_count
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.6:
	mov	x21, x0
	mov	w22, #0
	ldr	x25, [x19, #8]
	ldr	w8, [x19, #20]
Lloh0:
	adrp	x26, _AV_EF_EXPLODE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_EF_EXPLODE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #0
	ldr	w9, [x19, #24]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [x19, #20]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_21
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	w27, #0
	ldr	x24, [x19, #40]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=3
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	bl	_chs_clear_band_data
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=3
	mov	x0, x20
	bl	_get_bits_count
	sub	w1, w21, w0
	mov	x0, x20
	bl	_skip_bits_long
	ldr	w9, [x19, #24]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=3
	add	x25, x25, #4
	add	w27, w27, #1
	add	x24, x24, #4
	cmp	w27, w9
	b.ge	LBB0_9
LBB0_16:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x24]
	cmp	w8, w22
	b.le	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	ldr	w8, [x25]
	add	w21, w21, w8, lsl #3
	ldr	w8, [x20]
	cmp	w21, w8
	b.gt	LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=3
	ldr	w8, [x19]
	cmp	w27, w8
	b.ge	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=3
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	bl	_chs_parse_band_data
	tbz	w0, #31, LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=3
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_13
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19, #16]
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	add	w22, w22, #1
	cmp	w22, w9
	b.lt	LBB0_7
	b	LBB0_25
LBB0_23:
	ldr	x0, [x19, #32]
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
	bl	_av_log
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_25
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid NAVI position\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.no_dead_strip	_parse_band_data
.subsections_via_symbols
