	.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
	pushq	%rax
	.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), %r14
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.1:
	movq	_engineF@GOTPCREL(%rip), %r12
	movq	_engineN@GOTPCREL(%rip), %r15
	movq	_f@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%r12), %edx
	movl	(%r15), %eax
	cmpl	%eax, %edx
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r12
	movslq	%edx, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	addq	-48(%rbp), %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r15), %eax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rcx
	movq	(%rcx,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_fscanf
	testq	%rax, %rax
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	decq	(%r12)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r14
	movq	(%r12), %rcx
	movq	_engineF@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	sete	%sil
	subl	%edx, %eax
	cltq
	cmpq	%rax, %rcx
	sete	%al
	orb	%sil, %al
	movzbl	%al, %edi
	callq	_assert
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_ansI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_14:
	addq	$8, %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	_f,8,3                          ## @f
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lld"

	.comm	_ansI,8,3                       ## @ansI
L_.str.1:                               ## @.str.1
	.asciz	"%lld\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:
	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
Lloh0:
	adrp	x22, _left_files@GOTPAGE
Lloh1:
	ldr	x22, [x22, _left_files@GOTPAGEOFF]
	ldr	x9, [x22]
	cbz	x9, LBB0_14
; %bb.1:
Lloh2:
	adrp	x23, _engineF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _engineF@GOTPAGEOFF]
Lloh4:
	adrp	x24, _engineN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _engineN@GOTPAGEOFF]
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
Lloh8:
	adrp	x25, _f@GOTPAGE
Lloh9:
	ldr	x25, [x25, _f@GOTPAGEOFF]
Lloh10:
	adrp	x26, _ansI@GOTPAGE
Lloh11:
	ldr	x26, [x26, _ansI@GOTPAGEOFF]
Lloh12:
	adrp	x20, l_.str.1@PAGE
Lloh13:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w10, [x23]
	ldr	w8, [x24]
	cmp	w10, w8
	b.ge	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, #0
	sxtw	x27, w10
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #8]
	add	x21, x8, x21
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x24]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_11
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	ldr	x0, [x9, x27, lsl #3]
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x2, sp, #8
	mov	x1, x19
	bl	_fscanf
	cmp	x0, #0
	b.gt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x22]
	sub	x8, x8, #1
	str	x8, [x22]
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22]
	ldr	w10, [x23]
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w8, w10
	cmp	x9, #0
	sxtw	x8, w8
	ccmp	x9, x8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	ldr	x0, [x8, x9, lsl #3]
	mov	x1, x20
	mov	x2, x21
	bl	_fprintf
	ldr	x9, [x22]
	cbnz	x9, LBB0_2
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_left_files,8,3                 ; @left_files
	.comm	_engineF,4,2                    ; @engineF
	.comm	_engineN,4,2                    ; @engineN
	.comm	_f,8,3                          ; @f
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lld"

	.comm	_ansI,8,3                       ; @ansI
l_.str.1:                               ; @.str.1
	.asciz	"%lld\n"

.subsections_via_symbols
