	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_setup
_client_setup:                          ## @client_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	movq	(%rdx), %rdi
	callq	_setprogname
	movq	%r15, %rdi
	callq	_krb5_init_context
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_krb5_config_get_bool
	movq	_forwardable@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_args@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_num_args@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rcx
	callq	_getarg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	movl	(%r13), %edx
	movl	$1, %edi
	callq	_usage
LBB0_4:
	movq	_help_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r12), %esi
	movl	(%r13), %edx
	xorl	%edi, %edi
	callq	_usage
LBB0_6:
	movq	_version_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_19
## %bb.7:
	movq	_port_str@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	callq	_roken_getservbyname
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_16
LBB0_15:
	movl	(%r15), %edi
	movq	_KF_PORT_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KF_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	callq	_krb5_getportbyname
	movl	%eax, %ebx
LBB0_16:
	movl	-44(%rbp), %eax
	cmpl	%eax, (%r14)
	jg	LBB0_18
## %bb.17:
	movq	_args@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	$1, %edi
	callq	_usage
	movl	-44(%rbp), %eax
LBB0_18:
	movl	%eax, (%r14)
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r12), %rdi
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	-56(%rbp), %rdx
	cmpq	(%r12), %rdx
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_16
	jmp	LBB0_15
LBB0_19:
	xorl	%edi, %edi
	callq	_print_version
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"krb5_init_context failed: %d"

L_.str.1:                               ## @.str.1
	.asciz	"libdefaults"

L_.str.2:                               ## @.str.2
	.asciz	"forwardable"

	.comm	_forwardable,4,2                ## @forwardable
	.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
L_.str.3:                               ## @.str.3
	.asciz	"tcp"

L_.str.4:                               ## @.str.4
	.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	_client_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_setup
_client_setup:                          ; @client_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #28]
	ldr	x0, [x2]
	bl	_setprogname
	mov	x0, x20
	bl	_krb5_init_context
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	ldr	w0, [x20]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x4, #0
	bl	_krb5_config_get_bool
Lloh6:
	adrp	x8, _forwardable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _forwardable@GOTPAGEOFF]
Lloh8:
	adrp	x22, _args@GOTPAGE
Lloh9:
	ldr	x22, [x22, _args@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
	ldr	w0, [x22]
Lloh11:
	adrp	x23, _num_args@GOTPAGE
Lloh12:
	ldr	x23, [x23, _num_args@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x19]
	add	x4, sp, #28
	mov	x3, x21
	bl	_getarg
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w0, #1
	bl	_usage
LBB0_4:
Lloh13:
	adrp	x8, _help_flag@GOTPAGE
Lloh14:
	ldr	x8, [x8, _help_flag@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w0, #0
	bl	_usage
LBB0_6:
Lloh16:
	adrp	x8, _version_flag@GOTPAGE
Lloh17:
	ldr	x8, [x8, _version_flag@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbnz	x8, LBB0_18
; %bb.7:
Lloh19:
	adrp	x24, _port_str@GOTPAGE
Lloh20:
	ldr	x24, [x24, _port_str@GOTPAGEOFF]
	ldr	x0, [x24]
	cbz	x0, LBB0_10
; %bb.8:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_roken_getservbyname
	cbz	x0, LBB0_14
; %bb.9:
	ldr	w21, [x0]
	cbnz	w21, LBB0_11
LBB0_10:
	ldr	w0, [x20]
Lloh23:
	adrp	x8, _KF_PORT_NAME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KF_PORT_NAME@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _KF_PORT_NUM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KF_PORT_NUM@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_krb5_getportbyname
	mov	x21, x0
LBB0_11:
	ldr	w9, [x19]
	ldr	w8, [sp, #28]
	cmp	w9, w8
	b.gt	LBB0_13
; %bb.12:
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w0, #1
	bl	_usage
	ldr	w8, [sp, #28]
LBB0_13:
	str	w8, [x19]
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_14:
	ldr	x0, [x24]
	add	x1, sp, #16
	mov	w2, #10
	bl	_strtol
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.15:
	ldr	x8, [sp, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_17:
	mov	x0, x21
	bl	_htons
	mov	x21, x0
	cbnz	w21, LBB0_11
	b	LBB0_10
LBB0_18:
	mov	x0, #0
	bl	_print_version
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_init_context failed: %d"

l_.str.1:                               ; @.str.1
	.asciz	"libdefaults"

l_.str.2:                               ; @.str.2
	.asciz	"forwardable"

	.comm	_forwardable,4,2                ; @forwardable
	.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
l_.str.3:                               ; @.str.3
	.asciz	"tcp"

l_.str.4:                               ; @.str.4
	.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	_client_setup
.subsections_via_symbols
