	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbsub_read_2bit_string
_dvbsub_read_2bit_string:               ## @dvbsub_read_2bit_string
	.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
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r15d
	movq	(%rcx), %rsi
	shll	$3, %r14d
	leaq	-60(%rbp), %r12
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_init_get_bits
	movq	%r12, %rdi
	movl	%r14d, %r12d
	callq	_get_bits_count
	cmpl	%r14d, %eax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jge	LBB0_92
## %bb.1:
	cmpl	%ebx, %r15d
	jge	LBB0_92
## %bb.2:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movslq	%r15d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r13
	leaq	-60(%rbp), %rbx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_84 Depth 2
                                        ##     Child Loop BB0_87 Depth 2
                                        ##     Child Loop BB0_90 Depth 2
                                        ##     Child Loop BB0_75 Depth 2
                                        ##     Child Loop BB0_78 Depth 2
                                        ##     Child Loop BB0_81 Depth 2
                                        ##     Child Loop BB0_53 Depth 2
                                        ##     Child Loop BB0_56 Depth 2
                                        ##     Child Loop BB0_59 Depth 2
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	je	LBB0_35
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	%rbx, %rdi
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, %r12d
	leal	3(%r12), %r14d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	jne	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r15d, %r14d
	movl	%r14d, %r15d
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_36
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	jmp	LBB0_33
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movl	(%rcx,%rax,8), %eax
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$-2, %r12d
	jl	LBB0_38
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %r15d
	jge	LBB0_38
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	cltq
	cmpl	$1, %r14d
	adcl	$-1, %r12d
	addl	$3, %r12d
	movl	%r15d, %ecx
	notl	%ecx
	addl	%ebx, %ecx
	cmpl	%r12d, %ecx
	cmovael	%r12d, %ecx
	testl	%r12d, %r12d
	cmovel	%r12d, %ecx
	cmpl	$3, %ecx
	jae	LBB0_40
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_59
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$1, %eax
	je	LBB0_50
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3, %eax
	je	LBB0_42
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %eax
	jne	LBB0_94
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r12d
	leal	12(%r12), %r14d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	je	LBB0_11
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movl	(%rcx,%rax,8), %eax
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$-11, %r12d
	jl	LBB0_38
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %r15d
	jge	LBB0_38
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	cltq
	cmpl	$1, %r14d
	adcl	$-1, %r12d
	addl	$12, %r12d
	movl	%r15d, %ecx
	notl	%ecx
	addl	%ebx, %ecx
	cmpl	%r12d, %ecx
	cmovael	%r12d, %ecx
	testl	%r12d, %r12d
	cmovel	%r12d, %ecx
	cmpl	$3, %ecx
	jae	LBB0_72
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_90
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	cltq
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%r13)
	addq	$8, %r13
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_get_bits_count
	cmpl	%r12d, %eax
	jge	LBB0_92
## %bb.37:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_3
	jmp	LBB0_92
LBB0_40:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movq	%rcx, %r8
	andq	$-4, %r8
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$7, %esi
	cmpq	$28, %rdx
	jae	LBB0_52
## %bb.41:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_54
LBB0_42:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, %r12d
	leal	29(%r12), %r14d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	je	LBB0_11
LBB0_44:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movl	(%rcx,%rax,8), %eax
LBB0_46:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$-28, %r12d
	jl	LBB0_38
## %bb.47:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %r15d
	jge	LBB0_38
## %bb.48:                              ##   in Loop: Header=BB0_3 Depth=1
	cltq
	cmpl	$1, %r14d
	adcl	$-1, %r12d
	addl	$29, %r12d
	movl	%r15d, %ecx
	notl	%ecx
	addl	%ebx, %ecx
	cmpl	%r12d, %ecx
	cmovael	%r12d, %ecx
	testl	%r12d, %r12d
	cmovel	%r12d, %ecx
	cmpl	$3, %ecx
	jae	LBB0_70
## %bb.49:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_81
LBB0_38:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_36
LBB0_50:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_61
## %bb.51:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	jmp	LBB0_62
LBB0_52:                                ##   in Loop: Header=BB0_3 Depth=1
	andq	$-8, %rdi
	xorl	%edx, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_53:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%r13,%rdx,8)
	movdqu	%xmm0, 16(%r13,%rdx,8)
	movdqu	%xmm0, 32(%r13,%rdx,8)
	movdqu	%xmm0, 48(%r13,%rdx,8)
	movdqu	%xmm0, 64(%r13,%rdx,8)
	movdqu	%xmm0, 80(%r13,%rdx,8)
	movdqu	%xmm0, 96(%r13,%rdx,8)
	movdqu	%xmm0, 112(%r13,%rdx,8)
	movdqu	%xmm0, 128(%r13,%rdx,8)
	movdqu	%xmm0, 144(%r13,%rdx,8)
	movdqu	%xmm0, 160(%r13,%rdx,8)
	movdqu	%xmm0, 176(%r13,%rdx,8)
	movdqu	%xmm0, 192(%r13,%rdx,8)
	movdqu	%xmm0, 208(%r13,%rdx,8)
	movdqu	%xmm0, 224(%r13,%rdx,8)
	movdqu	%xmm0, 240(%r13,%rdx,8)
	addq	$32, %rdx
	addq	$-8, %rdi
	jne	LBB0_53
