	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbsub_read_8bit_string
_dvbsub_read_8bit_string:               ## @dvbsub_read_8bit_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r12d
	movq	(%rcx), %rbx
	testl	%r8d, %r8d
	jle	LBB0_34
## %bb.1:
	cmpl	%edx, %r12d
	jge	LBB0_34
## %bb.2:
	movq	16(%rbp), %r10
	movslq	%r8d, %rax
	leaq	(%rbx,%rax,8), %r8
	movslq	%r12d, %rax
	leaq	(%rsi,%rax,8), %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
	leaq	8(%rbx), %rax
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %r9d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	je	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cltq
	testq	%r10, %r10
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r10,%rax,8), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rsi)
	addq	$8, %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx), %rbx
	cmpq	%r8, %rbx
	jae	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edx, %r12d
	jl	LBB0_3
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%rbx), %rax
	movq	%rax, (%rcx)
	movl	8(%rbx), %edi
	movl	%edi, %eax
	andl	$127, %eax
	testb	$-128, %dil
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_36
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	24(%rbx), %rdi
	movq	%rdi, (%rcx)
	movl	16(%rbx), %ebx
	cmpl	$1, %r9d
	jne	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%r12d, %eax
	movl	%eax, %r12d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r10, %r10
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rdi
	movl	(%r10,%rdi,8), %ebx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_32
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edx, %r12d
	jge	LBB0_32
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %r11
	leal	-1(%rax), %edi
	movl	%r12d, %r14d
	notl	%r14d
	addl	%edx, %r14d
	cmpl	%edi, %r14d
	cmovael	%edi, %r14d
	testl	%edi, %edi
	cmovel	%edi, %r14d
	testl	%r14d, %r14d
	je	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	%r14, %r15
	andq	$-2, %r15
	movq	%r11, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-2(%r15), %rdi
	movq	%rdi, %rbx
	shrq	%rbx
	incq	%rbx
	movl	%ebx, %r13d
	andl	$7, %r13d
	cmpq	$14, %rdi
	jae	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r10d, %r10d
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	andq	$-8, %rbx
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%rsi,%r10,8)
	movdqu	%xmm0, 16(%rsi,%r10,8)
	movdqu	%xmm0, 32(%rsi,%r10,8)
	movdqu	%xmm0, 48(%rsi,%r10,8)
	movdqu	%xmm0, 64(%rsi,%r10,8)
	movdqu	%xmm0, 80(%rsi,%r10,8)
	movdqu	%xmm0, 96(%rsi,%r10,8)
	movdqu	%xmm0, 112(%rsi,%r10,8)
	addq	$16, %r10
	addq	$-8, %rbx
	jne	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rsi,%r10,8), %rbx
	shlq	$4, %r13
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%rbx,%rdi)
	addq	$16, %rdi
	cmpq	%rdi, %r13
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r15d, %r12d
	leaq	(%rsi,%r15,8), %rsi
	cmpq	%r15, %r14
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbp), %r10
	jmp	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	subl	%r15d, %eax
	movq	16(%rbp), %r10
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r11, (%rsi)
	addq	$8, %rsi
	incl	%r12d
	cmpl	$2, %eax
	jb	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	decl	%eax
	cmpl	%edx, %r12d
	jl	LBB0_30
	jmp	LBB0_32
LBB0_34:
	leaq	8(%rbx), %rax
	movq	%rax, (%rcx)
	cmpq	$0, (%rbx)
	je	LBB0_36
## %bb.35:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
LBB0_36:
	movl	%r12d, %eax
	addq	$8, %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_8bit_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_8bit_string
_dvbsub_read_8bit_string:               ; @dvbsub_read_8bit_string
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x7
	ldr	x12, [x3]
	cmp	w4, #1
	b.lt	LBB0_29
; %bb.1:
	cmp	w19, w2
	b.ge	LBB0_29
; %bb.2:
	add	x8, x12, w4, sxtw #3
	add	x9, x1, w19, sxtw #3
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x10, [x9], #8
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w19, w19, #1
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x11, x9
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x3]
	cmp	x12, x8
	ccmp	w19, w2, #0, lo
	mov	x9, x11
	b.ge	LBB0_29
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
	add	x10, x12, #8
	str	x10, [x3]
	ldr	x10, [x12]
	cbz	w10, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w5, #1
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w10, #1
	b.eq	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x10, w10
	cbz	x6, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x6, x10, lsl #3]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x12, #16
	str	x10, [x3]
	ldr	w11, [x12, #8]
	and	w10, w11, #0x7f
	tbnz	w11, #7, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	w10, LBB0_31
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w11, #0
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x12, #24
	str	x11, [x3]
	ldr	w11, [x12, #16]
	cmp	w5, #1
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w11, #1
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w19, w10, w19
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x6, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x6, w11, sxtw #3]
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w10, LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w19, w2
	b.ge	LBB0_5
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x12, w11
	sub	w11, w10, #1
	mvn	w13, w19
	add	w13, w13, w2
	cmp	w13, w11
	csel	w13, w13, w11, lo
	cmp	w11, #0
	csel	w11, wzr, w13, eq
	cbz	w11, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x13, x11, #1
	and	x14, x13, #0x1fffffffe
	add	w19, w19, w14
	sub	w10, w10, w14
	add	x11, x9, x14, lsl #3
	dup.2d	v0, x12
	mov	x15, x14
LBB0_24:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	q0, [x9], #16
	subs	x15, x15, #2
	b.ne	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x13, x14
	b.ne	LBB0_27
	b	LBB0_6
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x11, x9
LBB0_27:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x12, [x11], #8
	add	w19, w19, #1
	cmp	w10, #2
	b.lo	LBB0_6
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	sub	w10, w10, #1
	cmp	w19, w2
	b.lt	LBB0_27
	b	LBB0_6
LBB0_29:
	add	x8, x12, #8
	str	x8, [x3]
	ldr	x8, [x12]
	cbz	x8, LBB0_31
; %bb.30:
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
LBB0_31:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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_8bit_string
.subsections_via_symbols
