	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_dialogue
_insert_dialogue:                       ## @insert_dialogue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_4
## %bb.1:
	movq	(%rsi), %rcx
	cmpq	%rcx, (%r9)
	jle	LBB0_6
## %bb.2:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_6:
	movq	%r9, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rcx, (%rax)
	jle	LBB0_8
LBB0_3:
	testq	%rdx, %rdx
	jne	LBB0_18
LBB0_4:
	movq	16(%rdi), %r8
	cmpq	%r9, %r8
	je	LBB0_5
## %bb.10:
	movq	(%rsi), %rcx
	cmpq	%rcx, (%r8)
	jle	LBB0_14
## %bb.11:
	xorl	%edx, %edx
	movq	%r8, %rax
	jmp	LBB0_12
LBB0_5:
	movq	%r9, %rax
	jmp	LBB0_13
LBB0_14:
	movq	%r8, %rax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	movq	8(%rax), %rax
	cmpq	%r9, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%rcx, (%rax)
	jle	LBB0_16
LBB0_12:
	testq	%rdx, %rdx
	jne	LBB0_18
LBB0_13:
	movq	%r8, 16(%rsi)
	movq	%rsi, 16(%rdi)
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_17:
	movq	%r9, %rax
LBB0_18:
	movq	%rsi, 8(%rdx)
	movq	%rdx, 16(%rsi)
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movq	%rsi, 16(%rax)
	movq	%rax, 8(%rsi)
LBB0_21:
	incl	8(%rdi)
	movq	%rsi, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_insert_dialogue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_dialogue
_insert_dialogue:                       ; @insert_dialogue
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	cbz	x9, LBB0_7
; %bb.1:
	ldr	x11, [x1]
	ldr	x8, [x9]
	cmp	x8, x11
	b.le	LBB0_3
; %bb.2:
	mov	x10, #0
	mov	x8, #0
	b	LBB0_6
LBB0_3:
	mov	x8, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x8]
	cmp	x12, x11
	b.le	LBB0_4
LBB0_6:
	cbnz	x10, LBB0_17
LBB0_7:
	ldr	x11, [x0, #16]
	cmp	x11, x9
	b.eq	LBB0_10
; %bb.8:
	ldr	x12, [x1]
	ldr	x8, [x11]
	cmp	x8, x12
	b.le	LBB0_11
; %bb.9:
	mov	x10, #0
	mov	x8, x11
	b	LBB0_14
LBB0_10:
	mov	x8, x9
	b	LBB0_15
LBB0_11:
	mov	x8, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #8]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x13, [x8]
	cmp	x13, x12
	b.le	LBB0_12
LBB0_14:
	cbnz	x10, LBB0_17
LBB0_15:
	str	x11, [x1, #16]
	str	x1, [x0, #16]
	cbnz	x8, LBB0_18
	b	LBB0_19
LBB0_16:
	mov	x8, x9
LBB0_17:
	str	x1, [x10, #8]
	str	x10, [x1, #16]
	cbz	x8, LBB0_19
LBB0_18:
	str	x1, [x8, #16]
	str	x8, [x1, #8]
LBB0_19:
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
	str	x1, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_insert_dialogue
.subsections_via_symbols