LBB0_54:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rsi, %rsi
	je	LBB0_57
## %bb.55:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(,%rdx,8), %rdx
	addq	%r13, %rdx
	shlq	$5, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_56:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rdx,%rdi)
	movdqu	%xmm0, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_56
LBB0_57:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r8d, %r15d
	leaq	(%r13,%r8,8), %r13
	cmpq	%r8, %rcx
	je	LBB0_36
## %bb.58:                              ##   in Loop: Header=BB0_3 Depth=1
	subl	%r8d, %r14d
	.p2align	4, 0x90
LBB0_59:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, (%r13)
	addq	$8, %r13
	incl	%r15d
	cmpl	$2, %r14d
	jb	LBB0_36
## %bb.60:                              ##   in Loop: Header=BB0_59 Depth=2
	decl	%r14d
	cmpl	%ebx, %r15d
	jl	LBB0_59
	jmp	LBB0_36
LBB0_61:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_62:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r15d
	jge	LBB0_36
## %bb.63:                              ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movq	%rax, (%r13)
	leal	1(%r15), %ecx
	cmpl	%edx, %ecx
	jge	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 8(%r13)
	addq	$16, %r13
	addl	$2, %r15d
	jmp	LBB0_36
LBB0_65:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r13
	movl	%ecx, %r15d
	jmp	LBB0_36
LBB0_70:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movq	%rcx, %r8
	andq	$-4, %r8
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$7, %esi
	cmpq	$28, %rdx
	jae	LBB0_74
## %bb.71:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_76
LBB0_72:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movq	%rcx, %r8
	andq	$-4, %r8
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$7, %esi
	cmpq	$28, %rdx
	jae	LBB0_83
## %bb.73:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_85
LBB0_74:                                ##   in Loop: Header=BB0_3 Depth=1
	andq	$-8, %rdi
	xorl	%edx, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_75:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%r13,%rdx,8)
	movdqu	%xmm0, 16(%r13,%rdx,8)
	movdqu	%xmm0, 32(%r13,%rdx,8)
	movdqu	%xmm0, 48(%r13,%rdx,8)
	movdqu	%xmm0, 64(%r13,%rdx,8)
	movdqu	%xmm0, 80(%r13,%rdx,8)
	movdqu	%xmm0, 96(%r13,%rdx,8)
	movdqu	%xmm0, 112(%r13,%rdx,8)
	movdqu	%xmm0, 128(%r13,%rdx,8)
	movdqu	%xmm0, 144(%r13,%rdx,8)
	movdqu	%xmm0, 160(%r13,%rdx,8)
	movdqu	%xmm0, 176(%r13,%rdx,8)
	movdqu	%xmm0, 192(%r13,%rdx,8)
	movdqu	%xmm0, 208(%r13,%rdx,8)
	movdqu	%xmm0, 224(%r13,%rdx,8)
	movdqu	%xmm0, 240(%r13,%rdx,8)
	addq	$32, %rdx
	addq	$-8, %rdi
	jne	LBB0_75
LBB0_76:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rsi, %rsi
	je	LBB0_79
## %bb.77:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(,%rdx,8), %rdx
	addq	%r13, %rdx
	shlq	$5, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_78:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rdx,%rdi)
	movdqu	%xmm0, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_78
LBB0_79:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r8d, %r15d
	leaq	(%r13,%r8,8), %r13
	cmpq	%r8, %rcx
	je	LBB0_36
## %bb.80:                              ##   in Loop: Header=BB0_3 Depth=1
	subl	%r8d, %r14d
	.p2align	4, 0x90
LBB0_81:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, (%r13)
	addq	$8, %r13
	incl	%r15d
	cmpl	$2, %r14d
	jb	LBB0_36
## %bb.82:                              ##   in Loop: Header=BB0_81 Depth=2
	decl	%r14d
	cmpl	%ebx, %r15d
	jl	LBB0_81
	jmp	LBB0_36
