	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run                            ## -- Begin function run
	.p2align	4, 0x90
_run:                                   ## @run
	.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
	movq	_left_files@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_27
## %bb.1:
	movq	_engineN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_fd@GOTPCREL(%rip), %rsi
	movq	_f_buff_r@GOTPCREL(%rip), %r10
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_27
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	movq	_engineF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rax
	cmpl	$0, (%rax,%rbx,4)
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_f_buff_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movq	(%r10), %rcx
	subl	(%rcx,%rbx,4), %eax
	cmpl	$7, %eax
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%ebx, %edi
	callq	_load
	movq	_f_buff_r@GOTPCREL(%rip), %r10
	movq	_fd@GOTPCREL(%rip), %rsi
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rsi), %rax
	movl	$-1, (%rax,%rbx,4)
	decq	(%r15)
	movq	_f_buff_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movq	(%r10), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx,%rbx,4), %eax
	sete	%dil
	callq	_assert
	movq	_f_buff_r@GOTPCREL(%rip), %r10
	movq	_fd@GOTPCREL(%rip), %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_engineF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$2147483637, %r11d              ## imm = 0x7FFFFFF5
	cmpl	%eax, %ecx
	jge	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rdx
	leaq	(,%rdx,4), %r14
	movl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,8), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$2147483637, %r11d              ## imm = 0x7FFFFFF5
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	movq	_f_buff_r@GOTPCREL(%rip), %r10
	movq	_fd@GOTPCREL(%rip), %rsi
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	cmpl	%r11d, %r13d
	cmovll	%r13d, %r11d
	movq	_engineN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=2
	movslq	%eax, %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	%r12, %rdx
	incq	%rdx
	incq	%r12
	cmpq	%rcx, %rdx
	jge	LBB0_20
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rcx
	addq	%r14, %rcx
	cmpl	$0, (%rcx,%r12,4)
	js	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_f_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	(%rax,%r12,8), %rax
	movq	(%r10), %rcx
	addq	%r14, %rcx
	movslq	(%rcx,%r12,4), %rcx
	movl	(%rax,%rcx), %r13d
	movl	4(%rax,%rcx), %ebx
	movq	_f_buff_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r14, %rax
	movl	(%rax,%r12,4), %eax
	subl	%ecx, %eax
	leal	8(%rbx), %r15d
	cmpl	%r15d, %eax
	jge	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	callq	_load
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	movq	_f_buff_r@GOTPCREL(%rip), %r10
	movq	_fd@GOTPCREL(%rip), %rsi
	movq	_f_buff_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r14, %rcx
	movl	(%rcx,%r12,4), %r8d
	movq	(%r10), %rcx
	addq	%r14, %rcx
	movl	(%rcx,%r12,4), %r9d
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%r8d, %eax
	subl	%r9d, %eax
	cmpl	%r15d, %eax
	jge	LBB0_18
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_engineF@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_left_files@GOTPCREL(%rip), %r15
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %ecx
	jge	LBB0_2
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rbx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=2
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_2
LBB0_23:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	js	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	_f_buff@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movq	(%r10), %rcx
	movslq	(%rcx,%rbx,4), %rcx
	cmpl	%r11d, (%rdi,%rcx)
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	addq	%rcx, %rdi
	movl	4(%rdi), %r14d
	addl	$8, %r14d
	movl	%r14d, %esi
	movl	%r11d, %r12d
	callq	_my_write
	movl	%r12d, %r11d
	movq	_f_buff_r@GOTPCREL(%rip), %r10
	movq	_fd@GOTPCREL(%rip), %rsi
	movq	(%r10), %rax
	addl	%r14d, (%rax,%rbx,4)
	movl	(%r13), %eax
	jmp	LBB0_26
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_left_files,8,3                 ## @left_files
	.comm	_engineF,4,2                    ## @engineF
	.comm	_engineN,4,2                    ## @engineN
	.comm	_fd,8,3                         ## @fd
	.comm	_f_buff_size,8,3                ## @f_buff_size
	.comm	_f_buff_r,8,3                   ## @f_buff_r
	.comm	_f_buff,8,3                     ## @f_buff
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dump %d is broken. It contains event of size %d. f_buff_size = %d, f_buff_r = %d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run                            ; -- Begin function run
	.p2align	2
_run:                                   ; @run
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x21, _left_files@GOTPAGE
Lloh1:
	ldr	x21, [x21, _left_files@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_27
; %bb.1:
Lloh2:
	adrp	x23, _engineN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _engineN@GOTPAGEOFF]
