	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_server                   ## -- Begin function start_server
	.p2align	4, 0x90
_start_server:                          ## @start_server
	.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
	xorl	%eax, %eax
	callq	_init_epoll
	movq	_sfd@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_4
## %bb.1:
	movq	_port@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_4
## %bb.2:
	movq	_settings_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_backlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_server_socket
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_38
## %bb.3:
	xorl	%eax, %eax
	callq	_init_netbuffers
LBB0_4:
	movq	_daemonize@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_setsid
	xorl	%eax, %eax
	callq	_reopen_logs
LBB0_6:
	movq	_FullVersionStr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_binlogname@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_log_readto_pos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_Binlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_append_to_binlog
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
LBB0_9:
	xorl	%eax, %eax
	callq	_find_running_transactions
	movslq	%eax, %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%eax, %eax
	callq	_copyexec_aux_binlog_seek
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	_ct_copyexec_engine_server@GOTPCREL(%rip), %rsi
	movq	_memcache_methods@GOTPCREL(%rip), %rdx
	callq	_init_listening_connection
LBB0_11:
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_sigaddset
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.12:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdi
	callq	_sigaddset
LBB0_13:
	movq	_copyexec_main_sig_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -52(%rbp)
	movq	_SA_NOCLDSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SIGRTMAX@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_18
## %bb.14:
	movl	$1, %ebx
	leaq	-44(%rbp), %r14
	leaq	-56(%rbp), %r15
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	leal	1(%rbx), %eax
	cmpl	(%r13), %ebx
	movl	%eax, %ebx
	jge	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sigismember
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	jns	LBB0_17
## %bb.39:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
LBB0_18:
	movq	_pending_signals@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	_SIGUSR1@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_19 Depth=1
	incl	%r15d
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	testl	$1023, %r15d                    ## imm = 0x3FF
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_active_connections@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	_maxconn@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NB_used@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_NB_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_NB_max@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$2, %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	$77, %edi
	callq	_epoll_work
	xorl	%eax, %eax
	callq	_interrupted_by_signal
	testq	%rax, %rax
	jne	LBB0_35
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r14), %rax
	movq	_SIGCHLD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	btq	%rsi, %rax
	jae	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_pending_signals_clear_bit
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	xorl	%eax, %eax
	callq	_transaction_check_child_status
	movq	(%r14), %rax
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_SIGHUP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	btq	%rsi, %rax
	jae	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_pending_signals_clear_bit
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$2, %edi
	callq	_sync_binlog
	movq	(%r14), %rax
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rbx), %rsi
	btq	%rsi, %rax
	jae	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_pending_signals_clear_bit
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	xorl	%eax, %eax
	callq	_reopen_logs
	movq	(%rbx), %rdi
	callq	_transaction_child_kill
	movq	(%rbx), %rdi
	callq	_transaction_auto_kill
	movq	_results_client_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_results_client_creation_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=1
	callq	_get_process_creation_time
	cmpq	%rax, %rbx
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_results_client_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_kill
LBB0_31:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	$2, %edi
	callq	_sync_binlog
	movq	_SIGUSR1@GOTPCREL(%rip), %rbx
LBB0_32:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%r12d, %r13d
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%eax, %eax
	callq	_cron
	movl	%r13d, %r12d
	jmp	LBB0_34
LBB0_35:
	movq	_sfd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.36:
	callq	_epoll_close
	movq	(%rbx), %rdi
	callq	_close
