	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_navi_table
_parse_navi_table:                      ## @parse_navi_table
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	4(%rdi), %ecx
	imull	(%rdi), %ecx
	imull	8(%rdi), %ecx
	cmpl	$1025, %ecx                     ## imm = 0x401
	jl	LBB0_3
## %bb.1:
	movl	28(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	leaq	16(%r13), %rdi
	leaq	48(%r13), %rsi
	shll	$2, %ecx
	movl	%ecx, %edx
	callq	_av_fast_malloc
	cmpq	$0, 16(%r13)
	je	LBB0_24
## %bb.4:
	leaq	32(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_get_bits_count
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.5:
	movq	16(%r13), %rbx
	movl	4(%r13), %eax
	xorl	%r12d, %r12d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	testl	%eax, %eax
	jle	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r13), %ecx
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	4(%r13), %eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	incl	%edx
	cmpl	%eax, %edx
	jge	LBB0_17
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	40(%r13), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=3
	incl	%eax
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=3
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movl	8(%r13), %ecx
	incq	%r15
	cmpl	%ecx, %r15d
	jge	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorl	%eax, %eax
	cmpl	%r12d, (%r14,%r15,4)
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	36(%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_bits_long
	testl	%eax, %eax
	js	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	cmpl	24(%r13), %eax
	jl	LBB0_13
	jmp	LBB0_25
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %ecx
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	cmpl	%ecx, %r12d
	jl	LBB0_6
LBB0_19:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_bits_count
	negl	%eax
	andl	$7, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_skip_bits
	movl	28(%r13), %r12d
	movq	%rbx, %rdi
	callq	_get_bits_count
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_ff_dca_check_crc
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movl	28(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_22
LBB0_25:
	movl	28(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %ecx
LBB0_2:
	xorl	%eax, %eax
	callq	_av_log
LBB0_22:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many NAVI entries (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Invalid NAVI segment size (%d bytes)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid NAVI checksum\n"

	.no_dead_strip	_parse_navi_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_navi_table
_parse_navi_table:                      ; @parse_navi_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldp	w8, w9, [x0]
	mul	w8, w9, w8
	ldr	w9, [x0, #8]
	mul	w8, w8, w9
	cmp	w8, #1025
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x19, #28]
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
	b	LBB0_22
LBB0_2:
	add	x0, x19, #16
	add	x1, x19, #48
	lsl	w2, w8, #2
	bl	_av_fast_malloc
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_24
; %bb.3:
	add	x20, x19, #32
	mov	x0, x20
	bl	_get_bits_count
	mov	x21, x0
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.4:
	mov	w22, #0
	ldr	x23, [x19, #16]
	ldr	w8, [x19, #4]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
	ldr	w9, [x19, #8]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x19, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w24, w24, #1
	cmp	w24, w8
	b.ge	LBB0_17
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, #0
	ldr	x26, [x19, #40]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=3
	mov	w8, #0
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	str	w8, [x23], #4
	ldr	w9, [x19, #8]
	add	x25, x25, #1
	cmp	w25, w9
	b.ge	LBB0_7
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x26, x25, lsl #2]
	cmp	w8, w22
	b.le	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	w1, [x19, #36]
	mov	x0, x20
	bl	_get_bits_long
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	w8, [x19, #24]
	cmp	w0, w8
	b.ge	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=3
	add	w8, w0, #1
	b	LBB0_12
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19]
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	cmp	w22, w9
	b.lt	LBB0_5
LBB0_19:
	mov	x0, x20
	bl	_get_bits_count
	neg	w8, w0
	and	w1, w8, #0x7
	mov	x0, x20
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #16
	bl	_skip_bits
	ldr	w22, [x19, #28]
	mov	x0, x20
	bl	_get_bits_count
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_ff_dca_check_crc
	cbz	x0, LBB0_23
; %bb.20:
	ldr	w0, [x19, #28]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_21:
	ldr	w8, [x19, #28]
Lloh10:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	str	x0, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
LBB0_22:
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_23:
	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
	add	sp, sp, #96
	ret
LBB0_24:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	b	_AVERROR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many NAVI entries (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Invalid NAVI segment size (%d bytes)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid NAVI checksum\n"

	.no_dead_strip	_parse_navi_table
.subsections_via_symbols
