	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_sm4_read_param
_shader_sm4_read_param:                 ## @shader_sm4_read_param
	.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
	movl	%ecx, %ebx
	movq	%rsi, %rcx
	movq	(%rsi), %rsi
	cmpq	%rdx, %rsi
	jae	LBB0_1
## %bb.3:
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%r8, %r13
	leaq	4(%rsi), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rcx)
	movl	(%rsi), %ecx
	movq	_WINED3D_SM4_REGISTER_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	andl	%ecx, %r14d
	movq	_WINED3D_SM4_REGISTER_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movq	_register_type_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r14d
	jae	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %eax
	cmpl	$-1, %eax
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_FIXME
	movq	_WINED3DSPR_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	%r13, %r12
	movl	%eax, (%r13)
	movl	%ebx, 4(%r13)
	movq	_WINED3D_SM4_REGISTER_MODIFIER@GOTPCREL(%rip), %rax
	movq	_WINED3DSPSM_NONE@GOTPCREL(%rip), %rbx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	testl	%r8d, (%rax)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	(%r9), %rsi
	cmpq	%rdx, %rsi
	jae	LBB0_1
## %bb.9:
	leaq	4(%rsi), %rax
	movq	%rax, (%r9)
	movl	(%rsi), %esi
	cmpl	$65, %esi
	je	LBB0_10
## %bb.11:
	cmpl	$193, %esi
	je	LBB0_15
## %bb.12:
	cmpl	$129, %esi
	jne	LBB0_14
## %bb.13:
	movq	_WINED3DSPSM_ABS@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_7:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_16:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	movq	_WINED3D_SM4_REGISTER_ORDER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r8d, %ebx
	movq	_WINED3D_SM4_REGISTER_ORDER_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.18:
	movq	_WINED3D_SM4_ADDRESSING_MASK0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	movq	_WINED3D_SM4_ADDRESSING_SHIFT0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	16(%r12), %r8
	movq	%r15, %rdi
	movq	%r9, %rsi
	movl	%eax, %ecx
	callq	_shader_sm4_read_reg_idx
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	cmpl	$1, %ebx
	ja	LBB0_22
## %bb.21:
	movq	16(%r12), %rax
	movl	$-1, 4(%rax)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_25
LBB0_17:
	movq	16(%r12), %rax
	movl	$-1, (%rax)
	movl	$-1, 4(%rax)
LBB0_25:
	movq	_WINED3D_SM4_RT_IMMCONST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_34
## %bb.26:
	movq	_WINED3D_SM4_IMMCONST_TYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r8d
	movq	_WINED3D_SM4_IMMCONST_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r8d
	cmpl	$128, %r8d
	je	LBB0_31
## %bb.27:
	cmpl	$129, %r8d
	jne	LBB0_33
## %bb.28:
	movq	_WINED3D_IMMCONST_SCALAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	(%r9), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	cmpq	$3, %rax
	jle	LBB0_29
## %bb.30:
	movl	8(%r12), %edi
	movl	$4, %edx
	movq	%r9, %rbx
	callq	_memcpy
	addq	$4, (%rbx)
	jmp	LBB0_34
LBB0_22:
	movq	_WINED3D_SM4_ADDRESSING_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	_WINED3D_SM4_ADDRESSING_SHIFT1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	16(%r12), %r8
	addq	$4, %r8
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_shader_sm4_read_reg_idx
	testl	%eax, %eax
	je	LBB0_19
## %bb.23:
	cmpl	$3, %ebx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jb	LBB0_25
## %bb.24:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	callq	_FIXME
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_10:
	movq	_WINED3DSPSM_NEG@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_15:
	movq	_WINED3DSPSM_ABSNEG@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_31:
	movq	_WINED3D_IMMCONST_VEC4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	(%r9), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	cmpq	$15, %rax
	jg	LBB0_32
LBB0_29:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_33:
	leaq	L_.str.6(%rip), %rdi
	movl	%r8d, %esi
	callq	_FIXME
	jmp	LBB0_34
LBB0_32:
	movl	8(%r12), %edi
	movl	$16, %edx
	movq	%r9, %rbx
	callq	_memcpy
	addq	$16, (%rbx)