LBB0_37:
	xorl	%eax, %eax
	callq	_flush_binlog_last
	movl	$2, %edi
	callq	_sync_binlog
	movq	(%r14), %rdx
	leaq	L_.str.9(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$3, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_sfd,8,3                        ## @sfd
	.comm	_port,8,3                       ## @port
	.comm	_settings_addr,4,2              ## @settings_addr
	.comm	_backlog,4,2                    ## @backlog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open server socket at port %d: %m\n"

	.comm	_daemonize,8,3                  ## @daemonize
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_FullVersionStr,8,3             ## @FullVersionStr
	.comm	_binlogname,8,3                 ## @binlogname
	.comm	_binlog_disabled,4,2            ## @binlog_disabled
L_.str.2:                               ## @.str.2
	.asciz	"log_readto_pos: %lld\n"

	.comm	_log_readto_pos,8,3             ## @log_readto_pos
	.comm	_Binlog,4,2                     ## @Binlog
L_.str.3:                               ## @.str.3
	.asciz	"found %d running transactions\n"

	.comm	_ct_copyexec_engine_server,4,2  ## @ct_copyexec_engine_server
	.comm	_memcache_methods,4,2           ## @memcache_methods
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGIO,4,2                      ## @SIGIO
	.comm	_SIGINT,8,3                     ## @SIGINT
	.comm	_SIGTERM,8,3                    ## @SIGTERM
	.comm	_SIGUSR1,8,3                    ## @SIGUSR1
	.comm	_SIGCHLD,8,3                    ## @SIGCHLD
	.comm	_SIGHUP,8,3                     ## @SIGHUP
	.comm	_copyexec_main_sig_handler,4,2  ## @copyexec_main_sig_handler
	.comm	_SA_NOCLDSTOP,4,2               ## @SA_NOCLDSTOP
	.comm	_SIGRTMAX,4,2                   ## @SIGRTMAX
L_.str.4:                               ## @.str.4
	.asciz	"sigaction (%d) failed. %m\n"

L_.str.5:                               ## @.str.5
	.asciz	"epoll_work(): %d out of %d connections, network buffers: %d used, %d out of %d allocated\n"

	.comm	_active_connections,4,2         ## @active_connections
	.comm	_maxconn,4,2                    ## @maxconn
	.comm	_NB_used,4,2                    ## @NB_used
	.comm	_NB_alloc,4,2                   ## @NB_alloc
	.comm	_NB_max,4,2                     ## @NB_max
	.comm	_pending_signals,8,3            ## @pending_signals
L_.str.6:                               ## @.str.6
	.asciz	"got SIGCHLD.\n"

L_.str.7:                               ## @.str.7
	.asciz	"got SIGHUP.\n"

L_.str.8:                               ## @.str.8
	.asciz	"got SIGUSR1, rotate logs.\n"

	.comm	_results_client_pid,8,3         ## @results_client_pid
	.comm	_results_client_creation_time,8,3 ## @results_client_creation_time
	.comm	_now,4,2                        ## @now
L_.str.9:                               ## @.str.9
	.asciz	"Main process terminated (pending_signals: 0x%llx).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_server                   ; -- Begin function start_server
	.p2align	2
_start_server:                          ; @start_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	bl	_init_epoll
Lloh0:
	adrp	x21, _sfd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sfd@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x19, _port@GOTPAGE
Lloh3:
	ldr	x19, [x19, _port@GOTPAGEOFF]
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _settings_addr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _settings_addr@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _backlog@GOTPAGE
Lloh8:
	ldr	x8, [x8, _backlog@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_server_socket
	str	x0, [x21]
	tbnz	x0, #63, LBB0_38
; %bb.3:
	bl	_init_netbuffers
LBB0_4:
Lloh10:
	adrp	x19, _daemonize@GOTPAGE
Lloh11:
	ldr	x19, [x19, _daemonize@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_setsid
	bl	_reopen_logs
LBB0_6:
Lloh12:
	adrp	x8, _FullVersionStr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FullVersionStr@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
Lloh17:
	adrp	x8, _binlogname@GOTPAGE
Lloh18:
	ldr	x8, [x8, _binlogname@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _binlog_disabled@GOTPAGE
Lloh21:
	ldr	x9, [x9, _binlog_disabled@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_8
; %bb.7:
Lloh23:
	adrp	x20, _log_readto_pos@GOTPAGE
Lloh24:
	ldr	x20, [x20, _log_readto_pos@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
Lloh27:
	adrp	x8, _Binlog@GOTPAGE
Lloh28:
	ldr	x8, [x8, _Binlog@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_append_to_binlog
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
LBB0_8:
	bl	_find_running_transactions
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	bl	_copyexec_aux_binlog_seek
	ldr	x0, [x21]
	cbz	x0, LBB0_10
; %bb.9:
Lloh32:
	adrp	x1, _ct_copyexec_engine_server@GOTPAGE
Lloh33:
	ldr	x1, [x1, _ct_copyexec_engine_server@GOTPAGEOFF]
Lloh34:
	adrp	x2, _memcache_methods@GOTPAGE
Lloh35:
	ldr	x2, [x2, _memcache_methods@GOTPAGEOFF]
	bl	_init_listening_connection
LBB0_10:
Lloh36:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x20, _SIG_IGN@GOTPAGE
Lloh40:
	ldr	x20, [x20, _SIG_IGN@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_signal
Lloh41:
	adrp	x8, _SIGIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SIGIO@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
	add	x0, sp, #44
	bl	_sigemptyset
Lloh44:
	adrp	x8, _SIGINT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh46:
	ldr	x1, [x8]
	add	x0, sp, #44
	bl	_sigaddset
Lloh47:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh49:
	ldr	x1, [x8]
	add	x0, sp, #44
	bl	_sigaddset
Lloh50:
	adrp	x24, _SIGUSR1@GOTPAGE
Lloh51:
	ldr	x24, [x24, _SIGUSR1@GOTPAGEOFF]
	ldr	x1, [x24]
	add	x0, sp, #44
	bl	_sigaddset
Lloh52:
	adrp	x25, _SIGCHLD@GOTPAGE
Lloh53:
	ldr	x25, [x25, _SIGCHLD@GOTPAGEOFF]
	ldr	x1, [x25]
	add	x0, sp, #44
	bl	_sigaddset
	ldr	x8, [x19]
Lloh54:
	adrp	x26, _SIGHUP@GOTPAGE
Lloh55:
	ldr	x26, [x26, _SIGHUP@GOTPAGEOFF]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x1, [x26]
	add	x0, sp, #44
	bl	_sigaddset
LBB0_12:
Lloh56:
	adrp	x8, _copyexec_main_sig_handler@GOTPAGE
Lloh57:
	ldr	x8, [x8, _copyexec_main_sig_handler@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	w8, [sp, #44]
Lloh59:
	adrp	x9, _SA_NOCLDSTOP@GOTPAGE
Lloh60:
	ldr	x9, [x9, _SA_NOCLDSTOP@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
Lloh62:
	adrp	x20, _SIGRTMAX@GOTPAGE
Lloh63:
	ldr	x20, [x20, _SIGRTMAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.13:
	mov	w19, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w8, w19, #1
	ldr	w9, [x20]
	cmp	w19, w9
	mov	x19, x8
	b.ge	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #44
	mov	x1, x19
	bl	_sigismember
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x1, sp, #32
	mov	x0, x19
	mov	x2, #0
	bl	_sigaction
	tbz	x0, #63, LBB0_14
; %bb.17:
	str	x19, [sp]
Lloh64:
	adrp	x0, l_.str.4@PAGE
Lloh65:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
LBB0_18:
	mov	w28, #0
	mov	w23, #0
Lloh66:
	adrp	x27, _pending_signals@GOTPAGE
Lloh67:
	ldr	x27, [x27, _pending_signals@GOTPAGEOFF]
Lloh68:
	adrp	x19, _now@GOTPAGE
Lloh69:
	ldr	x19, [x19, _now@GOTPAGEOFF]
Lloh70:
	adrp	x20, _results_client_pid@GOTPAGE
Lloh71:
	ldr	x20, [x20, _results_client_pid@GOTPAGEOFF]
Lloh72:
	adrp	x22, l_.str.6@PAGE
Lloh73:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w28, w28, #1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	tst	w28, #0x3ff
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh74:
	adrp	x8, _active_connections@GOTPAGE
Lloh75:
	ldr	x8, [x8, _active_connections@GOTPAGEOFF]
Lloh76:
	ldrsw	x2, [x8]
Lloh77:
	adrp	x8, _maxconn@GOTPAGE
Lloh78:
	ldr	x8, [x8, _maxconn@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
Lloh80:
	adrp	x9, _NB_used@GOTPAGE
Lloh81:
	ldr	x9, [x9, _NB_used@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
Lloh83:
	adrp	x10, _NB_alloc@GOTPAGE
Lloh84:
	ldr	x10, [x10, _NB_alloc@GOTPAGEOFF]
Lloh85:
	ldr	w10, [x10]
Lloh86:
	adrp	x11, _NB_max@GOTPAGE
Lloh87:
	ldr	x11, [x11, _NB_max@GOTPAGEOFF]
Lloh88:
	ldr	w11, [x11]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
	mov	w0, #2
Lloh89:
	adrp	x1, l_.str.5@PAGE
Lloh90:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_vkprintf
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w0, #77
	bl	_epoll_work
	bl	_interrupted_by_signal
	cbnz	x0, LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x27]
	ldr	x1, [x25]
	lsr	x9, x8, x1
	tbz	w9, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x0, sp, #44
	bl	_pending_signals_clear_bit
	mov	x0, x22
	bl	_kprintf
	bl	_transaction_check_child_status
	ldr	x8, [x27]
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x1, [x26]
	lsr	x9, x8, x1
	tbz	w9, #0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x0, sp, #44
	bl	_pending_signals_clear_bit
Lloh91:
	adrp	x0, l_.str.7@PAGE
Lloh92:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_kprintf
	mov	w0, #2
	bl	_sync_binlog
	ldr	x8, [x27]
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x1, [x24]
	lsr	x8, x8, x1
	tbz	w8, #0, LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x0, sp, #44
	bl	_pending_signals_clear_bit
Lloh93:
	adrp	x0, l_.str.8@PAGE
Lloh94:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_kprintf
	bl	_reopen_logs
	ldr	x0, [x24]
	bl	_transaction_child_kill
	ldr	x0, [x24]
	bl	_transaction_auto_kill
	ldr	x0, [x20]
	cbz	x0, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh95:
	adrp	x8, _results_client_creation_time@GOTPAGE
Lloh96:
	ldr	x8, [x8, _results_client_creation_time@GOTPAGEOFF]
Lloh97:
	ldr	x21, [x8]
	cbz	x21, LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
	bl	_get_process_creation_time
	cmp	x21, x0
	b.ne	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x0, [x20]
	ldr	x1, [x24]
	bl	_kill
LBB0_32:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w0, #2
	bl	_sync_binlog
LBB0_33:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w21, [x19]
	cmp	w21, w23
	b.eq	LBB0_19
; %bb.34:                               ;   in Loop: Header=BB0_20 Depth=1
	bl	_cron
	mov	x23, x21
	b	LBB0_19
LBB0_35:
Lloh98:
	adrp	x19, _sfd@GOTPAGE
Lloh99:
	ldr	x19, [x19, _sfd@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_37
; %bb.36:
	bl	_epoll_close
	ldr	x0, [x19]
	bl	_close
LBB0_37:
	bl	_flush_binlog_last
	mov	w0, #2
	bl	_sync_binlog
	ldr	x2, [x27]
Lloh100:
	adrp	x1, l_.str.9@PAGE
Lloh101:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #0
	bl	_vkprintf
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_38:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh102:
	adrp	x0, l_.str@PAGE
Lloh103:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	mov	w0, #3
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.comm	_sfd,8,3                        ; @sfd
	.comm	_port,8,3                       ; @port
	.comm	_settings_addr,4,2              ; @settings_addr
	.comm	_backlog,4,2                    ; @backlog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open server socket at port %d: %m\n"

	.comm	_daemonize,8,3                  ; @daemonize
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_FullVersionStr,8,3             ; @FullVersionStr
	.comm	_binlogname,8,3                 ; @binlogname
	.comm	_binlog_disabled,4,2            ; @binlog_disabled
l_.str.2:                               ; @.str.2
	.asciz	"log_readto_pos: %lld\n"

	.comm	_log_readto_pos,8,3             ; @log_readto_pos
	.comm	_Binlog,4,2                     ; @Binlog
l_.str.3:                               ; @.str.3
	.asciz	"found %d running transactions\n"

	.comm	_ct_copyexec_engine_server,4,2  ; @ct_copyexec_engine_server
	.comm	_memcache_methods,4,2           ; @memcache_methods
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGIO,4,2                      ; @SIGIO
	.comm	_SIGINT,8,3                     ; @SIGINT
	.comm	_SIGTERM,8,3                    ; @SIGTERM
	.comm	_SIGUSR1,8,3                    ; @SIGUSR1
	.comm	_SIGCHLD,8,3                    ; @SIGCHLD
	.comm	_SIGHUP,8,3                     ; @SIGHUP
	.comm	_copyexec_main_sig_handler,4,2  ; @copyexec_main_sig_handler
	.comm	_SA_NOCLDSTOP,4,2               ; @SA_NOCLDSTOP
	.comm	_SIGRTMAX,4,2                   ; @SIGRTMAX
l_.str.4:                               ; @.str.4
	.asciz	"sigaction (%d) failed. %m\n"

l_.str.5:                               ; @.str.5
	.asciz	"epoll_work(): %d out of %d connections, network buffers: %d used, %d out of %d allocated\n"

	.comm	_active_connections,4,2         ; @active_connections
	.comm	_maxconn,4,2                    ; @maxconn
	.comm	_NB_used,4,2                    ; @NB_used
	.comm	_NB_alloc,4,2                   ; @NB_alloc
	.comm	_NB_max,4,2                     ; @NB_max
	.comm	_pending_signals,8,3            ; @pending_signals
l_.str.6:                               ; @.str.6
	.asciz	"got SIGCHLD.\n"

l_.str.7:                               ; @.str.7
	.asciz	"got SIGHUP.\n"

l_.str.8:                               ; @.str.8
	.asciz	"got SIGUSR1, rotate logs.\n"

	.comm	_results_client_pid,8,3         ; @results_client_pid
	.comm	_results_client_creation_time,8,3 ; @results_client_creation_time
	.comm	_now,4,2                        ; @now
l_.str.9:                               ; @.str.9
	.asciz	"Main process terminated (pending_signals: 0x%llx).\n"

.subsections_via_symbols
