	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_set_debug_handlers
	movq	(%r15), %rax
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	callq	_time
	movl	%eax, %edi
	callq	_srand
	cmpl	$1, %r14d
	jne	LBB0_1
LBB0_5:
	xorl	%eax, %eax
	callq	_usage
	movl	$2, %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %r13
	leaq	LJTI0_0(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	_uf@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	sete	%dil
	callq	_assert
	movq	(%rbx), %rdi
	callq	_atoi
	movq	_uf@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-69(%rax), %ecx
	cmpl	$49, %ecx
	ja	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12,%rcx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	callq	_atoi
	movq	_engineN@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	callq	_atoi
	movq	_userN@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_output_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_verbosity@GOTPCREL(%rip), %rax
	incq	(%rax)
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_input_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	callq	_atoi
	movq	_max_user_events@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	decl	%eax
	xorl	%edi, %edi
	cmpl	$10000000, %eax                 ## imm = 0x989680
	setb	%dil
	callq	_assert
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_username@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.4:
	movq	_uf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_optind@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.15:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_userN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_engineN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_17:
	movq	_username@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_change_user
	testq	%rax, %rax
	js	LBB0_34
## %bb.18:
	xorl	%edi, %edi
	movq	_engineN@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	setg	%dil
	callq	_assert
	movl	$2, %edi
	callq	_init_files
	xorl	%eax, %eax
	callq	_init_data
	movq	_userN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	(%rbx)
	movl	%eax, %r12d
	leal	8(,%r12,4), %edi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_qmalloc
	movq	_v@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testl	%r12d, %r12d
	js	LBB0_22
## %bb.19:
	movq	%rax, %rdi
	callq	_vct_init
	testl	%r12d, %r12d
	je	LBB0_22
## %bb.20:
	leal	1(%r12), %r14d
	shlq	$3, %r14
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_vct_init
	addq	$8, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_21
LBB0_22:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leal	(,%r12,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_fsize@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	xorl	%edi, %edi
	testb	$7, (%rax)
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	cmpl	$8, %ebx
	setge	%dil
	callq	_assert
	leal	7(%rbx), %eax
	cmpl	$14, %eax
	ja	LBB0_24
## %bb.23:
	movq	_friends_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_friends_list_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_29:
	callq	_gen_events
	movq	$-1, -48(%rbp)
	movq	_fd@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	4(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_write
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	addl	$16, %ebx
	movl	%ebx, %edi
	callq	_qmalloc0
	movq	_l_len@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leal	1(%r12), %r15d
	movslq	%r15d, %rcx
	movq	%rcx, (%rax)
	movq	(%r13), %rax
	movl	4(%rax), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_lseek
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_assert
	movslq	%ebx, %rbx
	testl	%r12d, %r12d
	movq	_v@GOTPCREL(%rip), %r13
	js	LBB0_32
## %bb.30:
	movl	%r15d, %r15d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movslq	(%rcx,%rax,8), %rdx
	leaq	(,%rdx,4), %rsi
	movq	(%r14), %rdi
	leaq	1(%rax), %r12
	movq	%rsi, 8(%rdi,%rax,8)
	leaq	(%rbx,%rdx,4), %rbx
	movl	4(%rcx,%rax,8), %edi
	leal	(,%rdx,4), %esi
	callq	_my_write
	movq	%r12, %rax
	cmpq	%r12, %r15
	jne	LBB0_31
LBB0_32:
	movq	%rbx, -48(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_flush_w_buff
	movq	_fd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	(%r15), %rax
	movl	4(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_write
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movq	(%r14), %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_write
	jmp	LBB0_33
LBB0_24:
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	sarl	$3, %eax
	movslq	%eax, %rbx
	movl	$-1, %r12d
	movq	_friends_list_n@GOTPCREL(%rip), %r15
	movq	_friends_list@GOTPCREL(%rip), %r13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	(%r13), %rdi
	movq	(%r15), %rsi
	callq	_gen_events
	xorl	%eax, %eax
	movl	%r14d, %r12d
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r13), %rdi
	leaq	1(%rax), %rsi
	movq	%rsi, (%r15)
	movl	%ecx, (%rdi,%rax,4)
	testq	%rbx, %rbx
	je	LBB0_29
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	xorl	%eax, %eax
	callq	_my_read
	movq	_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%r12d, %r14d
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%r15), %rax
	jmp	LBB0_28
LBB0_34:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_progname,8,3                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i:o:hvU:E:u:T:m:"

	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_optarg,8,3                     ## @optarg
	.comm	_input_name,8,3                 ## @input_name
	.comm	_output_name,8,3                ## @output_name
	.comm	_userN,4,2                      ## @userN
	.comm	_engineN,4,2                    ## @engineN
	.comm	_uf,4,2                         ## @uf
	.comm	_username,8,3                   ## @username
	.comm	_max_user_events,4,2            ## @max_user_events
	.comm	_optind,4,2                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"userN = %d, engineN = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"fatal: cannot change user to %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"(none)"

	.comm	_v,8,3                          ## @v
	.comm	_fsize,8,3                      ## @fsize
	.comm	_A,4,2                          ## @A
	.comm	_friends_list,8,3               ## @friends_list
	.comm	_friends_list_n,8,3             ## @friends_list_n
	.comm	_B,4,2                          ## @B
	.comm	_fd,8,3                         ## @fd
	.comm	_l_len,8,3                      ## @l_len
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	bl	_set_debug_handlers
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _progname@GOTPAGE
Lloh1:
	ldr	x9, [x9, _progname@GOTPAGEOFF]
Lloh2:
	str	x8, [x9]
	mov	x0, #0
	bl	_time
	bl	_srand
	cmp	w19, #1
	b.ne	LBB0_3
LBB0_1:
	bl	_usage
	mov	w0, #2
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x26, _optarg@GOTPAGE
Lloh6:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
Lloh7:
	adrp	x27, _uf@GOTPAGE
Lloh8:
	ldr	x27, [x27, _uf@GOTPAGEOFF]
Lloh9:
	adrp	x28, lJTI0_0@PAGE
Lloh10:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh11:
	adrp	x23, _max_user_events@GOTPAGE
Lloh12:
	ldr	x23, [x23, _max_user_events@GOTPAGEOFF]
	mov	w24, #38528
	movk	w24, #152, lsl #16
Lloh13:
	adrp	x22, _output_name@GOTPAGE
Lloh14:
	ldr	x22, [x22, _output_name@GOTPAGEOFF]
Lloh15:
	adrp	x25, _verbosity@GOTPAGE
Lloh16:
	ldr	x25, [x25, _verbosity@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cmn	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	x0, [x26]
	bl	_atoi
	str	w0, [x27]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_getopt
	sub	w8, w0, #69
	cmp	w8, #49
	b.hi	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x26]
	bl	_atoi
Lloh17:
	adrp	x8, _engineN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _engineN@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x26]
	bl	_atoi
Lloh20:
	adrp	x8, _userN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _userN@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	str	x8, [x22]
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	add	x8, x8, #1
	str	x8, [x25]
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
Lloh23:
	adrp	x9, _input_name@GOTPAGE
Lloh24:
	ldr	x9, [x9, _input_name@GOTPAGEOFF]
Lloh25:
	str	x8, [x9]
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x26]
	bl	_atoi
	str	w0, [x23]
	sub	w8, w0, #1
	cmp	w8, w24
	cset	w0, lo
	bl	_assert
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
Lloh26:
	adrp	x9, _username@GOTPAGE
Lloh27:
	ldr	x9, [x9, _username@GOTPAGEOFF]
Lloh28:
	str	x8, [x9]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.15:
	ldr	w8, [x27]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
Lloh29:
	adrp	x8, _optind@GOTPAGE
Lloh30:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_1
; %bb.16:
	ldr	x8, [x25]
	cbz	x8, LBB0_18
; %bb.17:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _userN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _userN@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _engineN@GOTPAGE
Lloh39:
	ldr	x9, [x9, _engineN@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_18:
Lloh43:
	adrp	x19, _username@GOTPAGE
Lloh44:
	ldr	x19, [x19, _username@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_change_user
	tbnz	x0, #63, LBB0_35
; %bb.19:
Lloh45:
	adrp	x19, _engineN@GOTPAGE
Lloh46:
	ldr	x19, [x19, _engineN@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	mov	w0, #2
	bl	_init_files
	bl	_init_data
Lloh47:
	adrp	x8, _userN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _userN@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	ldr	w9, [x19]
	sdiv	w22, w8, w9
	lsl	w20, w22, #2
	add	w28, w20, #8
	mov	x0, x28
	bl	_qmalloc
Lloh50:
	adrp	x21, _v@GOTPAGE
Lloh51:
	ldr	x21, [x21, _v@GOTPAGEOFF]
	str	x0, [x21]
	tbnz	w22, #31, LBB0_23
; %bb.20:
	bl	_vct_init
	cbz	w22, LBB0_23
; %bb.21:
	add	w8, w22, #1
	lsl	x23, x8, #3
	mov	w24, #8
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, x24
	bl	_vct_init
	add	x24, x24, #8
	cmp	x23, x24
	b.ne	LBB0_22
LBB0_23:
Lloh52:
	adrp	x19, _fsize@GOTPAGE
Lloh53:
	ldr	x19, [x19, _fsize@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w8, [x8]
	tst	w8, #0x7
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	ldr	w19, [x8]
	cmp	w19, #7
	cset	w0, gt
	bl	_assert
	add	w8, w19, #7
	cmp	w8, #14
	b.hi	LBB0_25
; %bb.24:
Lloh54:
	adrp	x8, _friends_list@GOTPAGE
Lloh55:
	ldr	x8, [x8, _friends_list@GOTPAGEOFF]
Lloh56:
	ldr	x0, [x8]
Lloh57:
	adrp	x8, _friends_list_n@GOTPAGE
Lloh58:
	ldr	x8, [x8, _friends_list_n@GOTPAGEOFF]
Lloh59:
	ldr	x1, [x8]
	b	LBB0_31
LBB0_25:
	str	w28, [sp, #20]                  ; 4-byte Folded Spill
	cmp	w19, #0
	csel	w8, w8, w19, lt
	sbfx	x23, x8, #3, #29
	mov	w19, #-1
Lloh60:
	adrp	x24, _A@GOTPAGE
Lloh61:
	ldr	x24, [x24, _A@GOTPAGEOFF]
Lloh62:
	adrp	x25, _friends_list_n@GOTPAGE
Lloh63:
	ldr	x25, [x25, _friends_list_n@GOTPAGEOFF]
Lloh64:
	adrp	x26, _B@GOTPAGE
Lloh65:
	ldr	x26, [x26, _B@GOTPAGEOFF]
Lloh66:
	adrp	x27, _friends_list@GOTPAGE
Lloh67:
	ldr	x27, [x27, _friends_list@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x0, [x27]
	ldr	x1, [x25]
	bl	_gen_events
	mov	x8, #0
	mov	x19, x28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	w9, [x26]
	ldr	x0, [x27]
	add	x1, x8, #1
	str	x1, [x25]
	str	w9, [x0, x8, lsl #2]
	cbz	x23, LBB0_30
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	sub	x23, x23, #1
	bl	_my_read
	ldr	w28, [x24]
	cmp	w28, w19
	b.ne	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x25]
	b	LBB0_27
LBB0_30:
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
LBB0_31:
	bl	_gen_events
	mov	x8, #-1
	str	x8, [sp, #24]
Lloh68:
	adrp	x23, _fd@GOTPAGE
Lloh69:
	ldr	x23, [x23, _fd@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	add	x1, sp, #24
	mov	w2, #8
	bl	_write
	add	w20, w20, #16
	sxtw	x25, w20
	mov	x0, x20
	bl	_qmalloc0
Lloh70:
	adrp	x24, _l_len@GOTPAGE
Lloh71:
	ldr	x24, [x24, _l_len@GOTPAGEOFF]
	str	x0, [x24]
	add	w27, w22, #1
	mov	x8, x27
	sxtw	x8, w8
	str	x8, [x0]
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
Lloh72:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh73:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x1, x20
	bl	_lseek
	cmp	w0, w20
	cset	w0, eq
	bl	_assert
	tbnz	w22, #31, LBB0_34
; %bb.32:
	mov	x20, #0
	lsl	x22, x27, #3
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x20
	ldp	w9, w0, [x8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	lsl	x8, x9, #2
	ldr	x10, [x24]
	add	x10, x10, x20
	str	x8, [x10, #8]
	add	x25, x25, x8
	lsl	w1, w9, #2
	bl	_my_write
	add	x20, x20, #8
	cmp	x22, x20
	b.ne	LBB0_33
LBB0_34:
	str	x25, [sp, #24]
	bl	_flush_w_buff
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	ldr	w2, [x26]
	mov	w1, #0
	bl	_lseek
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	add	x1, sp, #24
	mov	w2, #8
	bl	_write
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	ldr	x1, [x24]
	mov	x2, x28
	bl	_write
	mov	w0, #0
	b	LBB0_2
LBB0_35:
Lloh74:
	adrp	x8, _stderr@GOTPAGE
Lloh75:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh77:
	adrp	x9, l_.str.3@PAGE
Lloh78:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh79:
	adrp	x1, l_.str.2@PAGE
Lloh80:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_13-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
                                        ; -- End function
	.comm	_progname,8,3                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i:o:hvU:E:u:T:m:"

	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_optarg,8,3                     ; @optarg
	.comm	_input_name,8,3                 ; @input_name
	.comm	_output_name,8,3                ; @output_name
	.comm	_userN,4,2                      ; @userN
	.comm	_engineN,4,2                    ; @engineN
	.comm	_uf,4,2                         ; @uf
	.comm	_username,8,3                   ; @username
	.comm	_max_user_events,4,2            ; @max_user_events
	.comm	_optind,4,2                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"userN = %d, engineN = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"fatal: cannot change user to %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"(none)"

	.comm	_v,8,3                          ; @v
	.comm	_fsize,8,3                      ; @fsize
	.comm	_A,4,2                          ; @A
	.comm	_friends_list,8,3               ; @friends_list
	.comm	_friends_list_n,8,3             ; @friends_list_n
	.comm	_B,4,2                          ; @B
	.comm	_fd,8,3                         ; @fd
	.comm	_l_len,8,3                      ; @l_len
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
