	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rsi
	callq	_parse_ports
	movq	_kadm_ports@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	leaq	-152(%rbp), %r13
	leaq	-96(%rbp), %rbx
	movq	_rk_SOCK_ERRNO@GOTPCREL(%rip), %r12
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_krb5_eai_to_heim_errno
	movl	%r14d, %edi
	movl	%eax, %esi
	leaq	L_.str.2(%rip), %rdx
	leaq	-80(%rbp), %rcx
	xorl	%eax, %eax
	callq	_krb5_warn
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %r15
	testq	%r15, %r15
	je	LBB0_27
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	movq	(%r15), %rsi
	xorl	%edi, %edi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %ecx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %r15
	movl	%r14d, %ebx
	movq	%r13, %r14
	movq	%r12, %r13
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movl	$32, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r13, %r12
	movq	%r14, %r13
	movl	%ebx, %r14d
	movq	%r15, %rbx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %ebx
	shlq	$2, %rbx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_realloc
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %r13
	testq	%r13, %r13
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	(%r12), %esi
	movl	%r14d, %edi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_krb5_warn
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	24(%r13), %r13
	testq	%r13, %r13
	je	LBB0_23
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%r13), %edi
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	callq	_socket
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_rk_IS_BAD_SOCKET
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_socket_set_reuseaddr
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_socket_set_ipv6only
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movl	%ebx, %edi
	callq	_bind
	movl	%eax, %edi
	callq	_rk_IS_SOCKET_ERROR
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	(%r12), %esi
	movl	%r14d, %edi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	_SOMAXCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_listen
	movl	%eax, %edi
	callq	_rk_IS_SOCKET_ERROR
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	(%r12), %esi
	movl	%r14d, %edi
	leaq	L_.str.6(%rip), %rdx
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	xorl	%eax, %eax
	callq	_krb5_warn
	movl	%ebx, %edi
	callq	_rk_closesocket
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	incl	%ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%ebx, (%rcx,%rax,4)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_freeaddrinfo
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	-152(%rbp), %r13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_krb5_warnx
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-96(%rbp), %rbx
	jmp	LBB0_26
LBB0_27:
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_29
	jmp	LBB0_28
LBB0_1:
	xorl	%ebx, %ebx
LBB0_28:
	leaq	L_.str.7(%rip), %rdx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_krb5_errx
	xorl	%edx, %edx
LBB0_29:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_wait_for_connection
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"+"

	.comm	_kadm_ports,8,3                 ## @kadm_ports
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"%u"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"failed to reallocate %lu bytes"

	.comm	_rk_SOCK_ERRNO,4,2              ## @rk_SOCK_ERRNO
L_.str.4:                               ## @.str.4
	.asciz	"socket"

L_.str.5:                               ## @.str.5
	.asciz	"bind"

	.comm	_SOMAXCONN,4,2                  ## @SOMAXCONN
L_.str.6:                               ## @.str.6
	.asciz	"listen"

L_.str.7:                               ## @.str.7
	.asciz	"no sockets to listen to - exiting"

.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, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x1, x8, x1, eq
	bl	_parse_ports
Lloh5:
	adrp	x8, _kadm_ports@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kadm_ports@GOTPAGEOFF]
Lloh7:
	ldr	x26, [x8]
	cbz	x26, LBB0_26
; %bb.1:
	mov	w20, #0
	mov	x27, #0
Lloh8:
	adrp	x25, _SOMAXCONN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SOMAXCONN@GOTPAGEOFF]
Lloh10:
	adrp	x22, _rk_SOCK_ERRNO@GOTPAGE
Lloh11:
	ldr	x22, [x22, _rk_SOCK_ERRNO@GOTPAGEOFF]
Lloh12:
	adrp	x23, l_.str.5@PAGE
Lloh13:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh14:
	adrp	x24, l_.str.4@PAGE
Lloh15:
	add	x24, x24, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_krb5_eai_to_heim_errno
	mov	x1, x0
	add	x8, sp, #56
	str	x8, [sp]
	mov	x0, x19
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_krb5_warn
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x26, #16]
	cbz	x26, LBB0_25
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh21:
	adrp	x8, _AI_PASSIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AI_PASSIVE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	str	w8, [sp, #48]
	str	w9, [sp, #28]
	ldr	x1, [x26]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x26, #8]
	add	x0, sp, #56
	mov	w1, #32
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	add	x1, sp, #56
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, #0
	bl	_getaddrinfo
	cbnz	w0, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w9, w9, #1
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w9, w20
	lsl	x21, x8, #2
	mov	x0, x27
	mov	x1, x21
	bl	_realloc
	cbz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	ldr	x21, [sp, #8]
	cbnz	x21, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, #0
	b	LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x24
	bl	_krb5_warn
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_22
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w1, w0, [x21, #12]
	ldr	w2, [x21, #8]
	bl	_socket
	mov	x27, x0
	bl	_rk_IS_BAD_SOCKET
	cbnz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x27
	mov	w1, #1
	bl	_socket_set_reuseaddr
	mov	x0, x27
	mov	w1, #1
	bl	_socket_set_ipv6only
	ldp	w2, w1, [x21]
	mov	x0, x27
	bl	_bind
	bl	_rk_IS_SOCKET_ERROR
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x23
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w1, [x25]
	mov	x0, x27
	bl	_listen
	bl	_rk_IS_SOCKET_ERROR
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w1, [x22]
	mov	x0, x19
Lloh29:
	adrp	x2, l_.str.6@PAGE
Lloh30:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=2
	bl	_krb5_warn
	mov	x0, x27
	bl	_rk_closesocket
	b	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=2
	str	w27, [x28, w20, uxtw #2]
	add	w20, w20, #1
	b	LBB0_14
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_freeaddrinfo
	mov	x27, x28
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_krb5_warnx
	b	LBB0_3
LBB0_25:
	cbnz	w20, LBB0_28
	b	LBB0_27
LBB0_26:
	mov	x27, #0
LBB0_27:
Lloh33:
	adrp	x2, l_.str.7@PAGE
Lloh34:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_errx
	mov	w20, #0
LBB0_28:
	mov	x0, x19
	mov	x1, x27
	mov	x2, x20
	bl	_wait_for_connection
	ldr	x8, [sp, #88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+"

	.comm	_kadm_ports,8,3                 ; @kadm_ports
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"%u"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"failed to reallocate %lu bytes"

	.comm	_rk_SOCK_ERRNO,4,2              ; @rk_SOCK_ERRNO
l_.str.4:                               ; @.str.4
	.asciz	"socket"

l_.str.5:                               ; @.str.5
	.asciz	"bind"

	.comm	_SOMAXCONN,4,2                  ; @SOMAXCONN
l_.str.6:                               ; @.str.6
	.asciz	"listen"

l_.str.7:                               ; @.str.7
	.asciz	"no sockets to listen to - exiting"

.subsections_via_symbols
