	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function execute_preshader
_execute_preshader:                     ## @execute_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ARGS_ARRAY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpl	$0, (%rbx)
	je	LBB0_22
## %bb.1:
	leaq	4(%rbx), %r13
	xorl	%edi, %edi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	*8(%rax,%rcx,8)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx), %rsi
	addq	$12, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_exec_set_arg
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	incq	%rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	cmpq	%rax, %rdi
	jae	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	movq	8(%rbx), %r8
	movq	_pres_op_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rbx
	shlq	$5, %rbx
	movq	(%r8,%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %r14
	cmpq	$0, 16(%rcx,%rax,8)
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	movl	8(%r8,%rbx), %esi
	movl	%esi, %eax
	imull	%ecx, %eax
	movq	_ARGS_ARRAY_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jg	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r8,%rbx), %r12
	addq	$8, %r12
	movl	%esi, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=2
	xorl	%eax, %eax
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r14
	movl	%ecx, %edx
	cmpq	%rdx, %r14
	jae	LBB0_19
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	(,%r14,4), %rsi
	addq	16(%r12), %rsi
	testq	%r14, %r14
	movl	$0, %edx
	cmovnel	%ebx, %edx
	cmpq	$0, 8(%r12)
	cmovel	%ebx, %edx
	movq	%r13, %rdi
	callq	_exec_get_arg
	movl	(%r12), %esi
	movl	%r14d, %eax
	imull	%esi, %eax
	addl	%ebx, %eax
	movsd	%xmm0, (%r15,%rax,8)
	incl	%ebx
	cmpl	%esi, %ebx
	jb	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	%esi, %eax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r8,%rbx), %esi
	testl	%esi, %esi
	je	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r8,%rbx), %r12
	addq	$8, %r12
	leaq	8(%rcx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r8,%rbx), %rax
	addq	$12, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_exec_set_arg
	incl	%ebx
	movl	(%r12), %esi
	cmpl	%esi, %ebx
	jae	LBB0_20
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%r12), %rsi
	addq	%r14, %rsi
	addq	$-1, %r15
	movl	$0, %edx
	cmovbl	%ebx, %edx
	cmpq	$0, 8(%r12)
	cmovel	%ebx, %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_exec_get_arg
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movsd	%xmm0, (%rax,%r14,2)
	incq	%r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addq	$4, %r14
	cmpq	%rax, %r13
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12), %esi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_21:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_24:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movq	_E_FAIL@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGS_ARRAY_SIZE,4,2            ## @ARGS_ARRAY_SIZE
	.comm	_pres_op_info,8,3               ## @pres_op_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many arguments (%u) for one instruction.\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_execute_preshader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function execute_preshader
_execute_preshader:                     ; @execute_preshader
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _ARGS_ARRAY_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARGS_ARRAY_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x0]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x11, #0
	add	x21, x0, #4
	stur	x0, [x29, #-112]                ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #24
	mul	x8, x24, x8
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	add	x8, x9, x8
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	x8, x22, x8, lsl #5
	add	x1, x8, #12
	mov	x0, x21
	mov	w2, #0
	bl	_exec_set_arg
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x0, x11, [x29, #-112]           ; 16-byte Folded Reload
	add	x11, x11, #1
	ldr	w8, [x0]
	cmp	x11, x8
	b.hs	LBB0_20
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	x22, [x0, #8]
Lloh8:
	adrp	x8, _pres_op_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pres_op_info@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x8]
	lsl	x8, x11, #5
	ldr	x24, [x22, x8]
	mov	w8, #24
	madd	x25, x24, x8, x12
	ldr	x8, [x25, #16]
	stur	x11, [x29, #-104]               ; 8-byte Folded Spill
	cbz	x8, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	add	x27, x22, x11, lsl #5
	ldr	w1, [x27, #8]!
	mul	w8, w1, w9
Lloh11:
	adrp	x10, _ARGS_ARRAY_SIZE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ARGS_ARRAY_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w10
	b.gt	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	x12, [x29, #-96]                ; 8-byte Folded Spill
	cbz	w9, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
	add	x8, x22, x11, lsl #5
	add	x28, x8, #24
	add	x23, x8, #16
	mov	x8, x1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x19, x19, #1
	cmp	x19, w9, uxtw
	b.hs	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w26, #0
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x19, #0
	ldr	x8, [x28]
	add	x1, x8, x19, lsl #2
	ldr	x8, [x23]
	ccmp	x8, #0, #4, eq
	csel	w2, w26, wzr, eq
	mov	x0, x21
	bl	_exec_get_arg
	ldr	w1, [x27]
	madd	w8, w19, w1, w26
	str	d0, [x20, w8, uxtw #3]
	add	w26, w26, #1
	cmp	w26, w1
	b.lo	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w9, [x25]
	mov	x8, x1
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x22, x11, lsl #5
	mov	x27, x8
	ldr	w1, [x27, #8]!
	cbz	w1, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	add	x28, x8, #24
	add	x19, x8, #16
	mov	w9, #24
	madd	x9, x24, x9, x12
	add	x9, x9, #8
	stur	x9, [x29, #-96]                 ; 8-byte Folded Spill
	add	x23, x8, #12
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_exec_set_arg
	add	w22, w22, #1
	ldr	w1, [x27]
	cmp	w22, w1
	b.hs	LBB0_3
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	w8, [x25]
	cbz	w8, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x26, #0
	mov	x24, #0
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x28]
	add	x1, x8, x26
	ldr	x8, [x19]
	cmp	x24, #0
	ccmp	x8, #0, #4, eq
	csel	w2, w22, wzr, eq
	mov	x0, x21
	bl	_exec_get_arg
	str	d0, [x20, x24, lsl #3]
	add	x24, x24, #1
	ldr	w8, [x25]
	add	x26, x26, #4
	cmp	x24, x8
	b.lo	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w1, [x27]
	b	LBB0_15
LBB0_20:
Lloh14:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_FIXME
Lloh18:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #80
	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_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGS_ARRAY_SIZE,4,2            ; @ARGS_ARRAY_SIZE
	.comm	_pres_op_info,8,3               ; @pres_op_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many arguments (%u) for one instruction.\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_execute_preshader
.subsections_via_symbols
