	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_std_str_to_id             ## -- Begin function pvr2_std_str_to_id
	.p2align	4, 0x90
_pvr2_std_str_to_id:                    ## @pvr2_std_str_to_id
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_21
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %r15
	xorl	%eax, %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	cmpb	$45, (%r15,%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_4
	jmp	LBB0_20
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %r14d
	movq	_std_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_find_std_name
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r12d
	subl	%ebx, %r12d
	je	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	addq	%rax, %r15
	movl	%r14d, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r12d
	movb	$1, %r14b
	xorl	%ebx, %ebx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r15,%rbx), %eax
	cmpb	$47, %al
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpb	$59, %al
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%rbx
	cmpq	%r12, %rbx
	setb	%r14b
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_std_items@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_find_std_name
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %ecx
	andl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	orl	%ecx, %edx
	movzbl	%r14b, %eax
	andl	$1, %eax
	addl	%eax, %ebx
	addq	%rbx, %r15
	subl	%ebx, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_22
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_21:
	xorl	%edx, %edx
LBB0_22:
	movl	$1, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.23:
	movl	%edx, (%rcx)
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	%r14d, %edx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_std_groups,4,2                 ## @std_groups
	.comm	_std_items,4,2                  ## @std_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_std_str_to_id             ; -- Begin function pvr2_std_str_to_id
	.p2align	2
_pvr2_std_str_to_id:                    ; @pvr2_std_str_to_id
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	cbz	w2, LBB0_20
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	w25, #0
	mov	w23, #0
	mov	w24, #0
Lloh0:
	adrp	x26, _std_items@GOTPAGE
Lloh1:
	ldr	x26, [x26, _std_items@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cbnz	w25, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20, w22, uxtw]
	cmp	w8, #45
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w22, w22, #1
	cmp	w21, w22
	b.ne	LBB0_4
	b	LBB0_19
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x8, _std_groups@GOTPAGE
Lloh3:
	ldr	x8, [x8, _std_groups@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x23
	mov	x2, x20
	mov	x3, x22
	bl	_find_std_name
	cbz	x0, LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w21, #1
	subs	w21, w8, w22
	b.eq	LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w22, #1
	ldr	w23, [x0]
	add	x20, x20, w8, uxtw
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, #0
	mov	w27, w21
	mov	w28, #1
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20, x22]
	cmp	w8, #47
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	w8, #59
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x22, #1
	cmp	x22, x27
	cset	w28, lo
	cmp	x27, x22
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
	mov	x22, x27
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #0
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [x26]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_find_std_name
	cbz	x0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x0]
	ands	w8, w8, w23
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	orr	w24, w8, w24
	and	w8, w28, #0x1
	add	w8, w22, w8
	add	x20, x20, x8
	subs	w21, w27, w8
	b.ne	LBB0_2
	b	LBB0_21
LBB0_19:
	mov	w0, #0
	b	LBB0_24
LBB0_20:
	mov	w24, #0
LBB0_21:
	cbz	x19, LBB0_23
; %bb.22:
	str	w24, [x19]
LBB0_23:
	mov	w0, #1
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_std_groups,4,2                 ; @std_groups
	.comm	_std_items,4,2                  ; @std_items
.subsections_via_symbols
