	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_service_start                  ## -- Begin function service_start
	.p2align	4, 0x90
_service_start:                         ## @service_start
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_SERVICE_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	12(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_setproctitle
	movl	8(%r14), %edx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_service_clean
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_service_connection_add
	testq	%rax, %rax
	jne	LBB0_1
LBB0_8:
	movl	$1, %edi
	callq	__exit
LBB0_1:
	leaq	-44(%rbp), %r15
	movq	_FD_SETSIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_service_connection_first
	testq	%rax, %rax
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r15, %rdi
	callq	_FD_ZERO
	movq	%r14, %rdi
	callq	_service_connection_first
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	$-1, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_service_connection_get_sock
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_fd_add
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_service_connection_next
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	leal	1(%r12), %ebx
	xorl	%edi, %edi
	cmpl	(%r13), %r12d
	setl	%dil
	callq	_assert
	movl	%ebx, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_service_connection_first
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_15
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_service_connection_next
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_service_connection_get_sock
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_service_message
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
	jmp	LBB0_8
LBB0_17:
	xorl	%eax, %eax
	callq	_abort
LBB0_16:
	xorl	%edi, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVICE_MAGIC,8,3              ## @SERVICE_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_FD_SETSIZE,8,3                 ## @FD_SETSIZE
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_service_start                  ; -- Begin function service_start
	.p2align	2
_service_start:                         ; @service_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SERVICE_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SERVICE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w1, [x19, #12]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_setproctitle
	ldr	w2, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_service_clean
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_service_connection_add
	cbnz	x0, LBB0_2
LBB0_1:
	mov	w0, #1
	bl	__exit
LBB0_2:
Lloh5:
	adrp	x22, _FD_SETSIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FD_SETSIZE@GOTPAGEOFF]
Lloh7:
	adrp	x23, _errno@GOTPAGE
Lloh8:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh9:
	adrp	x24, _EINTR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_service_connection_first
	cbz	x0, LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	add	x0, sp, #12
	bl	_FD_ZERO
	mov	x0, x19
	bl	_service_connection_first
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	mov	w20, #-1
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_service_connection_get_sock
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x20
	bl	_fd_add
	mov	x20, x0
	mov	x0, x21
	bl	_service_connection_next
	mov	x21, x0
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #-1
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
	add	w21, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	cset	w0, lt
	bl	_assert
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	tbnz	w0, #31, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_service_connection_first
	cbz	x0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x20, x21
	cbz	x21, LBB0_3
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_service_connection_next
	mov	x21, x0
	mov	x0, x20
	bl	_service_connection_get_sock
	add	x1, sp, #12
	bl	_FD_ISSET
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	bl	_service_message
	b	LBB0_12
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_4
	b	LBB0_1
LBB0_16:
	bl	_abort
LBB0_17:
	bl	__exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVICE_MAGIC,8,3              ; @SERVICE_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_FD_SETSIZE,8,3                 ; @FD_SETSIZE
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
.subsections_via_symbols