LBB0_34:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_map_register
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid ptr %p >= end %p.\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WINED3D_SM4_REGISTER_TYPE_MASK,4,2 ## @WINED3D_SM4_REGISTER_TYPE_MASK
	.comm	_WINED3D_SM4_REGISTER_TYPE_SHIFT,4,2 ## @WINED3D_SM4_REGISTER_TYPE_SHIFT
	.comm	_register_type_table,8,3        ## @register_type_table
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled register type %#x.\n"

	.comm	_WINED3DSPR_TEMP,4,2            ## @WINED3DSPR_TEMP
	.comm	_WINED3D_SM4_REGISTER_MODIFIER,4,2 ## @WINED3D_SM4_REGISTER_MODIFIER
	.comm	_WINED3DSPSM_NEG,4,2            ## @WINED3DSPSM_NEG
	.comm	_WINED3DSPSM_ABS,4,2            ## @WINED3DSPSM_ABS
	.comm	_WINED3DSPSM_ABSNEG,4,2         ## @WINED3DSPSM_ABSNEG
L_.str.2:                               ## @.str.2
	.asciz	"Skipping modifier 0x%08x.\n"

	.comm	_WINED3DSPSM_NONE,4,2           ## @WINED3DSPSM_NONE
	.comm	_WINED3D_SM4_REGISTER_ORDER_MASK,4,2 ## @WINED3D_SM4_REGISTER_ORDER_MASK
	.comm	_WINED3D_SM4_REGISTER_ORDER_SHIFT,4,2 ## @WINED3D_SM4_REGISTER_ORDER_SHIFT
	.comm	_WINED3D_SM4_ADDRESSING_MASK0,4,2 ## @WINED3D_SM4_ADDRESSING_MASK0
	.comm	_WINED3D_SM4_ADDRESSING_SHIFT0,4,2 ## @WINED3D_SM4_ADDRESSING_SHIFT0
L_.str.3:                               ## @.str.3
	.asciz	"Failed to read register index.\n"

	.comm	_WINED3D_SM4_ADDRESSING_MASK1,4,2 ## @WINED3D_SM4_ADDRESSING_MASK1
	.comm	_WINED3D_SM4_ADDRESSING_SHIFT1,4,2 ## @WINED3D_SM4_ADDRESSING_SHIFT1
L_.str.4:                               ## @.str.4
	.asciz	"Unhandled order %u.\n"

	.comm	_WINED3D_SM4_RT_IMMCONST,4,2    ## @WINED3D_SM4_RT_IMMCONST
	.comm	_WINED3D_SM4_IMMCONST_TYPE_MASK,4,2 ## @WINED3D_SM4_IMMCONST_TYPE_MASK
	.comm	_WINED3D_SM4_IMMCONST_TYPE_SHIFT,4,2 ## @WINED3D_SM4_IMMCONST_TYPE_SHIFT
	.comm	_WINED3D_IMMCONST_SCALAR,4,2    ## @WINED3D_IMMCONST_SCALAR
L_.str.5:                               ## @.str.5
	.asciz	"Invalid ptr %p, end %p.\n"

	.comm	_WINED3D_IMMCONST_VEC4,4,2      ## @WINED3D_IMMCONST_VEC4
L_.str.6:                               ## @.str.6
	.asciz	"Unhandled immediate constant type %#x.\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_shader_sm4_read_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_sm4_read_param
_shader_sm4_read_param:                 ; @shader_sm4_read_param
	.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	x22, x2
	mov	x21, x1
	ldr	x1, [x1]
	cmp	x1, x2
	b.hs	LBB0_10
; %bb.1:
	mov	x24, x5
	mov	x19, x4
	mov	x25, x3
	mov	x20, x0
	ldr	w26, [x1], #4
	str	x1, [x21]
Lloh0:
	adrp	x8, _WINED3D_SM4_REGISTER_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_SM4_REGISTER_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WINED3D_SM4_REGISTER_TYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_SM4_REGISTER_TYPE_SHIFT@GOTPAGEOFF]
	and	w8, w8, w26
Lloh5:
	ldr	w9, [x9]
	asr	w23, w8, w9
Lloh6:
	adrp	x27, _register_type_table@GOTPAGE
