	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_ports
_parse_ports:                           ## @parse_ports
	.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	%rdi, %r15
	movq	_ports@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	_INT_BIT@GOTPCREL(%rip), %rcx
	movl	$65536, %eax                    ## imm = 0x10000
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%eax, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movb	(%r15), %al
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	(%r13), %al
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %r15
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
	testb	%al, %al
	je	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	(%r15), %al
	movq	%r15, %r13
	testb	%al, %al
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movzbl	1(%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	cmpq	%r13, %r15
	jae	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %r14
	subq	%r15, %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%r12,4), %r12d
	movsbl	(%r15,%rbx), %edi
	callq	_digittoint
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12,2), %r12d
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$65536, %r12d                   ## imm = 0x10000
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %r13
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_SET_PORT
	movb	(%r13), %al
	movsbl	%al, %ecx
	cmpl	$44, %ecx
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$45, %ecx
	jne	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r13), %r14
	movb	1(%r13), %al
	xorl	%ebx, %ebx
	testb	%al, %al
	je	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movzbl	1(%r13,%r15), %eax
	incq	%r15
	testb	%al, %al
	jne	LBB0_21
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$2, %r15
	jb	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%r15, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rbx,%rbx,4), %ebx
	movsbl	(%r14), %edi
	callq	_digittoint
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx,2), %ebx
	incq	%r14
	cmpq	%r13, %r14
	jb	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, %ebx
	jl	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$65536, %ebx                    ## imm = 0x10000
	jl	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, %r12d
	jge	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=1
	negl	%ebx
	incl	%r12d
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	callq	_SET_PORT
	leal	(%rbx,%r12), %eax
	incl	%eax
	movl	%r12d, %ecx
	incl	%ecx
	movl	%ecx, %r12d
	cmpl	$1, %eax
	jne	LBB0_35
LBB0_36:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	cmpb	$44, (%r14)
	sete	%r13b
	addq	%r14, %r13
	jmp	LBB0_24
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports,8,3                      ## @ports
	.comm	_INT_BIT,4,2                    ## @INT_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calloc()"

L_.str.1:                               ## @.str.1
	.asciz	"syntax error in port range"

L_.str.2:                               ## @.str.2
	.asciz	"invalid port number"

	.no_dead_strip	_parse_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_ports
_parse_ports:                           ; @parse_ports
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
Lloh0:
	adrp	x19, _ports@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ports@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _INT_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #65536
	sdiv	w0, w9, w8
	mov	w1, #4
	bl	_calloc
	str	x0, [x19]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldrb	w8, [x21]
	cbz	w8, LBB0_39
; %bb.4:
Lloh7:
	adrp	x19, l_.str.1@PAGE
Lloh8:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	w23, #10
Lloh9:
	adrp	x20, l_.str.2@PAGE
Lloh10:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_39
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_31 Depth 2
                                        ;     Child Loop BB0_37 Depth 2
	sxtb	w0, w8
	bl	_isdigit
	cbz	x0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x21
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isdigit
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w8, [x24, #1]!
	cbnz	w8, LBB0_10
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x21, x24
	b.hs	LBB0_20
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w22, #0
	sub	x25, x24, x21
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x21], #1
	bl	_digittoint
	madd	w22, w22, w23, w0
	subs	x25, x25, #1
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, #16, lsl #12               ; =65536
	b.lo	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_errx
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x24
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	mov	x1, x19
	bl	_errx
	ldrb	w8, [x21]
	cbnz	w8, LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x21
	cmp	x21, x24
	b.lo	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w22, #0
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_SET_PORT
	ldrsb	w8, [x21]
	cmp	w8, #44
	b.eq	LBB0_5
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #45
	b.ne	LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x21
	ldrb	w8, [x24, #1]!
	cbz	w8, LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #2
LBB0_25:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isdigit
	cbz	x0, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldrb	w8, [x21, x25]
	add	x25, x25, #1
	cbnz	w8, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x25, #1
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w8, w8, #0xff
	cbnz	w8, LBB0_7
	b	LBB0_39
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x25, #1
	cmp	x8, #1
	b.ls	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
	add	x21, x21, x8
LBB0_31:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x24], #1
	bl	_digittoint
	madd	w25, w25, w23, w0
	cmp	x24, x21
	b.lo	LBB0_31
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w25, w22
	b.ge	LBB0_34
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
	cmp	w25, w22
	b.lt	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w25, #16, lsl #12               ; =65536
	b.lt	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_errx
LBB0_36:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, w25
	b.ge	LBB0_38
LBB0_37:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w22, w22, #1
	mov	x0, x22
	bl	_SET_PORT
	cmp	w25, w22
	b.ne	LBB0_37
LBB0_38:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x24
	ldrb	w9, [x8], #1
	cmp	w9, #44
	csel	x21, x24, x8, ne
	b	LBB0_6
LBB0_39:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ports,8,3                      ; @ports
	.comm	_INT_BIT,4,2                    ; @INT_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calloc()"

l_.str.1:                               ; @.str.1
	.asciz	"syntax error in port range"

l_.str.2:                               ; @.str.2
	.asciz	"invalid port number"

	.no_dead_strip	_parse_ports
.subsections_via_symbols
