	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shader_generate_code           ## -- Begin function shader_generate_code
	.p2align	4, 0x90
_shader_generate_code:                  ## @shader_generate_code
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	16(%rdi), %r13
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	movq	$0, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -168(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -176(%rbp)
	movq	%rdi, -104(%rbp)
	movq	8(%r13), %rax
	movq	%rax, -112(%rbp)
	movq	%rdx, -120(%rbp)
	movq	%rsi, -128(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -136(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, -144(%rbp)
	movq	%rcx, -152(%rbp)
	leaq	-152(%rbp), %rax
	movq	%rax, -80(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*16(%r14)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%r15, -48(%rbp)
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*8(%r14)
	movq	_WINED3D_OK@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	je	LBB0_12
## %bb.4:
	leaq	-48(%rbp), %r15
	leaq	-96(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	*(%r14)
	movq	-96(%rbp), %rax
	movq	_WINED3DSIH_TABLE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -88(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*8(%r14)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	jne	LBB0_5
LBB0_11:
	movq	_WINED3D_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_WINED3DERR_INVALIDCALL@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WINED3DSIH_TABLE_SIZE,8,3      ## @WINED3DSIH_TABLE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encountered unrecognised or invalid instruction.\n"

	.comm	_WINED3DERR_INVALIDCALL,4,2     ## @WINED3DERR_INVALIDCALL
L_.str.1:                               ## @.str.1
	.asciz	"Predicates not implemented.\n"

	.comm	_WINED3D_OK,4,2                 ## @WINED3D_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shader_generate_code           ; -- Begin function shader_generate_code
	.p2align	2
_shader_generate_code:                  ; @shader_generate_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x5
	mov	x21, x4
	ldp	x23, x22, [x0, #8]
	ldr	x20, [x0]
	str	xzr, [sp, #64]
	stp	xzr, xzr, [sp, #104]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #96]
	str	x0, [sp, #56]
	ldr	x8, [x22, #8]
	stp	x2, x8, [sp, #40]
	add	x8, sp, #64
	stp	x8, x1, [sp, #24]
	add	x8, sp, #96
	stp	x3, x8, [sp, #8]
	add	x8, sp, #8
	str	x8, [sp, #88]
	ldr	x8, [x23, #16]
	mov	x1, sp
	sub	x2, x29, #72
	mov	x0, x20
	blr	x8
	cbz	x21, LBB0_2
; %bb.1:
	str	x21, [sp]
LBB0_2:
	ldr	x8, [x23, #8]
	mov	x1, sp
	mov	x0, x20
	blr	x8
Lloh3:
	adrp	x24, _WINED3D_OK@GOTPAGE
Lloh4:
	ldr	x24, [x24, _WINED3D_OK@GOTPAGEOFF]
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	x8, [sp]
	cmp	x8, x19
	b.eq	LBB0_11
; %bb.4:
Lloh5:
	adrp	x25, _WINED3DSIH_TABLE_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _WINED3DSIH_TABLE_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x24, _WINED3D_OK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _WINED3D_OK@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	mov	x1, sp
	add	x2, sp, #72
	mov	x0, x20
	blr	x8
	ldr	x8, [sp, #72]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #80]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_FIXME
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x0, sp, #72
	blr	x8
	ldr	x8, [x23, #8]
	mov	x1, sp
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp]
	cmp	x8, x19
	b.ne	LBB0_5
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh13:
	adrp	x24, _WINED3DERR_INVALIDCALL@GOTPAGE
Lloh14:
	ldr	x24, [x24, _WINED3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WINED3DSIH_TABLE_SIZE,8,3      ; @WINED3DSIH_TABLE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encountered unrecognised or invalid instruction.\n"

	.comm	_WINED3DERR_INVALIDCALL,4,2     ; @WINED3DERR_INVALIDCALL
l_.str.1:                               ; @.str.1
	.asciz	"Predicates not implemented.\n"

	.comm	_WINED3D_OK,4,2                 ; @WINED3D_OK
.subsections_via_symbols
