	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_preshader
_parse_preshader:                       ## @parse_preshader
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movzwl	(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %r14
	decl	%ebx
	movq	_FOURCC_CLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_find_bytecode_comment
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %esi
	movl	-44(%rbp), %ecx
	decl	%ecx
	shrl	%ecx
	cmpl	%ecx, %esi
	jbe	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_WARN
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_4:
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	addq	$4, %rax
LBB0_8:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TRACE
	movq	_FOURCC_FXLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_find_bytecode_comment
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movslq	(%rax), %rsi
	movl	%esi, (%r12)
	decl	-44(%rbp)
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rcx
	shrq	$5, %rdx
	cmpq	%rsi, %rdx
	jae	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_WARN
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
LBB0_39:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_12:
	leaq	L_.str.6(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TRACE
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,4), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_37
## %bb.13:
	cmpl	$0, (%r12)
	je	LBB0_19
## %bb.14:
	addq	$4, %r14
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_parse_pres_ins
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movl	$40, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rcx
	movq	%rax, %r14
	subq	%rcx, %rax
	shrq	$2, %rax
	movl	-44(%rbp), %esi
	subl	%eax, %esi
	movl	%esi, -44(%rbp)
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jae	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	40(%rdx), %r15
	addq	16(%r12), %rdx
	movq	%r14, %rdi
	callq	_parse_pres_ins
	movq	%r15, %rdx
	testq	%rax, %rax
	jne	LBB0_16
LBB0_18:
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_19:
	movq	_pres_regset2table@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%r12), %r14
	movl	%eax, 24(%r12)
	movl	(%r13), %r15d
	movl	$-131072, (%r13)                ## imm = 0xFFFE0000
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_get_constants_desc
	movl	%eax, %ebx
	movl	%r15d, (%r13)
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_41
## %bb.20:
	movq	_PRES_REGTAB_IMMED@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_get_reg_components
	movl	%eax, %ecx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movq	(%rbx), %rdi
	testl	%edx, %edx
	je	LBB0_22
## %bb.21:
	movq	%rsi, %rbx
	callq	_get_reg_components
	leaq	L_.str.7(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_FIXME
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_22:
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_get_reg_offset
	leaq	8(%r12), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rdi
	movq	(%rbx), %rcx
	movl	%eax, (%rdi,%rcx,4)
	movq	%r14, %rsi
	callq	_update_table_sizes_consts
	cmpl	$0, (%r12)
	je	LBB0_36
## %bb.23:
	xorl	%edx, %edx
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movq	_pres_op_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%r12), %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rdx,4), %rdi
	movq	(%rax,%rdi,8), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_42
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	$20, %r15d
	xorl	%r14d, %r14d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
LBB0_26:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rax,%rdi,8), %rcx
	movq	-20(%rcx,%r15), %r13
	movq	_PRES_REGTAB_COUNT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r13
	jne	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	cmpq	$0, 32(%rax,%rdi,8)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	xorl	%esi, %esi
	testq	%r14, %r14
	je	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	8(%rax,%rdi,8), %esi
	decl	%esi
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	-4(%rcx,%r15), %r13d
	addl	(%rcx,%r15), %esi
	jmp	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	-12(%rcx,%r15), %esi
LBB0_32:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	%r13d, %edi
	callq	_get_reg_offset
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rbx
	movl	%r13d, %ecx
	cmpl	%eax, (%rbx,%rcx,4)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	jbe	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_26 Depth=2
	incq	%r14
	movq	_pres_op_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%r12), %rax
	movq	(%rax,%rdi,8), %rdx
	movl	(%rcx,%rdx,4), %ecx
	addq	$24, %r15
	cmpq	%rcx, %r14
	jb	LBB0_26
	jmp	LBB0_35
LBB0_42:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rbx
LBB0_35:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	12(%rax,%rdi,8), %r14d
	movl	16(%rax,%rdi,8), %esi
	movl	%r14d, %edi
	callq	_get_reg_offset
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_update_table_size
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movl	(%r12), %eax
	cmpq	%rax, %rdx
	movq	_PRES_REGTAB_IMMED@GOTPCREL(%rip), %rbx
	jb	LBB0_24
LBB0_36:
	movq	(%rbx), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_regstore_alloc_table
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_38
LBB0_37:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_40:
	movl	(%rax), %ebx
