	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_dialogue
_read_dialogue:                         ## @read_dialogue
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	subq	$8, %rsp
	leaq	-44(%rbp), %rax
	leaq	-48(%rbp), %r10
	leaq	-52(%rbp), %r11
	leaq	-56(%rbp), %r12
	leaq	-60(%rbp), %r13
	leaq	L_.str(%rip), %rsi
	leaq	-76(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r14, %rdi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	pushq	%r12
	pushq	%r13
	callq	_sscanf
	addq	$48, %rsp
	movl	%eax, %ecx
	movl	$-1, %eax
	cmpl	$8, %ecx
	jl	LBB0_7
## %bb.1:
	cmpl	$0, -44(%rbp)
	jle	LBB0_7
## %bb.2:
	leaq	40(%r14), %rdi
	callq	_atoi
	imull	$3600, -60(%rbp), %ecx          ## imm = 0xE10
	imull	$60, -56(%rbp), %edx
	addl	%ecx, %edx
	addl	-52(%rbp), %edx
	imull	$100, %edx, %ecx
	addl	-48(%rbp), %ecx
	imull	$3600, -76(%rbp), %edx          ## imm = 0xE10
	imull	$60, -72(%rbp), %esi
	addl	%edx, %esi
	addl	-68(%rbp), %esi
	imull	$100, %esi, %edx
	addl	-64(%rbp), %edx
	movl	%eax, %r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	subl	%edx, %ecx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_av_bprint_clear
	movl	(%r15), %edx
	leal	1(%rdx), %eax
	movl	%eax, (%r15)
	movslq	-44(%rbp), %rax
	leaq	(%r14,%rax,4), %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	callq	_av_bprintf
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$10, (%rcx,%rax)
	movq	%rax, %rdx
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%rbx)
	movb	$0, (%rcx,%rdx)
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rdx
	leaq	-1(%rdx), %rax
	movq	8(%rbx), %rcx
	testq	%rdx, %rdx
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edx
	cmpb	$13, (%rcx,%rdx)
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dialogue: %*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d,%n"

L_.str.1:                               ## @.str.1
	.asciz	"%u,%d,%s"

	.no_dead_strip	_read_dialogue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_dialogue
_read_dialogue:                         ; @read_dialogue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	stur	wzr, [x29, #-52]
	sub	x8, x29, #52
	str	x8, [sp, #16]
	add	x8, sp, #28
	add	x9, sp, #32
	stp	x9, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #56
	add	x3, sp, #52
	add	x4, sp, #48
	add	x5, sp, #44
	add	x6, sp, #40
	add	x7, sp, #36
	mov	x0, x20
	bl	_sscanf
	mov	x8, x0
	mov	w0, #-1
	cmp	w8, #8
	b.lt	LBB0_8
; %bb.1:
	ldur	w8, [x29, #-52]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	add	x0, x20, #40
	bl	_atoi
	mov	x24, x0
	ldp	w10, w8, [sp, #36]
	mov	w9, #3600
	mul	w8, w8, w9
	mov	w11, #60
	madd	w8, w10, w11, w8
	ldp	w12, w10, [sp, #28]
	add	w8, w8, w10
	mov	w10, #100
	madd	w8, w8, w10, w12
	ldr	w12, [sp, #56]
	mul	w9, w12, w9
	ldr	w12, [sp, #52]
	madd	w9, w12, w11, w9
	ldr	w11, [sp, #48]
	add	w9, w9, w11
	ldr	w11, [sp, #44]
	madd	w9, w9, w10, w11
	str	w9, [x23]
	sub	w8, w8, w9
	str	w8, [x22]
	mov	x0, x19
	bl	_av_bprint_clear
	ldr	w2, [x21]
	add	w8, w2, #1
	str	w8, [x21]
	ldursw	x8, [x29, #-52]
	add	x4, x20, x8, lsl #2
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	bl	_av_bprintf
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w11, [x8, x9]
	mov	x10, x9
	cmp	w11, #10
	b.ne	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w9, [x19]
	strb	wzr, [x8, x10]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x19]
	ldr	x8, [x19, #8]
	sub	x9, x10, #1
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w10, w9
	ldrb	w11, [x8, x10]
	cmp	w11, #13
	b.ne	LBB0_3
	b	LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dialogue: %*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d,%n"

l_.str.1:                               ; @.str.1
	.asciz	"%u,%d,%s"

	.no_dead_strip	_read_dialogue
.subsections_via_symbols
