	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strtoport
_strtoport:                             ## @strtoport
	.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, (%rsi)
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_3
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movsbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strtol                         ## TAILCALL
LBB0_5:
	movb	(%r13), %al
	movq	%r13, %rbx
	testb	%al, %al
	je	LBB0_14
## %bb.6:
	movq	%r13, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%rbx), %rax
	cmpb	$0, 1(%rbx)
	cmovneq	%rax, %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isalnum
	movzbl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$92, %cl
	je	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$46, %cl
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$92, %cl
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$95, %cl
	je	LBB0_8
LBB0_14:
	movl	%ebx, %edi
	subl	%r13d, %edi
	incl	%edi
	movl	$1, %esi
	callq	_safe_calloc
	movq	%rax, %r12
	movq	%rbx, %rsi
	subq	%r13, %rsi
	je	LBB0_20
## %bb.15:
	movq	%r13, %rax
	notq	%rax
	addq	%rbx, %rax
	jne	LBB0_27
## %bb.16:
	xorl	%eax, %eax
LBB0_17:
	testb	$1, %sil
	je	LBB0_21
## %bb.18:
	movb	(%r13), %cl
	cmpb	$92, %cl
	je	LBB0_21
## %bb.19:
	movslq	%eax, %rdx
	incl	%eax
	movb	%cl, (%r12,%rdx)
	jmp	LBB0_21
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	cltq
	movb	$0, (%r12,%rax)
	movq	_IPPROTO_ETHERTYPE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_24
## %bb.22:
	movq	_ether_types@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_match_token
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_free
	cmpl	$-1, %r14d
	je	LBB0_3
## %bb.23:
	movq	%rbx, (%r15)
	jmp	LBB0_4
LBB0_24:
	testl	%r14d, %r14d
	je	LBB0_34
## %bb.25:
	movl	%r14d, %edi
	callq	_getprotobynumber
	movq	%rax, %r14
	movl	$1, %edi
	callq	_setservent
	testq	%r14, %r14
	je	LBB0_35
## %bb.26:
	movq	(%r14), %rsi
	jmp	LBB0_36
LBB0_27:
	movq	%rsi, %rdx
	andq	$-2, %rdx
	xorl	%eax, %eax
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	addq	$2, %r13
	addq	$-2, %rdx
	je	LBB0_17
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %ecx
	cmpb	$92, %cl
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movslq	%eax, %rdi
	incl	%eax
	movb	%cl, (%r12,%rdi)
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	movzbl	1(%r13), %ecx
	cmpb	$92, %cl
	je	LBB0_28
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movslq	%eax, %rdi
	incl	%eax
	movb	%cl, (%r12,%rdi)
	jmp	LBB0_28
LBB0_34:
	movl	$1, %edi
	callq	_setservent
LBB0_35:
	xorl	%esi, %esi
LBB0_36:
	movq	%r12, %rdi
	callq	_getservbyname
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_3
## %bb.37:
	movq	%rbx, (%r15)
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ntohs                          ## TAILCALL
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_ETHERTYPE,4,2          ## @IPPROTO_ETHERTYPE
	.comm	_ether_types,4,2                ## @ether_types
	.no_dead_strip	_strtoport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strtoport
_strtoport:                             ; @strtoport
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	x0, [x1]
	ldrb	w8, [x0]
	cbz	w8, LBB0_21
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	sxtb	w0, w8
	bl	_isdigit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_strtol
LBB0_3:
	ldrb	w8, [x21]
	mov	x23, x21
	cbz	w8, LBB0_12
; %bb.4:
	mov	x23, x21
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x23
	ldrb	w9, [x8, #1]!
	cmp	w9, #0
	csel	x23, x23, x8, eq
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x23, #1]!
	cbz	w8, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isalnum
	ldrb	w8, [x23]
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #92
	b.eq	LBB0_5
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #46
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #92
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #95
	b.eq	LBB0_6
LBB0_12:
	sub	w8, w23, w21
	add	w0, w8, #1
	mov	w1, #1
	bl	_safe_calloc
	mov	x22, x0
	cmp	x23, x21
	b.eq	LBB0_17
; %bb.13:
	mov	w8, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	cmp	x21, x23
	b.eq	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21]
	cmp	w9, #92
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	strb	w9, [x22, w8, sxtw]
	add	w8, w8, #1
	b	LBB0_14
LBB0_17:
	mov	w8, #0
LBB0_18:
	strb	wzr, [x22, w8, sxtw]
Lloh0:
	adrp	x8, _IPPROTO_ETHERTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_ETHERTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_23
; %bb.19:
Lloh3:
	adrp	x8, _ether_types@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ether_types@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_match_token
	mov	x20, x0
	mov	x0, x22
	bl	_free
	cmn	w20, #1
	b.eq	LBB0_21
; %bb.20:
	str	x23, [x19]
	b	LBB0_22
LBB0_21:
	mov	w20, #0
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	cbz	w20, LBB0_26
; %bb.24:
	mov	x0, x20
	bl	_getprotobynumber
	mov	x20, x0
	mov	w0, #1
	bl	_setservent
	cbz	x20, LBB0_27
; %bb.25:
	ldr	x1, [x20]
	b	LBB0_28
LBB0_26:
	mov	w0, #1
	bl	_setservent
LBB0_27:
	mov	x1, #0
LBB0_28:
	mov	x0, x22
	bl	_getservbyname
	mov	x20, x0
	mov	x0, x22
	bl	_free
	cbz	x20, LBB0_22
; %bb.29:
	str	x23, [x19]
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ntohs
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_ETHERTYPE,4,2          ; @IPPROTO_ETHERTYPE
	.comm	_ether_types,4,2                ; @ether_types
	.no_dead_strip	_strtoport
.subsections_via_symbols
