	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_h@GOTPCREL(%rip), %rdi
	callq	_shmap_ll_int_init
	leaq	L_.str(%rip), %rdi
	leaq	-112(%rbp), %rsi
	xorl	%eax, %eax
	callq	_scanf
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.1:
	movl	$-1, %r14d
	movl	$1, %ebx
	leaq	L_.str.5(%rip), %r15
	leaq	L_.str(%rip), %r12
	leaq	-112(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_assert
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.5(%rip), %r15
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	-124(%rbp), %rsi
	xorl	%eax, %eax
	callq	_scanf
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_scanf
	decl	%r14d
	incl	%ebx
	cmpl	$1, %eax
	jne	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	addl	%r14d, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-112(%rbp), %eax
	cmpb	$100, %al
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$103, %al
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$115, %al
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	leaq	-116(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	xorl	%eax, %eax
	callq	_scanf
	movl	-116(%rbp), %esi
	movl	-120(%rbp), %r15d
	movq	_h@GOTPCREL(%rip), %rdi
	callq	_shmap_ll_int_add
	movl	%r15d, (%rax)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	leaq	-116(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	xorl	%eax, %eax
	callq	_scanf
	movl	-116(%rbp), %esi
	movq	_h@GOTPCREL(%rip), %rdi
	callq	_shmap_ll_int_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %r15d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	leaq	-116(%rbp), %rsi
	xorl	%eax, %eax
	callq	_scanf
	movl	-116(%rbp), %esi
	movq	_h@GOTPCREL(%rip), %rdi
	callq	_shmap_ll_int_del
	jmp	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %r15d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-120(%rbp), %edx
	movl	%r15d, %eax
	cmpl	%r15d, %edx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movl	-120(%rbp), %eax
	jmp	LBB0_14
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_h,4,2                          ## @h
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%lld%d"

L_.str.3:                               ## @.str.3
	.asciz	"%lld"

L_.str.4:                               ## @.str.4
	.asciz	"%d vs %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh3:
	adrp	x0, _h@GOTPAGE
Lloh4:
	ldr	x0, [x0, _h@GOTPAGEOFF]
	bl	_shmap_ll_int_init
	add	x27, sp, #38
	str	x27, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_scanf
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.1:
	mov	w28, #-1
	mov	w19, #1
	mov	w26, #19923
	movk	w26, #4194, lsl #16
	mov	w20, #1000
Lloh7:
	adrp	x22, _h@GOTPAGE
Lloh8:
	ldr	x22, [x22, _h@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str.5@PAGE
Lloh10:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh11:
	adrp	x24, l_.str@PAGE
Lloh12:
	add	x24, x24, l_.str@PAGEOFF
	add	x25, sp, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w21
	cset	w0, eq
	bl	_assert
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x25, [sp]
	mov	x0, x23
	bl	_scanf
	str	x27, [sp]
	mov	x0, x24
	bl	_scanf
	sub	w28, w28, #1
	add	w19, w19, #1
	cmp	w0, #1
	b.ne	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	umull	x8, w19, w26
	lsr	x8, x8, #38
	madd	w8, w8, w20, w28
	cbnz	w8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #38]
	cmp	w8, #100
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #103
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #115
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, sp, #28
	str	x8, [sp, #8]
	add	x8, sp, #32
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_scanf
	ldp	w21, w1, [sp, #28]
	mov	x0, x22
	bl	_shmap_ll_int_add
	str	w21, [x0]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, sp, #28
	str	x8, [sp, #8]
	add	x8, sp, #32
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_scanf
	ldr	w1, [sp, #32]
	mov	x0, x22
	bl	_shmap_ll_int_get
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [x0, #4]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, sp, #32
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_scanf
	ldr	w1, [sp, #32]
	mov	x0, x22
	bl	_shmap_ll_int_del
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #-1
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #28]
	mov	x8, x21
	cmp	w2, w21
	b.eq	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w8, [sp, #28]
	b	LBB0_2
LBB0_16:
	ldr	x8, [sp, #88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_h,4,2                          ; @h
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%lld%d"

l_.str.3:                               ; @.str.3
	.asciz	"%lld"

l_.str.4:                               ; @.str.4
	.asciz	"%d vs %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"%d"

.subsections_via_symbols
