	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StrToProtocol                  ## -- Begin function StrToProtocol
	.p2align	4, 0x90
_StrToProtocol:                         ## @StrToProtocol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_IsEmptyStr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_StartWith
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_StartWith
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_IP_PROTO_TCP@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_StartWith
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_IP_PROTO_UDP@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_StartWith
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_IP_PROTO_ICMPV4@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_StartWith
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_IP_PROTO_ICMPV6@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	%r14, %rdi
	callq	_ToInt
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_ToInt
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_13
## %bb.16:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ToInt                          ## TAILCALL
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_StrCmpi
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_15
LBB0_13:
	movq	_INFINITE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip"

L_.str.1:                               ## @.str.1
	.asciz	"tcp"

	.comm	_IP_PROTO_TCP,4,2               ## @IP_PROTO_TCP
L_.str.2:                               ## @.str.2
	.asciz	"udp"

	.comm	_IP_PROTO_UDP,4,2               ## @IP_PROTO_UDP
L_.str.3:                               ## @.str.3
	.asciz	"icmpv4"

	.comm	_IP_PROTO_ICMPV4,4,2            ## @IP_PROTO_ICMPV4
L_.str.4:                               ## @.str.4
	.asciz	"icmpv6"

	.comm	_IP_PROTO_ICMPV6,4,2            ## @IP_PROTO_ICMPV6
L_.str.5:                               ## @.str.5
	.asciz	"0"

	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StrToProtocol                  ; -- Begin function StrToProtocol
	.p2align	2
_StrToProtocol:                         ; @StrToProtocol
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_IsEmptyStr
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_StartWith
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_StartWith
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _IP_PROTO_TCP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IP_PROTO_TCP@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_StartWith
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _IP_PROTO_UDP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IP_PROTO_UDP@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_StartWith
	cbz	x0, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _IP_PROTO_ICMPV4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IP_PROTO_ICMPV4@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_StartWith
	cbz	x0, LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _IP_PROTO_ICMPV6@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IP_PROTO_ICMPV6@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_13:
	mov	x0, x19
	bl	_ToInt
	cbz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_ToInt
	cmp	w0, #256
	b.lt	LBB0_17
; %bb.15:
Lloh18:
	adrp	x8, _INFINITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_StrCmpi
Lloh22:
	adrp	x8, _INFINITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_3
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ToInt
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip"

l_.str.1:                               ; @.str.1
	.asciz	"tcp"

	.comm	_IP_PROTO_TCP,4,2               ; @IP_PROTO_TCP
l_.str.2:                               ; @.str.2
	.asciz	"udp"

	.comm	_IP_PROTO_UDP,4,2               ; @IP_PROTO_UDP
l_.str.3:                               ; @.str.3
	.asciz	"icmpv4"

	.comm	_IP_PROTO_ICMPV4,4,2            ; @IP_PROTO_ICMPV4
l_.str.4:                               ; @.str.4
	.asciz	"icmpv6"

	.comm	_IP_PROTO_ICMPV6,4,2            ; @IP_PROTO_ICMPV6
l_.str.5:                               ; @.str.5
	.asciz	"0"

	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
