	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_ctrl_sym_to_value         ## -- Begin function pvr2_ctrl_sym_to_value
	.p2align	4, 0x90
_pvr2_ctrl_sym_to_value:                ## @pvr2_ctrl_sym_to_value
	.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	%r8, %r12
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	subl	(%rsi), %r13d
	xorl	%ecx, %ecx
	movl	$0, (%r15)
	movl	$0, (%r8)
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rcx), %eax
	addb	$-127, %al
	cmpb	$-95, %al
	ja	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_2
## %bb.4:
	movl	%edx, %ecx
LBB0_5:
	subl	%ecx, %ebx
	movl	%ecx, %eax
	addq	%rax, %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	decq	%rbx
	movl	%ebx, %eax
	movzbl	(%r14,%rax), %eax
	addb	$-127, %al
	cmpb	$-94, %al
	jb	LBB0_6
## %bb.8:
	cmpl	$-1, %ebx
	je	LBB0_13
## %bb.9:
	incq	%rbx
	movq	(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_LOCK_TAKE
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rax
	movq	(%rax), %rcx
	movq	_pvr2_ctl_int@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.10:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_11:
	callq	_parse_token
	testl	%eax, %eax
	js	LBB0_20
## %bb.12:
	movl	(%r12), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_pvr2_ctrl_range_check
	movq	%rbx, %rsi
	movl	%eax, %r13d
	movl	$-1, (%r15)
	jmp	LBB0_26
LBB0_13:
	xorl	%r13d, %r13d
	subl	(%rsi), %r13d
	jmp	LBB0_27
LBB0_14:
	movq	_pvr2_ctl_bool@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.15:
	movq	_boolNames@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_parse_token
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_23
## %bb.16:
	cmpl	$1, %r13d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_25
## %bb.17:
	xorl	%eax, %eax
	cmpl	$0, (%r12)
	setne	%al
	jmp	LBB0_24
LBB0_18:
	movq	_pvr2_ctl_enum@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_21
## %bb.19:
	movq	24(%rax), %rcx
	movl	16(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	jmp	LBB0_11
LBB0_20:
	movl	%eax, %r13d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$-1, (%r15)
	jmp	LBB0_26
LBB0_21:
	movq	_pvr2_ctl_bitmask@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_26
## %bb.22:
	movl	8(%rax), %r9d
	movl	12(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_parse_tlist
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_26
LBB0_23:
	movl	(%r12), %eax
	andl	$1, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_24:
	movl	%eax, (%r12)
LBB0_25:
	movl	$1, (%r15)
LBB0_26:
	movq	(%rsi), %rax
	movl	(%rax), %edi
	callq	_LOCK_GIVE
LBB0_27:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pvr2_ctl_int,8,3               ## @pvr2_ctl_int
	.comm	_pvr2_ctl_bool,8,3              ## @pvr2_ctl_bool
	.comm	_boolNames,8,3                  ## @boolNames
	.comm	_pvr2_ctl_enum,8,3              ## @pvr2_ctl_enum
	.comm	_pvr2_ctl_bitmask,8,3           ## @pvr2_ctl_bitmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_ctrl_sym_to_value         ; -- Begin function pvr2_ctrl_sym_to_value
	.p2align	2
_pvr2_ctrl_sym_to_value:                ; @pvr2_ctrl_sym_to_value
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x8]
	neg	w22, w9
	str	wzr, [x3]
	str	wzr, [x4]
	cbz	w2, LBB0_5
; %bb.1:
	mov	x9, #0
	mov	w10, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x1, x9]
	sub	w11, w11, #127
	cmn	w11, #95
	b.hi	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x10
	b	LBB0_6
LBB0_5:
	mov	w9, #0
LBB0_6:
	sub	w10, w2, w9
	add	x23, x1, w9, uxtw
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x10, x10, #1
	ldrb	w9, [x23, w10, uxtw]
	sub	w9, w9, #127
	cmn	w9, #94
	b.lo	LBB0_7
; %bb.9:
	cmn	w10, #1
	b.eq	LBB0_14
; %bb.10:
	add	x24, x10, #1
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_LOCK_TAKE
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _pvr2_ctl_int@GOTPAGE
Lloh3:
	ldr	x10, [x10, _pvr2_ctl_int@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.11:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	mov	x3, #0
	mov	w4, #0
	bl	_parse_token
	tbnz	w0, #31, LBB0_13
LBB0_12:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pvr2_ctrl_range_check
LBB0_13:
	mov	x22, x0
	mov	w8, #-1
	b	LBB0_26
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_28
LBB0_15:
Lloh5:
	adrp	x10, _pvr2_ctl_bool@GOTPAGE
Lloh6:
	ldr	x10, [x10, _pvr2_ctl_bool@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.16:
Lloh8:
	adrp	x8, _boolNames@GOTPAGE
Lloh9:
	ldr	x8, [x8, _boolNames@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x4, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	mov	x3, x22
	bl	_parse_token
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.17:
	cmp	w22, #1
	b.ne	LBB0_25
; %bb.18:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_24
LBB0_19:
Lloh11:
	adrp	x10, _pvr2_ctl_enum@GOTPAGE
Lloh12:
	ldr	x10, [x10, _pvr2_ctl_enum@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_21
; %bb.20:
	ldr	x3, [x8, #24]
	ldr	w4, [x8, #16]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	bl	_parse_token
	tbz	w0, #31, LBB0_12
	b	LBB0_13
LBB0_21:
Lloh14:
	adrp	x10, _pvr2_ctl_bitmask@GOTPAGE
Lloh15:
	ldr	x10, [x10, _pvr2_ctl_bitmask@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_27
; %bb.22:
	ldp	w5, w4, [x8, #8]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x20
	mov	x3, x21
	bl	_parse_tlist
	mov	x22, x0
	b	LBB0_27
LBB0_23:
	ldr	w8, [x21]
	and	w8, w8, #0x1
LBB0_24:
	str	w8, [x21]
LBB0_25:
	mov	w8, #1
LBB0_26:
	str	w8, [x20]
LBB0_27:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_LOCK_GIVE
LBB0_28:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pvr2_ctl_int,8,3               ; @pvr2_ctl_int
	.comm	_pvr2_ctl_bool,8,3              ; @pvr2_ctl_bool
	.comm	_boolNames,8,3                  ; @boolNames
	.comm	_pvr2_ctl_enum,8,3              ; @pvr2_ctl_enum
	.comm	_pvr2_ctl_bitmask,8,3           ; @pvr2_ctl_bitmask
.subsections_via_symbols