LBB0_83:                                ##   in Loop: Header=BB0_3 Depth=1
	andq	$-8, %rdi
	xorl	%edx, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_84:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%r13,%rdx,8)
	movdqu	%xmm0, 16(%r13,%rdx,8)
	movdqu	%xmm0, 32(%r13,%rdx,8)
	movdqu	%xmm0, 48(%r13,%rdx,8)
	movdqu	%xmm0, 64(%r13,%rdx,8)
	movdqu	%xmm0, 80(%r13,%rdx,8)
	movdqu	%xmm0, 96(%r13,%rdx,8)
	movdqu	%xmm0, 112(%r13,%rdx,8)
	movdqu	%xmm0, 128(%r13,%rdx,8)
	movdqu	%xmm0, 144(%r13,%rdx,8)
	movdqu	%xmm0, 160(%r13,%rdx,8)
	movdqu	%xmm0, 176(%r13,%rdx,8)
	movdqu	%xmm0, 192(%r13,%rdx,8)
	movdqu	%xmm0, 208(%r13,%rdx,8)
	movdqu	%xmm0, 224(%r13,%rdx,8)
	movdqu	%xmm0, 240(%r13,%rdx,8)
	addq	$32, %rdx
	addq	$-8, %rdi
	jne	LBB0_84
LBB0_85:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rsi, %rsi
	je	LBB0_88
## %bb.86:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(,%rdx,8), %rdx
	addq	%r13, %rdx
	shlq	$5, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_87:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rdx,%rdi)
	movdqu	%xmm0, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_87
LBB0_88:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r8d, %r15d
	leaq	(%r13,%r8,8), %r13
	cmpq	%r8, %rcx
	je	LBB0_36
## %bb.89:                              ##   in Loop: Header=BB0_3 Depth=1
	subl	%r8d, %r14d
	.p2align	4, 0x90
LBB0_90:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, (%r13)
	addq	$8, %r13
	incl	%r15d
	cmpl	$2, %r14d
	jb	LBB0_36
## %bb.91:                              ##   in Loop: Header=BB0_90 Depth=2
	decl	%r14d
	cmpl	%ebx, %r15d
	jl	LBB0_90
	jmp	LBB0_36
LBB0_92:
	leaq	-60(%rbp), %rdi
	movl	$6, %esi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_94
## %bb.93:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
LBB0_94:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	-60(%rbp), %rdi
	callq	_get_bits_count
	addl	$7, %eax
	sarl	$3, %eax
	cltq
	shlq	$3, %rax
	addq	%rax, (%r14)
	movl	%r15d, %eax
	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	"line overflow\n"

	.no_dead_strip	_dvbsub_read_2bit_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbsub_read_2bit_string
_dvbsub_read_2bit_string:               ; @dvbsub_read_2bit_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x7
	mov	x22, x6
	mov	x23, x5
	mov	x20, x3
	mov	x24, x2
	mov	x26, x1
	mov	x21, x0
	ldr	x1, [x3]
	lsl	w25, w4, #3
	add	x0, sp, #12
	mov	x2, x25
	bl	_init_get_bits
	add	x0, sp, #12
	bl	_get_bits_count
	cmp	w0, w25
	ccmp	w19, w24, #0, lt
	b.lt	LBB0_4
LBB0_1:
	add	x0, sp, #12
	mov	w1, #6
	bl	_get_bits
	cbz	w0, LBB0_3
; %bb.2:
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
	mov	x0, x21
	bl	_av_log
LBB0_3:
	add	x0, sp, #12
	bl	_get_bits_count
	add	w8, w0, #7
	asr	w8, w8, #3
	ldr	x9, [x20]
	add	x8, x9, w8, sxtw #3
	str	x8, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	add	x27, x26, w19, sxtw #3
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_61 Depth 2
                                        ;     Child Loop BB0_63 Depth 2
                                        ;     Child Loop BB0_66 Depth 2
                                        ;     Child Loop BB0_68 Depth 2
                                        ;     Child Loop BB0_42 Depth 2
                                        ;     Child Loop BB0_44 Depth 2
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #1
	b.eq	LBB0_37
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w0
	cbz	x22, LBB0_36
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, x8, lsl #3]
	b	LBB0_36
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_get_bits1
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	mov	w1, #3
	bl	_get_bits
	mov	x26, x0
	add	w28, w0, #3
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w23, #1
	b.ne	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #1
	b.ne	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w19, w28, w19
	b	LBB0_38
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_get_bits1
	cbz	w0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_34
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	b	LBB0_35
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, w0, sxtw #3]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w26, #2
	b.lt	LBB0_38
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, w24
	b.ge	LBB0_38
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w0
	cmp	w28, #0
	cset	w9, ne
	sub	w9, w26, w9
	add	w9, w9, #3
	mvn	w10, w19
	add	w10, w10, w24
	cmp	w10, w9
	csel	w10, w10, w9, lo
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	cmp	w9, #7
	b.hs	LBB0_41
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
	b	LBB0_44
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #1
	b.eq	LBB0_54
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #3
	b.eq	LBB0_46
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	mov	w1, #4
	bl	_get_bits
	mov	x26, x0
	add	w28, w0, #12
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w23, #1
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #1
	b.eq	LBB0_13
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, w0, sxtw #3]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_30:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w26, #11
	b.lt	LBB0_38
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, w24
	b.ge	LBB0_38
