	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_map
_read_map:                              ## @read_map
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$1, (%rsi)
	movl	$0, (%rdx)
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_1
## %bb.9:
	movq	_DST_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	cmpl	$2, %r13d
	jl	LBB0_10
## %bb.2:
	movl	%r13d, %r13d
	movl	(%rbx), %edi
	movl	$1, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	ja	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%r12, %rdi
	callq	_get_bits
	movl	%eax, (%r15,%r14,4)
	movl	(%rbx), %edi
	cmpl	%edi, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	movl	%eax, (%rbx)
	movl	%eax, %edi
	movq	_DST_MAX_ELEMENTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_7
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_10
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DST_MAX_CHANNELS,4,2           ## @DST_MAX_CHANNELS
	.comm	_DST_MAX_ELEMENTS,4,2           ## @DST_MAX_ELEMENTS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_read_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_map
_read_map:                              ; @read_map
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w8, #1
	str	w8, [x1]
	str	wzr, [x2]
	bl	_get_bits1
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DST_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DST_MAX_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	b	LBB0_9
LBB0_2:
	cmp	w22, #2
	b.lt	LBB0_9
; %bb.3:
	mov	w8, w22
	ldr	w0, [x19]
	add	x21, x21, #4
	sub	x22, x8, #1
Lloh3:
	adrp	x24, _DST_MAX_ELEMENTS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DST_MAX_ELEMENTS@GOTPAGEOFF]
Lloh5:
	adrp	x23, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	b.hi	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #4
	subs	x22, x22, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_av_log2
	add	w1, w0, #1
	mov	x0, x20
	bl	_get_bits
	mov	x8, x0
	str	w0, [x21]
	ldr	w0, [x19]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w0, w8, #1
	str	w0, [x19]
	ldr	w8, [x24]
	cmp	w0, w8
	b.lo	LBB0_5
LBB0_8:
	ldr	w0, [x23]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DST_MAX_CHANNELS,4,2           ; @DST_MAX_CHANNELS
	.comm	_DST_MAX_ELEMENTS,4,2           ; @DST_MAX_ELEMENTS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_read_map
.subsections_via_symbols
