	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function StrToPortRange
_StrToPortRange:                        ## @StrToPortRange
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %ebx
	movl	(%rax), %edi
	callq	_ntohs
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_SETLOPORT
LBB0_4:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_SETNUMPORTS
LBB0_10:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	movl	$45, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_sscanf
	movl	(%r15), %edi
	movq	-40(%rbp), %rsi
	callq	_SETLOPORT
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_SETNUMPORTS
	movq	-48(%rbp), %rsi
	subq	-40(%rbp), %rsi
	jl	LBB0_8
## %bb.7:
	movl	(%r15), %edi
	incq	%rsi
	callq	_SETNUMPORTS
LBB0_8:
	movl	(%r15), %edi
	callq	_GETNUMPORTS
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_10
LBB0_3:
	movl	(%r15), %r12d
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_SETLOPORT
	cmpq	%r14, -56(%rbp)
	jne	LBB0_4
## %bb.5:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s: unknown service"

L_.str.1:                               ## @.str.1
	.asciz	"%hu-%hu"

L_.str.2:                               ## @.str.2
	.asciz	"invalid port range %s"

	.no_dead_strip	_StrToPortRange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function StrToPortRange
_StrToPortRange:                        ; @StrToPortRange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_getservbyname
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w20, [x19]
	ldr	w0, [x0]
	bl	_ntohs
	mov	x1, x0
	mov	x0, x20
	bl	_SETLOPORT
LBB0_2:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_SETNUMPORTS
LBB0_3:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x20
	mov	w1, #45
	bl	_strchr
	cbz	x0, LBB0_9
LBB0_5:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_sscanf
	ldr	w0, [x19]
	ldr	x1, [sp, #16]
	bl	_SETLOPORT
	ldr	w0, [x19]
	mov	x1, #0
	bl	_SETNUMPORTS
	ldp	x9, x8, [sp, #8]
	subs	x8, x9, x8
	b.lt	LBB0_7
; %bb.6:
	ldr	w0, [x19]
	add	x1, x8, #1
	bl	_SETNUMPORTS
LBB0_7:
	ldr	w0, [x19]
	bl	_GETNUMPORTS
	cbnz	x0, LBB0_3
; %bb.8:
Lloh2:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_errx
	b	LBB0_3
LBB0_9:
	ldr	w22, [x19]
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	mov	x1, x0
	mov	x0, x22
	bl	_SETLOPORT
	ldr	x8, [sp, #24]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.10:
Lloh7:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_errx
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s: unknown service"

l_.str.1:                               ; @.str.1
	.asciz	"%hu-%hu"

l_.str.2:                               ; @.str.2
	.asciz	"invalid port range %s"

	.no_dead_strip	_StrToPortRange
.subsections_via_symbols