LBB0_41:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	leaq	L_.str.8(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_FIXME
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_38:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_regstore_set_values
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Preshader version %#x.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected end of byte code buffer.\n"

	.comm	_D3DXERR_INVALIDDATA,4,2        ## @D3DXERR_INVALIDDATA
	.comm	_FOURCC_CLIT,4,2                ## @FOURCC_CLIT
L_.str.2:                               ## @.str.2
	.asciz	"Byte code buffer ends unexpectedly.\n"

L_.str.3:                               ## @.str.3
	.asciz	"%u double constants.\n"

	.comm	_FOURCC_FXLC,4,2                ## @FOURCC_FXLC
L_.str.4:                               ## @.str.4
	.asciz	"Could not find preshader code.\n"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
L_.str.5:                               ## @.str.5
	.asciz	"Invalid instruction count %u.\n"

L_.str.6:                               ## @.str.6
	.asciz	"%u instructions.\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_pres_regset2table,4,2          ## @pres_regset2table
	.comm	_PRES_REGTAB_IMMED,8,3          ## @PRES_REGTAB_IMMED
L_.str.7:                               ## @.str.7
	.asciz	"const_count %u is not a multiple of %u.\n"

	.comm	_pres_op_info,8,3               ## @pres_op_info
	.comm	_PRES_REGTAB_COUNT,8,3          ## @PRES_REGTAB_COUNT
L_.str.8:                               ## @.str.8
	.asciz	"Out of bounds register index, i %u, j %u, table %u, reg_idx %u, preshader parsing failed.\n"

	.no_dead_strip	_parse_preshader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_preshader
_parse_preshader:                       ; @parse_preshader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldrh	w1, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	w19, LBB0_4
; %bb.1:
	add	x24, x22, #4
	sub	w25, w19, #1
Lloh2:
	adrp	x8, _FOURCC_CLIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FOURCC_CLIT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x24
	mov	x1, x25
	bl	_find_bytecode_comment
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w19, [x0]
	ldr	w8, [sp, #28]
	sub	w8, w8, #1
	cmp	w19, w8, lsr #1
	b.ls	LBB0_6
; %bb.3:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_5:
	mov	w19, #0
	mov	x21, #0
	b	LBB0_7
LBB0_6:
	add	x21, x0, #4
LBB0_7:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_TRACE
Lloh11:
	adrp	x8, _FOURCC_FXLC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FOURCC_FXLC@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x24
	mov	x1, x25
	bl	_find_bytecode_comment
	cbz	x0, LBB0_14
; %bb.8:
	mov	x24, x0
	ldrsw	x1, [x0]
	str	w1, [x20]
	ldr	w8, [sp, #28]
	sub	w8, w8, #1
	str	w8, [sp, #28]
Lloh14:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	umulh	x8, x8, x9
	cmp	x1, x8, lsr #5
	b.ls	LBB0_16
; %bb.9:
                                        ; kill: def $w1 killed $w1 killed $x1 def $x1
	str	x1, [sp]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_10:
	bl	_WARN
LBB0_11:
Lloh19:
	adrp	x8, _D3DXERR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D3DXERR_INVALIDDATA@GOTPAGEOFF]
LBB0_12:
	ldr	w23, [x8]
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WARN
LBB0_15:
Lloh23:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_TRACE
	bl	_GetProcessHeap
Lloh27:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w8, [x20]
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #3
	bl	_HeapAlloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_40
; %bb.17:
	ldr	w8, [x20]
	cbz	w8, LBB0_22
; %bb.18:
	mov	x2, x0
	add	x24, x24, #4
	ldr	w1, [sp, #28]
	mov	x0, x24
	bl	_parse_pres_ins
	cbz	x0, LBB0_11
; %bb.19:
	mov	x25, #0
	mov	w8, #40
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x24
	sub	x9, x0, x24
	lsr	x9, x9, #2
	ldr	w10, [sp, #28]
	sub	w1, w10, w9
	str	w1, [sp, #28]
	add	x25, x25, #1
	ldr	w9, [x20]
	cmp	x25, x9
	b.hs	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x24, x0
	add	x26, x8, #40
	ldr	x9, [x20, #16]
	add	x2, x9, x8
	bl	_parse_pres_ins
	mov	x8, x26
	cbnz	x0, LBB0_20
	b	LBB0_11
LBB0_22:
Lloh30:
	adrp	x8, _pres_regset2table@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pres_regset2table@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	mov	x24, x20
	str	w8, [x24, #24]!
	ldr	w25, [x22]
	mov	w8, #-131072
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_get_constants_desc
	mov	x23, x0
	str	w25, [x22]
	bl	_FAILED
	cbnz	x0, LBB0_13
; %bb.23:
Lloh33:
	adrp	x23, _PRES_REGTAB_IMMED@GOTPAGE
Lloh34:
	ldr	x23, [x23, _PRES_REGTAB_IMMED@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_get_reg_components
	udiv	w8, w19, w0
	msub	w8, w8, w0, w19
	ldr	x0, [x23]
	cbz	w8, LBB0_25
; %bb.24:
	bl	_get_reg_components
	mov	x2, x0
Lloh35:
	adrp	x0, l_.str.7@PAGE
Lloh36:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	b	LBB0_42
LBB0_25:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	bl	_get_reg_offset
	mov	x22, x20
	ldr	x8, [x22, #8]!
	ldr	x9, [x23]
	str	w0, [x8, x9, lsl #2]
	mov	x0, x8
	mov	x1, x24
	bl	_update_table_sizes_consts
	ldr	w8, [x20]
	cbz	w8, LBB0_39
; %bb.26:
	mov	x23, #0
	mov	w27, #40
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
Lloh37:
	adrp	x8, _pres_op_info@GOTPAGE
Lloh38:
	ldr	x8, [x8, _pres_op_info@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x8]
	ldr	x8, [x20, #16]
	mul	x10, x23, x27
	ldr	x10, [x8, x10]
	ldr	w9, [x9, x10, lsl #2]
	cbz	w9, LBB0_37
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x28, #0
	mov	x24, #0
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x9, x23, x27, x8
	ldr	x9, [x9, #24]
	ldr	x26, [x9, x28]
Lloh40:
	adrp	x10, _PRES_REGTAB_COUNT@GOTPAGE
Lloh41:
	ldr	x10, [x10, _PRES_REGTAB_COUNT@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x10]
	cmp	x26, x10
	b.ne	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	madd	x10, x23, x27, x8
	ldr	x10, [x10, #32]
	cmp	x10, #0
	ccmp	x24, #0, #0, ne
	b.eq	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	madd	x8, x23, x27, x8
	ldr	w8, [x8, #8]
	sub	w8, w8, #1
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x8, x9, x28
	ldr	w1, [x8, #8]
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	w8, #0
LBB0_34:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x9, x9, x28
	ldp	w26, w9, [x9, #16]
	add	w1, w9, w8
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	x0, x26
	bl	_get_reg_offset
	ldr	x25, [x22]
	ldr	w8, [x25, w26, uxtw #2]
	cmp	w8, w0
	b.ls	LBB0_41
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=2
	add	x24, x24, #1
Lloh43:
	adrp	x8, _pres_op_info@GOTPAGE
Lloh44:
	ldr	x8, [x8, _pres_op_info@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x8]
	ldr	x8, [x20, #16]
	mul	x10, x23, x27
	ldr	x10, [x8, x10]
	ldr	w9, [x9, x10, lsl #2]
	add	x28, x28, #24
	cmp	x24, x9
	b.lo	LBB0_29
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	x25, [x22]
LBB0_38:                                ;   in Loop: Header=BB0_27 Depth=1
	madd	x8, x23, x27, x8
	ldp	w24, w1, [x8, #12]
	mov	x0, x24
	bl	_get_reg_offset
	mov	x2, x0
	mov	x0, x25
	mov	x1, x24
	bl	_update_table_size
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x8
	b.lo	LBB0_27
LBB0_39:
Lloh46:
	adrp	x20, _PRES_REGTAB_IMMED@GOTPAGE
Lloh47:
	ldr	x20, [x20, _PRES_REGTAB_IMMED@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x22
	bl	_regstore_alloc_table
	bl	_FAILED
	cbz	x0, LBB0_43
LBB0_40:
Lloh48:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh49:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_12
LBB0_41:
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	stp	x26, x0, [sp]
Lloh50:
	adrp	x0, l_.str.8@PAGE
Lloh51:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x23
	mov	x2, x24
LBB0_42:
	bl	_FIXME
	b	LBB0_11
LBB0_43:
	ldr	x1, [x20]
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	x4, x19
	bl	_regstore_set_values
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Preshader version %#x.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected end of byte code buffer.\n"

	.comm	_D3DXERR_INVALIDDATA,4,2        ; @D3DXERR_INVALIDDATA
	.comm	_FOURCC_CLIT,4,2                ; @FOURCC_CLIT
l_.str.2:                               ; @.str.2
	.asciz	"Byte code buffer ends unexpectedly.\n"

l_.str.3:                               ; @.str.3
	.asciz	"%u double constants.\n"

	.comm	_FOURCC_FXLC,4,2                ; @FOURCC_FXLC
l_.str.4:                               ; @.str.4
	.asciz	"Could not find preshader code.\n"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
l_.str.5:                               ; @.str.5
	.asciz	"Invalid instruction count %u.\n"

l_.str.6:                               ; @.str.6
	.asciz	"%u instructions.\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_pres_regset2table,4,2          ; @pres_regset2table
	.comm	_PRES_REGTAB_IMMED,8,3          ; @PRES_REGTAB_IMMED
l_.str.7:                               ; @.str.7
	.asciz	"const_count %u is not a multiple of %u.\n"

	.comm	_pres_op_info,8,3               ; @pres_op_info
	.comm	_PRES_REGTAB_COUNT,8,3          ; @PRES_REGTAB_COUNT
l_.str.8:                               ; @.str.8
	.asciz	"Out of bounds register index, i %u, j %u, table %u, reg_idx %u, preshader parsing failed.\n"

	.no_dead_strip	_parse_preshader
.subsections_via_symbols