Lloh4:
	adrp	x25, _fd@GOTPAGE
Lloh5:
	ldr	x25, [x25, _fd@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh6:
	adrp	x27, _f_buff_r@GOTPAGE
Lloh7:
	ldr	x27, [x27, _f_buff_r@GOTPAGEOFF]
Lloh8:
	adrp	x22, _f_buff@GOTPAGE
Lloh9:
	ldr	x22, [x22, _f_buff@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x21, _left_files@GOTPAGE
Lloh11:
	ldr	x21, [x21, _left_files@GOTPAGEOFF]
	ldr	x9, [x21]
	cbz	x9, LBB0_27
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
Lloh12:
	adrp	x9, _engineF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _engineF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ge	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x20, w9
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x20, x20, #1
	ldrsw	x8, [x23]
	cmp	x20, x8
	b.ge	LBB0_10
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	ldr	w8, [x8, x20, lsl #2]
	tbnz	w8, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh15:
	adrp	x8, _f_buff_size@GOTPAGE
Lloh16:
	ldr	x8, [x8, _f_buff_size@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	lsl	x19, x20, #2
	ldr	w8, [x8, x19]
	ldr	x9, [x27]
	ldr	w9, [x9, x19]
	sub	w8, w8, w9
	cmp	w8, #7
	b.gt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_load
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x25]
	mov	w9, #-1
	str	w9, [x8, x19]
	ldr	x8, [x21]
	sub	x8, x8, #1
Lloh18:
	adrp	x9, _f_buff_size@GOTPAGE
Lloh19:
	ldr	x9, [x9, _f_buff_size@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	w9, [x9, x19]
	str	x8, [x21]
	ldr	x8, [x27]
	ldr	w8, [x8, x19]
	cmp	w9, w8
	cset	w0, eq
	bl	_assert
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x9, _engineF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _engineF@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, w8
	b.ge	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x20, w9
	mov	w24, #65525
	movk	w24, #32767, lsl #16
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=2
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_fprintf
	mov	w0, #0
	bl	_assert
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	cmp	w19, w24
	csel	w24, w19, w24, lt
	ldr	w8, [x23]
	mov	x22, x26
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_21
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	ldr	w9, [x9, x20, lsl #2]
	tbnz	w9, #31, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x26, x22
	ldr	x8, [x22]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x9, [x27]
	lsl	x22, x20, #2
	ldrsw	x9, [x9, x22]
	add	x8, x8, x9
	ldp	w19, w21, [x8]
Lloh29:
	adrp	x8, _f_buff_size@GOTPAGE
Lloh30:
	ldr	x8, [x8, _f_buff_size@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w8, [x8, x22]
	add	w28, w21, #8
	sub	w8, w8, w9
	cmp	w8, w28
	b.ge	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x20
	bl	_load
Lloh32:
	adrp	x8, _f_buff_size@GOTPAGE
Lloh33:
	ldr	x8, [x8, _f_buff_size@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	w4, [x8, x22]
	ldr	x8, [x27]
	ldr	w5, [x8, x22]
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	sub	w8, w4, w5
	cmp	w8, w28
	b.ge	LBB0_14
	b	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #65525
	movk	w24, #32767, lsl #16
	cmp	w9, w8
	b.ge	LBB0_2
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh35:
	adrp	x9, _engineF@GOTPAGE
Lloh36:
	ldr	x9, [x9, _engineF@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ge	LBB0_2
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x21, w9
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_2
LBB0_24:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	ldr	w9, [x9, x21, lsl #2]
	tbnz	w9, #31, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	x9, [x22]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x10, [x27]
	ldrsw	x10, [x10, x21, lsl #2]
	add	x0, x9, x10
	ldr	w9, [x0]
	cmp	w9, w24
	b.ne	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	w8, [x0, #4]
	add	w20, w8, #8
	mov	x1, x20
	bl	_my_write
	ldr	x8, [x27]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w20
	str	w10, [x8, x9]
	ldr	w8, [x23]
	b	LBB0_23
LBB0_27:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_left_files,8,3                 ; @left_files
	.comm	_engineF,4,2                    ; @engineF
	.comm	_engineN,4,2                    ; @engineN
	.comm	_fd,8,3                         ; @fd
	.comm	_f_buff_size,8,3                ; @f_buff_size
	.comm	_f_buff_r,8,3                   ; @f_buff_r
	.comm	_f_buff,8,3                     ; @f_buff
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dump %d is broken. It contains event of size %d. f_buff_size = %d, f_buff_r = %d.\n"

.subsections_via_symbols