; %bb.32:                               ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w0
	cmp	w28, #0
	cset	w9, ne
	sub	w9, w26, w9
	add	w9, w9, #12
	mvn	w10, w19
	add	w10, w10, w24
	cmp	w10, w9
	csel	w10, w10, w9, lo
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	cmp	w9, #7
	b.hs	LBB0_60
; %bb.33:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
	b	LBB0_63
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
LBB0_35:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w8
LBB0_36:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x27], #8
LBB0_37:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w19, w19, #1
LBB0_38:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
LBB0_39:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_get_bits_count
	cmp	w0, w25
	b.ge	LBB0_1
; %bb.40:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x26
	cmp	w19, w24
	b.lt	LBB0_5
	b	LBB0_1
LBB0_41:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	and	x10, x9, #0x1fffffff8
	add	w19, w19, w10
	sub	w28, w28, w10
	add	x26, x27, x10, lsl #3
	dup.2d	v0, x8
	add	x11, x27, #32
	mov	x12, x10
LBB0_42:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_42
; %bb.43:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, x10
	b.eq	LBB0_39
LBB0_44:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x8, [x26], #8
	add	w19, w19, #1
	cmp	w28, #2
	b.lo	LBB0_39
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=2
	sub	w28, w28, #1
	cmp	w19, w24
	b.lt	LBB0_44
	b	LBB0_39
LBB0_46:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	mov	w1, #8
	bl	_get_bits
	mov	x26, x0
	add	w28, w0, #29
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w23, #1
	b.ne	LBB0_48
; %bb.47:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #1
	b.eq	LBB0_13
LBB0_48:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, w0, sxtw #3]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_50:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w26, #28
	b.lt	LBB0_38
; %bb.51:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, w24
	b.ge	LBB0_38
; %bb.52:                               ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w0
	cmp	w28, #0
	cset	w9, ne
	sub	w9, w26, w9
	add	w9, w9, #29
	mvn	w10, w19
	add	w10, w10, w24
	cmp	w10, w9
	csel	w10, w10, w9, lo
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	cmp	w9, #7
	b.hs	LBB0_65
; %bb.53:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
	b	LBB0_68
LBB0_54:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_56
; %bb.55:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	cmp	w19, w24
	b.ge	LBB0_38
	b	LBB0_57
LBB0_56:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	cmp	w19, w24
	b.ge	LBB0_38
LBB0_57:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w8
	mov	x26, x27
	str	x8, [x26], #8
	add	w9, w19, #1
	cmp	w9, w24
	b.ge	LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x27, #16
	str	x8, [x27, #8]
	add	w19, w19, #2
	b	LBB0_39
LBB0_59:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x9
	b	LBB0_39
LBB0_60:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	and	x10, x9, #0x1fffffff8
	add	w19, w19, w10
	sub	w28, w28, w10
	add	x26, x27, x10, lsl #3
	dup.2d	v0, x8
	add	x11, x27, #32
	mov	x12, x10
LBB0_61:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_61
; %bb.62:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, x10
	b.eq	LBB0_39
LBB0_63:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x8, [x26], #8
	add	w19, w19, #1
	cmp	w28, #2
	b.lo	LBB0_39
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=2
	sub	w28, w28, #1
	cmp	w19, w24
	b.lt	LBB0_63
	b	LBB0_39
LBB0_65:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	and	x10, x9, #0x1fffffff8
	add	w19, w19, w10
	sub	w28, w28, w10
	add	x26, x27, x10, lsl #3
	dup.2d	v0, x8
	add	x11, x27, #32
	mov	x12, x10
LBB0_66:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_66
; %bb.67:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, x10
	b.eq	LBB0_39
LBB0_68:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x8, [x26], #8
	add	w19, w19, #1
	cmp	w28, #2
	b.lo	LBB0_39
; %bb.69:                               ;   in Loop: Header=BB0_68 Depth=2
	sub	w28, w28, #1
	cmp	w19, w24
	b.lt	LBB0_68
	b	LBB0_39
	.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	"line overflow\n"

	.no_dead_strip	_dvbsub_read_2bit_string
.subsections_via_symbols
