	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_arb_vs_local_constants
_shader_arb_vs_local_constants:         ## @shader_arb_vs_local_constants
	.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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_shader_get_position_fixup
	movq	_GL_VERTEX_PROGRAM_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	movq	%r15, %rdx
	callq	_glProgramLocalParameter4fvARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	cmpl	$0, 16(%rbx)
	je	LBB0_7
## %bb.1:
	movq	_WINED3D_MAX_CONSTS_I@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_6
## %bb.2:
	movl	$2, %r12d
	xorl	%r13d, %r13d
	movq	_WINED3D_CONST_NUM_UNUSED@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movzbl	%al, %ecx
	addq	$3, %r12
	cmpq	%rcx, %r13
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movq	(%rcx,%r13,8), %rsi
	cmpq	(%r15), %rsi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rax,%r12,8), %xmm0
	movss	%xmm0, -80(%rbp)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	-8(%rax,%r12,8), %xmm0
	movss	%xmm0, -76(%rbp)
	xorps	%xmm0, %xmm0
	cvtsi2ssq	-16(%rax,%r12,8), %xmm0
	movss	%xmm0, -72(%rbp)
	movl	$-1082130432, -68(%rbp)         ## imm = 0xBF800000
	movq	_GL_VERTEX_PROGRAM_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rdx
	callq	_glProgramLocalParameter4fvARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	_WINED3D_MAX_CONSTS_I@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_VERTEX_PROGRAM_ARB,4,2      ## @GL_VERTEX_PROGRAM_ARB
	.comm	_WINED3D_MAX_CONSTS_I,1,0       ## @WINED3D_MAX_CONSTS_I
	.comm	_WINED3D_CONST_NUM_UNUSED,8,3   ## @WINED3D_CONST_NUM_UNUSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Load vs int consts"

	.no_dead_strip	_shader_arb_vs_local_constants
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_arb_vs_local_constants
_shader_arb_vs_local_constants:         ; @shader_arb_vs_local_constants
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x2, sp, #24
	mov	x0, x1
	mov	x1, x19
	bl	_shader_get_position_fixup
Lloh3:
	adrp	x21, _GL_VERTEX_PROGRAM_ARB@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GL_VERTEX_PROGRAM_ARB@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x1, [x20]
	add	x2, sp, #24
	bl	_glProgramLocalParameter4fvARB
	bl	_GL_EXTCALL
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_7
; %bb.1:
Lloh5:
	adrp	x22, _WINED3D_MAX_CONSTS_I@GOTPAGE
Lloh6:
	ldr	x22, [x22, _WINED3D_MAX_CONSTS_I@GOTPAGEOFF]
	ldrb	w8, [x22]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh7:
	adrp	x25, _WINED3D_CONST_NUM_UNUSED@GOTPAGE
Lloh8:
	ldr	x25, [x25, _WINED3D_CONST_NUM_UNUSED@GOTPAGEOFF]
	mov	w26, #-1082130432
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x23, x23, #24
	cmp	x24, w8, uxtb
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x1, [x9, x24, lsl #3]
	ldr	x9, [x25]
	cmp	x1, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x23
	ldur	q0, [x8, #8]
	scvtf.2d	v0, v0
	fcvtn	v0.2s, v0.2d
	rev64.2s	v0, v0
	str	d0, [sp, #8]
	ldr	x8, [x8]
	scvtf	s0, x8
	str	s0, [sp, #16]
	str	w26, [sp, #20]
	ldr	w0, [x21]
	add	x2, sp, #8
	bl	_glProgramLocalParameter4fvARB
	bl	_GL_EXTCALL
	ldrb	w8, [x22]
	b	LBB0_3
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
LBB0_7:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_VERTEX_PROGRAM_ARB,4,2      ; @GL_VERTEX_PROGRAM_ARB
	.comm	_WINED3D_MAX_CONSTS_I,1,0       ; @WINED3D_MAX_CONSTS_I
	.comm	_WINED3D_CONST_NUM_UNUSED,8,3   ; @WINED3D_CONST_NUM_UNUSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Load vs int consts"

	.no_dead_strip	_shader_arb_vs_local_constants
.subsections_via_symbols
