	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_reg_reservation
_parse_reg_reservation:                 ## @parse_reg_reservation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$0, -12(%rbp)
	movsbl	(%rdi), %ecx
	addl	$-98, %ecx
	cmpl	$17, %ecx
	ja	LBB0_3
## %bb.1:
	movq	_BWRITERSPR_CONST@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_BWRITERSPR_CONSTBOOL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_4:
	movq	_BWRITERSPR_CONSTINT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_BWRITERSPR_SAMPLER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	incq	%rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_sscanf
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	$8, %edi
	callq	_d3dcompiler_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	%ebx, (%rax)
	movl	-12(%rbp), %ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
LBB0_10:
	callq	_FIXME
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_BWRITERSPR_CONST,4,2           ## @BWRITERSPR_CONST
	.comm	_BWRITERSPR_CONSTINT,4,2        ## @BWRITERSPR_CONSTINT
	.comm	_BWRITERSPR_CONSTBOOL,4,2       ## @BWRITERSPR_CONSTBOOL
	.comm	_BWRITERSPR_SAMPLER,4,2         ## @BWRITERSPR_SAMPLER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported register type.\n"

L_.str.1:                               ## @.str.1
	.asciz	"%u"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported register reservation syntax.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Out of memory.\n"

	.no_dead_strip	_parse_reg_reservation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_reg_reservation
_parse_reg_reservation:                 ; @parse_reg_reservation
	.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
	str	wzr, [sp, #12]
	ldrsb	w8, [x0]
	sub	w9, w8, #98
	cmp	w9, #17
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _BWRITERSPR_CONST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BWRITERSPR_CONST@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _BWRITERSPR_CONSTBOOL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BWRITERSPR_CONSTBOOL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh8:
	adrp	x8, _BWRITERSPR_CONSTINT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BWRITERSPR_CONSTINT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _BWRITERSPR_SAMPLER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BWRITERSPR_SAMPLER@GOTPAGEOFF]
LBB0_6:
	ldr	w19, [x8]
	add	x0, x0, #1
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cbz	w0, LBB0_9
; %bb.7:
	mov	w0, #8
	bl	_d3dcompiler_alloc
	cbz	x0, LBB0_11
; %bb.8:
	str	w19, [x0]
	ldr	w8, [sp, #12]
	str	w8, [x0, #4]
	b	LBB0_13
LBB0_9:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_FIXME
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_BWRITERSPR_CONST,4,2           ; @BWRITERSPR_CONST
	.comm	_BWRITERSPR_CONSTINT,4,2        ; @BWRITERSPR_CONSTINT
	.comm	_BWRITERSPR_CONSTBOOL,4,2       ; @BWRITERSPR_CONSTBOOL
	.comm	_BWRITERSPR_SAMPLER,4,2         ; @BWRITERSPR_SAMPLER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported register type.\n"

l_.str.1:                               ; @.str.1
	.asciz	"%u"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported register reservation syntax.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Out of memory.\n"

	.no_dead_strip	_parse_reg_reservation
.subsections_via_symbols