Lloh7:
	ldr	x27, [x27, _register_type_table@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.hs	LBB0_3
; %bb.2:
	ldr	x8, [x27]
	ldr	w8, [x8, w23, uxtw #2]
	cmn	w8, #1
	b.ne	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_FIXME
Lloh10:
	adrp	x8, _WINED3DSPR_TEMP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WINED3DSPR_TEMP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
LBB0_4:
	stp	w8, w25, [x19]
Lloh13:
	adrp	x8, _WINED3D_SM4_REGISTER_MODIFIER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINED3D_SM4_REGISTER_MODIFIER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_15
; %bb.5:
	ldr	x8, [x21]
	cmp	x8, x22
	b.hs	LBB0_11
; %bb.6:
	ldr	w1, [x8], #4
	str	x8, [x21]
	cmp	w1, #65
	b.eq	LBB0_12
; %bb.7:
	cmp	w1, #193
	b.eq	LBB0_13
; %bb.8:
	cmp	w1, #129
	b.ne	LBB0_14
; %bb.9:
Lloh16:
	adrp	x8, _WINED3DSPSM_ABS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WINED3DSPSM_ABS@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_33
LBB0_11:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	b	LBB0_33
LBB0_12:
Lloh22:
	adrp	x8, _WINED3DSPSM_NEG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WINED3DSPSM_NEG@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh24:
	adrp	x8, _WINED3DSPSM_ABSNEG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WINED3DSPSM_ABSNEG@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
LBB0_15:
Lloh28:
	adrp	x8, _WINED3DSPSM_NONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WINED3DSPSM_NONE@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x24]
Lloh30:
	adrp	x8, _WINED3D_SM4_REGISTER_ORDER_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WINED3D_SM4_REGISTER_ORDER_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh33:
	adrp	x9, _WINED3D_SM4_REGISTER_ORDER_SHIFT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _WINED3D_SM4_REGISTER_ORDER_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	asr	w24, w8, w9
	cmp	w24, #0
	b.le	LBB0_20
; %bb.17:
Lloh36:
	adrp	x8, _WINED3D_SM4_ADDRESSING_MASK0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _WINED3D_SM4_ADDRESSING_MASK0@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh39:
	adrp	x9, _WINED3D_SM4_ADDRESSING_SHIFT0@GOTPAGE
Lloh40:
	ldr	x9, [x9, _WINED3D_SM4_ADDRESSING_SHIFT0@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	asr	w3, w8, w9
	ldr	x4, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_shader_sm4_read_reg_idx
	cbz	w0, LBB0_30
; %bb.18:
	cmp	w24, #1
	b.hi	LBB0_27
; %bb.19:
	ldr	x8, [x19, #16]
	b	LBB0_21
LBB0_20:
	ldr	x8, [x19, #16]
	mov	w9, #-1
	str	w9, [x8]
LBB0_21:
	mov	w9, #-1
	str	w9, [x8, #4]
LBB0_22:
Lloh42:
	adrp	x8, _WINED3D_SM4_RT_IMMCONST@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WINED3D_SM4_RT_IMMCONST@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_39
; %bb.23:
Lloh45:
	adrp	x8, _WINED3D_SM4_IMMCONST_TYPE_MASK@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WINED3D_SM4_IMMCONST_TYPE_MASK@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh48:
	adrp	x9, _WINED3D_SM4_IMMCONST_TYPE_SHIFT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _WINED3D_SM4_IMMCONST_TYPE_SHIFT@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	asr	w1, w8, w9
	cmp	w1, #128
	b.eq	LBB0_31
; %bb.24:
	cmp	w1, #129
	b.ne	LBB0_36
; %bb.25:
Lloh51:
	adrp	x8, _WINED3D_IMMCONST_SCALAR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WINED3D_IMMCONST_SCALAR@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	x1, [x21]
	sub	x8, x22, x1
	cmp	x8, #3
	b.le	LBB0_32
; %bb.26:
	ldr	w0, [x19, #8]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, #4
	b	LBB0_38
LBB0_27:
Lloh54:
	adrp	x8, _WINED3D_SM4_ADDRESSING_MASK1@GOTPAGE
Lloh55:
	ldr	x8, [x8, _WINED3D_SM4_ADDRESSING_MASK1@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh57:
	adrp	x9, _WINED3D_SM4_ADDRESSING_SHIFT1@GOTPAGE
Lloh58:
	ldr	x9, [x9, _WINED3D_SM4_ADDRESSING_SHIFT1@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	asr	w3, w8, w9
	ldr	x8, [x19, #16]
	add	x4, x8, #4
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_shader_sm4_read_reg_idx
	cbz	w0, LBB0_30
; %bb.28:
	cmp	w24, #3
	b.lo	LBB0_22
; %bb.29:
Lloh60:
	adrp	x0, l_.str.4@PAGE
Lloh61:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	bl	_FIXME
	b	LBB0_22
LBB0_30:
Lloh62:
	adrp	x0, l_.str.3@PAGE
Lloh63:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	b	LBB0_34
LBB0_31:
Lloh64:
	adrp	x8, _WINED3D_IMMCONST_VEC4@GOTPAGE
Lloh65:
	ldr	x8, [x8, _WINED3D_IMMCONST_VEC4@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	x1, [x21]
	sub	x8, x22, x1
	cmp	x8, #15
	b.gt	LBB0_37
LBB0_32:
Lloh67:
	adrp	x0, l_.str.5@PAGE
Lloh68:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_33:
	mov	x2, x22
	bl	_WARN
LBB0_34:
Lloh69:
	adrp	x8, _FALSE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_35:
	ldr	w0, [x8]
	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
LBB0_36:
Lloh71:
	adrp	x0, l_.str.6@PAGE
Lloh72:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_FIXME
	b	LBB0_39
LBB0_37:
	ldr	w0, [x19, #8]
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, #16
LBB0_38:
	str	x8, [x21]
LBB0_39:
	mov	x0, x20
	mov	x1, x19
	bl	_map_register
Lloh73:
	adrp	x8, _TRUE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_35
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid ptr %p >= end %p.\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WINED3D_SM4_REGISTER_TYPE_MASK,4,2 ; @WINED3D_SM4_REGISTER_TYPE_MASK
	.comm	_WINED3D_SM4_REGISTER_TYPE_SHIFT,4,2 ; @WINED3D_SM4_REGISTER_TYPE_SHIFT
	.comm	_register_type_table,8,3        ; @register_type_table
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled register type %#x.\n"

	.comm	_WINED3DSPR_TEMP,4,2            ; @WINED3DSPR_TEMP
	.comm	_WINED3D_SM4_REGISTER_MODIFIER,4,2 ; @WINED3D_SM4_REGISTER_MODIFIER
	.comm	_WINED3DSPSM_NEG,4,2            ; @WINED3DSPSM_NEG
	.comm	_WINED3DSPSM_ABS,4,2            ; @WINED3DSPSM_ABS
	.comm	_WINED3DSPSM_ABSNEG,4,2         ; @WINED3DSPSM_ABSNEG
l_.str.2:                               ; @.str.2
	.asciz	"Skipping modifier 0x%08x.\n"

	.comm	_WINED3DSPSM_NONE,4,2           ; @WINED3DSPSM_NONE
	.comm	_WINED3D_SM4_REGISTER_ORDER_MASK,4,2 ; @WINED3D_SM4_REGISTER_ORDER_MASK
	.comm	_WINED3D_SM4_REGISTER_ORDER_SHIFT,4,2 ; @WINED3D_SM4_REGISTER_ORDER_SHIFT
	.comm	_WINED3D_SM4_ADDRESSING_MASK0,4,2 ; @WINED3D_SM4_ADDRESSING_MASK0
	.comm	_WINED3D_SM4_ADDRESSING_SHIFT0,4,2 ; @WINED3D_SM4_ADDRESSING_SHIFT0
l_.str.3:                               ; @.str.3
	.asciz	"Failed to read register index.\n"

	.comm	_WINED3D_SM4_ADDRESSING_MASK1,4,2 ; @WINED3D_SM4_ADDRESSING_MASK1
	.comm	_WINED3D_SM4_ADDRESSING_SHIFT1,4,2 ; @WINED3D_SM4_ADDRESSING_SHIFT1
l_.str.4:                               ; @.str.4
	.asciz	"Unhandled order %u.\n"

	.comm	_WINED3D_SM4_RT_IMMCONST,4,2    ; @WINED3D_SM4_RT_IMMCONST
	.comm	_WINED3D_SM4_IMMCONST_TYPE_MASK,4,2 ; @WINED3D_SM4_IMMCONST_TYPE_MASK
	.comm	_WINED3D_SM4_IMMCONST_TYPE_SHIFT,4,2 ; @WINED3D_SM4_IMMCONST_TYPE_SHIFT
	.comm	_WINED3D_IMMCONST_SCALAR,4,2    ; @WINED3D_IMMCONST_SCALAR
l_.str.5:                               ; @.str.5
	.asciz	"Invalid ptr %p, end %p.\n"

	.comm	_WINED3D_IMMCONST_VEC4,4,2      ; @WINED3D_IMMCONST_VEC4
l_.str.6:                               ; @.str.6
	.asciz	"Unhandled immediate constant type %#x.\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_shader_sm4_read_param
.subsections_via_symbols
