	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_setup
_common_setup:                          ## @common_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	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	movq	_args@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_num_args@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	%r15, %r9
	callq	_krb5_program_setup
	movl	%eax, (%rbx)
	movq	_help_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rsi
	movl	(%r13), %edx
	xorl	%edi, %edi
	callq	*%r15
LBB0_2:
	movq	_version_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.3:
	movq	_port_str@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.4:
	leaq	L_.str(%rip), %rsi
	callq	_roken_getservbyname
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rdx
	cmpq	(%rbx), %rdx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_9:
	movl	%r15d, %edi
	callq	_htons
	testl	%eax, %eax
	jne	LBB0_11
LBB0_13:
	movl	(%r14), %edi
	movq	_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$4711, %ecx                     ## imm = 0x1267
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_krb5_getportbyname             ## TAILCALL
LBB0_12:
	xorl	%edi, %edi
	callq	_print_version
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_args,8,3                       ## @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	_PORT,4,2                       ## @PORT
	.no_dead_strip	_common_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_setup
_common_setup:                          ; @common_setup
	.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, x3
	mov	x21, x1
	mov	x19, x0
	ldr	w1, [x1]
Lloh0:
	adrp	x22, _args@GOTPAGE
Lloh1:
	ldr	x22, [x22, _args@GOTPAGEOFF]
	ldr	x3, [x22]
Lloh2:
	adrp	x23, _num_args@GOTPAGE
Lloh3:
	ldr	x23, [x23, _num_args@GOTPAGEOFF]
	ldr	w4, [x23]
	mov	x5, x20
	bl	_krb5_program_setup
	str	w0, [x21]
Lloh4:
	adrp	x8, _help_flag@GOTPAGE
Lloh5:
	ldr	x8, [x8, _help_flag@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x1, [x22]
	ldr	w2, [x23]
	mov	w0, #0
	blr	x20
LBB0_2:
Lloh7:
	adrp	x8, _version_flag@GOTPAGE
Lloh8:
	ldr	x8, [x8, _version_flag@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
; %bb.3:
Lloh10:
	adrp	x21, _port_str@GOTPAGE
Lloh11:
	ldr	x21, [x21, _port_str@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_11
; %bb.4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_roken_getservbyname
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x0]
	cbz	w0, LBB0_11
LBB0_6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	x0, [x21]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	x2, [sp, #8]
	ldr	x8, [x21]
	cmp	x2, x8
	b.ne	LBB0_10
; %bb.9:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_10:
	mov	x0, x20
	bl	_htons
	cbnz	w0, LBB0_6
LBB0_11:
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _PORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PORT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	w3, #4711
	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
	add	sp, sp, #80
	b	_krb5_getportbyname
LBB0_12:
	mov	x0, #0
	bl	_print_version
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_args,8,3                       ; @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	_PORT,4,2                       ; @PORT
	.no_dead_strip	_common_setup
.subsections_via_symbols
