	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function changeitems
_changeitems:                           ## @changeitems
	.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
	movl	%esi, %r13d
	callq	_strdup
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, (%rax)
LBB0_2:
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %r15
	movq	%r12, %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	1(%r14), %al
	incq	%r14
	testb	%al, %al
	je	LBB0_7
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_10
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, (%rbx)
	incq	%rbx
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r14, %rbx
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_protos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %esi
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rcx, %rsi
	movq	_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmoveq	%r15, %rsi
	movq	%r14, %rdi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_selectport
	jmp	LBB0_22
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_inet_addr
	movq	%rax, -48(%rbp)
	movq	_INADDR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_error
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-48(%rbp), %rdi
	movl	%r13d, %esi
	callq	_selecthost
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	(%rbx), %al
	movq	%rbx, %r14
	testb	%al, %al
	jne	LBB0_4
LBB0_7:
	movq	%r12, %rdi
	callq	_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_protos,8,3                     ## @protos
	.comm	_TCP,8,3                        ## @TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

	.comm	_UDP,8,3                        ## @UDP
L_.str.1:                               ## @.str.1
	.asciz	"udp"

	.comm	_INADDR_NONE,8,3                ## @INADDR_NONE
L_.str.2:                               ## @.str.2
	.asciz	"%s: unknown host or port"

	.no_dead_strip	_changeitems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function changeitems
_changeitems:                           ; @changeitems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	bl	_strdup
	mov	x21, x0
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x0]
LBB0_2:
	ldrb	w8, [x21]
	cbz	w8, LBB0_21
; %bb.3:
Lloh0:
	adrp	x23, _protos@GOTPAGE
Lloh1:
	ldr	x23, [x23, _protos@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TCP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TCP@GOTPAGEOFF]
Lloh4:
	adrp	x25, l_.str.1@PAGE
Lloh5:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh6:
	adrp	x26, _UDP@GOTPAGE
Lloh7:
	ldr	x26, [x26, _UDP@GOTPAGEOFF]
Lloh8:
	adrp	x27, l_.str@PAGE
Lloh9:
	add	x27, x27, l_.str@PAGEOFF
Lloh10:
	adrp	x28, _INADDR_NONE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _INADDR_NONE@GOTPAGEOFF]
	mov	x20, x21
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20, #1]!
	cbz	w8, LBB0_21
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x20
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x22, #1]!
	cbnz	w8, LBB0_8
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x22], #1
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x22, x20
	b.eq	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	ldr	x10, [x26]
	cmp	x8, x10
	csel	x10, x25, xzr, eq
	cmp	x8, x9
	csel	x1, x27, x10, eq
	mov	x0, x20
	bl	_getservbyname
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x0]
	mov	x1, x19
	bl	_selectport
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_gethostbyname
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8]
	str	x8, [sp, #8]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_inet_addr
	str	x0, [sp, #8]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_error
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	x1, x19
	bl	_selecthost
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x22]
	mov	x20, x22
	cbnz	w8, LBB0_5
LBB0_21:
	mov	x0, x21
	bl	_free
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_protos,8,3                     ; @protos
	.comm	_TCP,8,3                        ; @TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

	.comm	_UDP,8,3                        ; @UDP
l_.str.1:                               ; @.str.1
	.asciz	"udp"

	.comm	_INADDR_NONE,8,3                ; @INADDR_NONE
l_.str.2:                               ; @.str.2
	.asciz	"%s: unknown host or port"

	.no_dead_strip	_changeitems
.subsections_via_symbols
