	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_setup
_server_setup:                          ## @server_setup
	.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
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	_args@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	_num_args@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	_usage@GOTPCREL(%rip), %r9
	callq	_krb5_program_setup
	movl	%eax, %r14d
	movq	_help_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r13), %esi
	movl	(%rbx), %edx
	xorl	%edi, %edi
	callq	_usage
LBB0_2:
	movq	_version_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.3:
	movq	_port_str@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.4:
	leaq	L_.str(%rip), %rsi
	callq	_roken_getservbyname
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
LBB0_11:
	movl	(%r12), %edi
	movq	_KF_PORT_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KF_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_krb5_getportbyname
	movl	%eax, %ebx
LBB0_12:
	movslq	%r14d, %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_14
## %bb.13:
	movq	_args@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_num_args@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	callq	_usage
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r13), %rdi
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_9:
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
	jmp	LBB0_11
LBB0_15:
	xorl	%edi, %edi
	callq	_print_version
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_args,4,2                       ## @args
	.comm	_num_args,4,2                   ## @num_args
	.comm	_help_flag,8,3                  ## @help_flag
	.comm	_version_flag,8,3               ## @version_flag
	.comm	_port_str,8,3                   ## @port_str
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

L_.str.1:                               ## @.str.1
	.asciz	"Bad port `%s'"

	.comm	_KF_PORT_NAME,4,2               ## @KF_PORT_NAME
	.comm	_KF_PORT_NUM,4,2                ## @KF_PORT_NUM
	.no_dead_strip	_server_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_setup
_server_setup:                          ; @server_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x23, _args@GOTPAGE
Lloh1:
	ldr	x23, [x23, _args@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh2:
	adrp	x24, _num_args@GOTPAGE
Lloh3:
	ldr	x24, [x24, _num_args@GOTPAGEOFF]
	ldr	w4, [x24]
Lloh4:
	adrp	x5, _usage@GOTPAGE
Lloh5:
	ldr	x5, [x5, _usage@GOTPAGEOFF]
	bl	_krb5_program_setup
	mov	x20, x0
Lloh6:
	adrp	x8, _help_flag@GOTPAGE
Lloh7:
	ldr	x8, [x8, _help_flag@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	w0, #0
	bl	_usage
LBB0_2:
Lloh9:
	adrp	x8, _version_flag@GOTPAGE
Lloh10:
	ldr	x8, [x8, _version_flag@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbnz	x8, LBB0_14
; %bb.3:
Lloh12:
	adrp	x25, _port_str@GOTPAGE
Lloh13:
	ldr	x25, [x25, _port_str@GOTPAGEOFF]
	ldr	x0, [x25]
	cbz	x0, LBB0_6
; %bb.4:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_roken_getservbyname
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w22, [x0]
	cbnz	w22, LBB0_7
LBB0_6:
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _KF_PORT_NAME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KF_PORT_NAME@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _KF_PORT_NUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KF_PORT_NUM@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	bl	_krb5_getportbyname
	mov	x22, x0
LBB0_7:
	ldr	x8, [x19, w20, sxtw #3]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	w0, #1
	bl	_usage
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x0, [x25]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.11:
	ldr	x2, [sp, #8]
	ldr	x8, [x25]
	cmp	x2, x8
	b.ne	LBB0_13
; %bb.12:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	mov	x0, x22
	bl	_htons
	mov	x22, x0
	cbnz	w22, LBB0_7
	b	LBB0_6
LBB0_14:
	mov	x0, #0
	bl	_print_version
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_args,4,2                       ; @args
	.comm	_num_args,4,2                   ; @num_args
	.comm	_help_flag,8,3                  ; @help_flag
	.comm	_version_flag,8,3               ; @version_flag
	.comm	_port_str,8,3                   ; @port_str
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

l_.str.1:                               ; @.str.1
	.asciz	"Bad port `%s'"

	.comm	_KF_PORT_NAME,4,2               ; @KF_PORT_NAME
	.comm	_KF_PORT_NUM,4,2                ; @KF_PORT_NUM
	.no_dead_strip	_server_setup
.subsections_via_symbols
