	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_answer                 ## -- Begin function process_answer
	.p2align	4, 0x90
_process_answer:                        ## @process_answer
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movl	(%r12), %r14d
	cmpl	$-1, %esi
	sete	%al
	cmpl	$1, %esi
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	cmpl	$1, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_user_id_to_answer@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	jne	LBB0_1
## %bb.2:
	callq	_map_int_vptr_add
	movq	%rbx, (%rax)
	movq	_answers_cnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	8(%r12), %r14
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$9, 1(%r14,%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_3
## %bb.4:
	movq	_buf@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r13), %rdi
	movq	8(%r12), %rax
	shlq	$2, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%r14,4), %rax
	movl	$0, (%rax,%rbx,4)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_split
	movq	%rax, %r14
	movl	(%rbx), %eax
	leal	4(,%rax,4), %r12d
	movl	%r12d, %edi
	callq	_dl_malloc
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_1:
	callq	_map_int_vptr_del
	movq	_answers_cnt@GOTPCREL(%rip), %rax
	addl	%r15d, (%rax)
LBB0_5:
	movq	8(%rbx), %rbx
	movl	(%rbx), %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %esi
	addq	$4, %rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, %esi
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_q_cnt@GOTPCREL(%rip), %rdi
	callq	_map_int_int_add
	movq	%rax, %r14
	movl	(%rbx), %esi
	movq	_word_to_answers@GOTPCREL(%rip), %rdi
	callq	_map_int_set_int_add
	movq	%rax, %r12
	cmpl	$0, (%r14)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_set_int_init
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_set_int_used
	movq	%rax, %r13
	movq	%r12, %rdi
	cmpl	$-1, %r15d
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_int_add
	movq	%r12, %rdi
	callq	_set_int_used
	incl	%r13d
	movslq	%r13d, %rcx
	cmpq	%rcx, %rax
	sete	%al
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_int_del
	movq	%r12, %rdi
	callq	_set_int_used
	leal	-1(%r13), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	sete	%cl
	testl	%r13d, %r13d
	setg	%al
	andb	%cl, %al
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movl	(%r14), %edi
	addl	%r15d, %edi
	movl	%edi, (%r14)
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	cmpl	$0, (%r14)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_set_int_used
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%r12, %rdi
	callq	_set_int_free
	movl	(%rbx), %esi
	movq	_word_to_answers@GOTPCREL(%rip), %rdi
	callq	_map_int_set_int_del
	cmpl	$0, (%r14)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %esi
	movq	_q_cnt@GOTPCREL(%rip), %rdi
	callq	_map_int_int_del
	jmp	LBB0_15
LBB0_16:
	cmpl	$-1, %r15d
	je	LBB0_18
## %bb.17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	leal	4(,%rax,4), %esi
	movq	8(%rcx), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dl_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_user_id_to_answer,4,2          ## @user_id_to_answer
	.comm	_answers_cnt,4,2                ## @answers_cnt
	.comm	_buf,8,3                        ## @buf
	.comm	_q_cnt,4,2                      ## @q_cnt
	.comm	_word_to_answers,4,2            ## @word_to_answers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_answer                 ; -- Begin function process_answer
	.p2align	2
_process_answer:                        ; @process_answer
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w21, [x23]
	cmn	w1, #1
	cset	w8, eq
	cmp	w1, #1
	cset	w9, eq
	orr	w0, w8, w9
	bl	_assert
Lloh0:
	adrp	x0, _user_id_to_answer@GOTPAGE
Lloh1:
	ldr	x0, [x0, _user_id_to_answer@GOTPAGEOFF]
	mov	x1, x21
	cmp	w20, #1
	b.ne	LBB0_4
; %bb.1:
	bl	_map_int_vptr_add
	mov	x24, #0
	str	x19, [x0]
Lloh2:
	adrp	x8, _answers_cnt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _answers_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x22, [x23, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x24]
	add	x24, x24, #1
	cmp	w8, #9
	b.ne	LBB0_2
; %bb.3:
Lloh4:
	adrp	x25, _buf@GOTPAGE
Lloh5:
	ldr	x25, [x25, _buf@GOTPAGEOFF]
	ldr	x0, [x25]
	sub	w2, w24, #1
	mov	x1, x22
	bl	_memcpy
	ldr	x0, [x25]
	ldr	x8, [x23, #8]
	sub	x8, x0, x8, lsl #2
	add	x8, x8, x22, lsl #2
	add	x8, x8, x24, lsl #2
	stur	wzr, [x8, #-4]
	mov	x1, x19
	mov	w2, #0
	bl	_split
	mov	x22, x0
	ldr	w8, [x19]
	lsl	w8, w8, #2
	add	w23, w8, #4
	mov	x0, x23
	bl	_dl_malloc
	str	x0, [x19, #8]
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	b	LBB0_5
LBB0_4:
	bl	_map_int_vptr_del
Lloh6:
	adrp	x8, _answers_cnt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _answers_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w20
	str	w9, [x8]
LBB0_5:
	ldr	x27, [x19, #8]
	ldr	w1, [x27]
	cbz	w1, LBB0_16
; %bb.6:
Lloh8:
	adrp	x22, _q_cnt@GOTPAGE
Lloh9:
	ldr	x22, [x22, _q_cnt@GOTPAGEOFF]
Lloh10:
	adrp	x23, _word_to_answers@GOTPAGE
Lloh11:
	ldr	x23, [x23, _word_to_answers@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x27, #4]!
	cbz	w1, LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_map_int_int_add
	mov	x24, x0
	ldr	w1, [x27]
	mov	x0, x23
	bl	_map_int_set_int_add
	mov	x25, x0
	ldr	w8, [x24]
	cbnz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_set_int_init
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_set_int_used
	mov	x26, x0
	mov	x0, x25
	mov	x1, x21
	cmn	w20, #1
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_set_int_add
	mov	x0, x25
	bl	_set_int_used
	add	w8, w26, #1
	cmp	x0, w8, sxtw
	cset	w0, eq
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_set_int_del
	mov	x0, x25
	bl	_set_int_used
	sub	w8, w26, #1
	cmp	x0, w8, sxtw
	ccmp	w26, #0, #4, eq
	cset	w0, gt
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_assert
	ldr	w8, [x24]
	add	w8, w8, w20
	mvn	w9, w8
	str	w8, [x24]
	lsr	w0, w9, #31
	bl	_assert
	ldr	w8, [x24]
	cbnz	w8, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_set_int_used
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x25
	bl	_set_int_free
	ldr	w1, [x27]
	mov	x0, x23
	bl	_map_int_set_int_del
	ldr	w8, [x24]
	cbnz	w8, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x27]
	mov	x0, x22
	bl	_map_int_int_del
	b	LBB0_7
LBB0_16:
	cmn	w20, #1
	b.eq	LBB0_18
; %bb.17:
	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
LBB0_18:
	ldr	w8, [x19]
	lsl	w8, w8, #2
	add	w1, w8, #4
	ldr	x0, [x19, #8]
	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
	b	_dl_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_user_id_to_answer,4,2          ; @user_id_to_answer
	.comm	_answers_cnt,4,2                ; @answers_cnt
	.comm	_buf,8,3                        ; @buf
	.comm	_q_cnt,4,2                      ; @q_cnt
	.comm	_word_to_answers,4,2            ; @word_to_answers
.subsections_via_symbols
