	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_sm1_read_immconst
_shader_sm1_read_immconst:              ## @shader_sm1_read_immconst
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_WINED3D_IMMCONST_VEC4@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%edx, (%rax)
	sete	%sil
	leaq	(%rsi,%rsi,2), %r15
	leaq	(%rsi,%rsi,2), %rax
	incq	%rax
	movq	_WINED3DSPR_IMMCONST@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 40(%rbx)
	movl	%ecx, 16(%rbx)
	movq	32(%rbx), %rcx
	movl	$-1, (%rcx)
	movq	$0, 8(%rcx)
	movl	$-1, 16(%rcx)
	movq	$0, 24(%rcx)
	movl	%edx, 20(%rbx)
	movl	24(%rbx), %edi
	movq	(%r14), %rsi
	shll	$2, %eax
	movl	%eax, %edx
	callq	_memcpy
	movq	_WINED3DSP_NOSWIZZLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	leaq	4(,%r15,4), %rax
	addq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_IMMCONST_VEC4,4,2      ## @WINED3D_IMMCONST_VEC4
	.comm	_WINED3DSPR_IMMCONST,4,2        ## @WINED3DSPR_IMMCONST
	.comm	_WINED3DSP_NOSWIZZLE,4,2        ## @WINED3DSP_NOSWIZZLE
	.no_dead_strip	_shader_sm1_read_immconst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_sm1_read_immconst
_shader_sm1_read_immconst:              ; @shader_sm1_read_immconst
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WINED3D_IMMCONST_VEC4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_IMMCONST_VEC4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
Lloh3:
	adrp	x8, _WINED3DSPR_IMMCONST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3DSPR_IMMCONST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1, #40]
	ldr	x8, [x1, #32]
	mov	w9, #-1
	str	w9, [x8]
	str	w9, [x8, #16]
	mov	w9, #4
	csinc	x21, x9, xzr, eq
	str	xzr, [x8, #8]
	str	xzr, [x8, #24]
	stp	w3, w2, [x1, #16]
	ldr	w0, [x1, #24]
	ldr	x1, [x20]
	lsl	w2, w21, #2
	bl	_memcpy
Lloh6:
	adrp	x8, _WINED3DSP_NOSWIZZLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINED3DSP_NOSWIZZLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	xzr, [x19]
	ldr	x8, [x20]
	add	x8, x8, x21, lsl #2
	str	x8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_IMMCONST_VEC4,4,2      ; @WINED3D_IMMCONST_VEC4
	.comm	_WINED3DSPR_IMMCONST,4,2        ; @WINED3DSPR_IMMCONST
	.comm	_WINED3DSP_NOSWIZZLE,4,2        ; @WINED3DSP_NOSWIZZLE
	.no_dead_strip	_shader_sm1_read_immconst
.subsections_via_symbols
