	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_connection
_handle_connection:                     ## @handle_connection
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	incl	%r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	8(%rax), %r15
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.6:
	xorl	%edi, %edi
	callq	_wait_for_children
	movq	_nchildren@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	subq	%rax, %rdi
	movq	%rdi, (%rbx)
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	(%r15), %rsi
	movq	(%rbx), %rax
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.7:
	cmpq	%rsi, %rax
	jl	LBB0_11
## %bb.8:
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_log_debugx
	movl	$1, %edi
	callq	_wait_for_children
	movq	(%rbx), %rdi
	subq	%rax, %rdi
	movq	%rdi, (%rbx)
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	(%r15), %rsi
	movq	(%rbx), %rax
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rsi, %rax
	jge	LBB0_9
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_log_debugx
	incq	(%rbx)
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	je	LBB0_2
## %bb.14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.15:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debugx
	jmp	LBB0_2
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_2:
	movl	12(%r15), %edi
	callq	_pidfile_close
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_getnameinfo
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_log_errx
LBB0_4:
	movq	(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_log_debugx
	movq	%rbx, %rdi
	callq	_log_set_peer_addr
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	callq	_setproctitle
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_connection_new
	movq	%rax, %rbx
	movl	8(%r15), %edi
	movl	$1, %esi
	callq	_set_timeout
	xorl	%eax, %eax
	callq	_kernel_capsicate
	movq	%rbx, %rdi
	callq	_login
	movq	(%rbx), %rax
	movq	_CONN_SESSION_TYPE_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.5:
	movq	%rbx, %rdi
	callq	_kernel_handoff
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debugx
	jmp	LBB0_17
LBB0_16:
	movq	_CONN_SESSION_TYPE_DISCOVERY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_discovery
LBB0_17:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debugx
	xorl	%edi, %edi
	callq	_exit
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incoming connection; not forking due to -d flag"

	.comm	_nchildren,8,3                  ## @nchildren
L_.str.1:                               ## @.str.1
	.asciz	"maxproc limit of %d child processes hit; waiting for child process to exit"

L_.str.2:                               ## @.str.2
	.asciz	"incoming connection; forking child process #%d"

L_.str.3:                               ## @.str.3
	.asciz	"fork"

	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
L_.str.4:                               ## @.str.4
	.asciz	"getnameinfo: %s"

L_.str.5:                               ## @.str.5
	.asciz	"accepted connection from %s; portal group \"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"%s"

	.comm	_CONN_SESSION_TYPE_NORMAL,8,3   ## @CONN_SESSION_TYPE_NORMAL
L_.str.7:                               ## @.str.7
	.asciz	"connection handed off to the kernel"

	.comm	_CONN_SESSION_TYPE_DISCOVERY,8,3 ## @CONN_SESSION_TYPE_DISCOVERY
L_.str.8:                               ## @.str.8
	.asciz	"nothing more to do; exiting"

	.no_dead_strip	_handle_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_connection
_handle_connection:                     ; @handle_connection
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w23, w8, #1
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	x8, [x0]
	ldr	x25, [x8, #8]
	cbnz	w3, LBB0_8
; %bb.1:
	mov	w0, #0
	bl	_wait_for_children
Lloh8:
	adrp	x26, _nchildren@GOTPAGE
Lloh9:
	ldr	x26, [x26, _nchildren@GOTPAGEOFF]
	ldr	x8, [x26]
	sub	x8, x8, x0
	str	x8, [x26]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, #1
	ccmp	x9, x8, #8, ge
	b.lt	LBB0_4
; %bb.2:
Lloh10:
	adrp	x24, l_.str.1@PAGE
Lloh11:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [sp, #-16]!
	mov	x0, x24
	bl	_log_debugx
	add	sp, sp, #16
	mov	w0, #1
	bl	_wait_for_children
	ldr	x8, [x26]
	sub	x8, x8, x0
	str	x8, [x26]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, #1
	ccmp	x9, x8, #8, ge
	b.ge	LBB0_3
LBB0_4:
	str	x9, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_debugx
	add	sp, sp, #16
	ldr	x8, [x26]
	add	x8, x8, #1
	str	x8, [x26]
	bl	_fork
	tbnz	x0, #63, LBB0_9
; %bb.5:
	cbz	x0, LBB0_10
; %bb.6:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.7:
	mov	x0, x19
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_close
LBB0_8:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_debugx
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_10:
	ldr	w0, [x25, #12]
	bl	_pidfile_close
	ldr	w1, [x20]
Lloh21:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	cbz	w0, LBB0_12
; %bb.11:
	bl	_gai_strerror
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_log_errx
LBB0_12:
	ldr	x8, [x21]
	ldr	w8, [x8]
	stp	x22, x8, [sp, #-16]!
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_log_debugx
	add	sp, sp, #16
	mov	x0, x22
	bl	_log_set_peer_addr
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	bl	_setproctitle
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_connection_new
	mov	x19, x0
	ldr	w0, [x25, #8]
	mov	w1, #1
	bl	_set_timeout
	bl	_kernel_capsicate
	mov	x0, x19
	bl	_login
	ldr	x8, [x19]
Lloh30:
	adrp	x9, _CONN_SESSION_TYPE_NORMAL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CONN_SESSION_TYPE_NORMAL@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_kernel_handoff
Lloh33:
	adrp	x0, l_.str.7@PAGE
Lloh34:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_log_debugx
	b	LBB0_15
LBB0_14:
Lloh35:
	adrp	x9, _CONN_SESSION_TYPE_DISCOVERY@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CONN_SESSION_TYPE_DISCOVERY@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_discovery
LBB0_15:
Lloh38:
	adrp	x0, l_.str.8@PAGE
Lloh39:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_log_debugx
	mov	w0, #0
	bl	_exit
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incoming connection; not forking due to -d flag"

	.comm	_nchildren,8,3                  ; @nchildren
l_.str.1:                               ; @.str.1
	.asciz	"maxproc limit of %d child processes hit; waiting for child process to exit"

l_.str.2:                               ; @.str.2
	.asciz	"incoming connection; forking child process #%d"

l_.str.3:                               ; @.str.3
	.asciz	"fork"

	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
l_.str.4:                               ; @.str.4
	.asciz	"getnameinfo: %s"

l_.str.5:                               ; @.str.5
	.asciz	"accepted connection from %s; portal group \"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"%s"

	.comm	_CONN_SESSION_TYPE_NORMAL,8,3   ; @CONN_SESSION_TYPE_NORMAL
l_.str.7:                               ; @.str.7
	.asciz	"connection handed off to the kernel"

	.comm	_CONN_SESSION_TYPE_DISCOVERY,8,3 ; @CONN_SESSION_TYPE_DISCOVERY
l_.str.8:                               ; @.str.8
	.asciz	"nothing more to do; exiting"

	.no_dead_strip	_handle_connection
.subsections_via_symbols
