	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_ctrl_value_to_sym_internal ## -- Begin function pvr2_ctrl_value_to_sym_internal
	.p2align	4, 0x90
_pvr2_ctrl_value_to_sym_internal:       ## @pvr2_ctrl_value_to_sym_internal
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r9d
	movq	%rcx, %r8
	movl	%edx, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	movl	$0, (%r14)
	movq	(%rdi), %rcx
	movq	(%rcx), %rdx
	movq	_pvr2_ctl_int@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%r8, %rdi
	movl	%r9d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_scnprintf
	jmp	LBB0_12
LBB0_2:
	movq	_pvr2_ctl_bool@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_5
## %bb.3:
	testl	%eax, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r8, %rdi
	movl	%r9d, %esi
	xorl	%eax, %eax
	callq	_scnprintf
LBB0_12:
	movl	%eax, (%r14)
	movl	%r15d, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_pvr2_ctl_enum@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_10
## %bb.6:
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	cmpl	%eax, 24(%rcx)
	jle	LBB0_13
## %bb.8:
	movq	16(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.9:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_10:
	movq	_pvr2_ctl_bitmask@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_13
## %bb.11:
	andl	%esi, %eax
	andl	8(%rcx), %eax
	movl	12(%rcx), %ecx
	movl	%eax, %edi
	movl	$-1, %esi
	movl	$1, %edx
	callq	_gen_bitmask_string
	movl	%ebx, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pvr2_ctl_int,8,3               ## @pvr2_ctl_int
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_pvr2_ctl_bool,8,3              ## @pvr2_ctl_bool
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"true"

L_.str.3:                               ## @.str.3
	.asciz	"false"

	.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_value_to_sym_internal ; -- Begin function pvr2_ctrl_value_to_sym_internal
	.p2align	2
_pvr2_ctrl_value_to_sym_internal:       ; @pvr2_ctrl_value_to_sym_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x5
	mov	x5, x4
	mov	x4, x3
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	str	wzr, [x19]
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh3:
	adrp	x11, _pvr2_ctl_int@GOTPAGE
Lloh4:
	ldr	x11, [x11, _pvr2_ctl_int@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_2
; %bb.1:
	str	x2, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x11, _pvr2_ctl_bool@GOTPAGE
Lloh9:
	ldr	x11, [x11, _pvr2_ctl_bool@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_9
; %bb.3:
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w2, #0
	csel	x8, x9, x8, eq
LBB0_4:
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x4
	mov	x1, x5
	bl	_scnprintf
LBB0_6:
	mov	w20, #0
LBB0_7:
	str	w0, [x19]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	neg	w20, w10
Lloh17:
	adrp	x10, _pvr2_ctl_enum@GOTPAGE
Lloh18:
	ldr	x10, [x10, _pvr2_ctl_enum@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.10:
	tbnz	w2, #31, LBB0_8
; %bb.11:
	ldr	w9, [x8, #24]
	cmp	w9, w2
	b.le	LBB0_8
; %bb.12:
	ldr	x8, [x8, #16]
	ldr	x8, [x8, w2, uxtw #3]
	cbnz	x8, LBB0_4
; %bb.13:
	mov	w0, #0
	b	LBB0_6
LBB0_14:
Lloh20:
	adrp	x10, _pvr2_ctl_bitmask@GOTPAGE
Lloh21:
	ldr	x10, [x10, _pvr2_ctl_bitmask@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.15:
	and	w9, w2, w1
	ldp	w10, w3, [x8, #8]
	and	w0, w9, w10
	mov	w1, #-1
	mov	w2, #1
	bl	_gen_bitmask_string
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pvr2_ctl_int,8,3               ; @pvr2_ctl_int
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_pvr2_ctl_bool,8,3              ; @pvr2_ctl_bool
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"true"

l_.str.3:                               ; @.str.3
	.asciz	"false"

	.comm	_pvr2_ctl_enum,8,3              ; @pvr2_ctl_enum
	.comm	_pvr2_ctl_bitmask,8,3           ; @pvr2_ctl_bitmask
.subsections_via_symbols
