	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compile_shader
_compile_shader:                        ## @compile_shader
	.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	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_get_target_info
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$0, 8(%rax)
	je	LBB0_4
## %bb.5:
	movl	(%rax), %esi
	movsbl	4(%rax), %edx
	movsbl	5(%rax), %ecx
	leaq	-56(%rbp), %r9
	movq	%r12, %rdi
	movq	%r15, %r8
	callq	_parse_hlsl_shader
	movq	%rax, %r15
	cmpq	$0, -56(%rbp)
	je	LBB0_21
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-56(%rbp), %rdi
	callq	_debugstr_a
	leaq	L_.str.5(%rip), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r12, %rdi
	callq	_debugstr_a
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	testq	%r13, %r13
	je	LBB0_20
## %bb.7:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	callq	_ID3D10Blob_GetBufferPointer
	movq	%rax, %r12
	movq	-56(%rbp), %rdi
	callq	_strlen
	movl	%eax, %ebx
	testq	%r12, %r12
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $al killed $al def $rax
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, %rdi
	callq	_debugstr_a
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_debugstr_a
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	movl	%eax, %esi
	callq	_FIXME
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %ebx
LBB0_32:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-56(%rbp), %rdi
	callq	_strlen
	movl	%eax, %ebx
LBB0_10:
	movb	$1, %al
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
LBB0_12:
	addb	%al, %bl
	incb	%bl
	movb	%bl, -41(%rbp)
	movsbl	%bl, %edi
	leaq	-72(%rbp), %rsi
	callq	_D3DCreateBlob
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-56(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	testq	%r15, %r15
	je	LBB0_32
## %bb.14:
	movq	%r15, %rdi
	callq	_SlDeleteShader
	jmp	LBB0_32
LBB0_15:
	movq	-72(%rbp), %rdi
	callq	_ID3D10Blob_GetBufferPointer
	movq	%rax, %rbx
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	_strlen
	incb	%al
	movsbl	%al, %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movq	%r12, %rdi
	callq	_strlen
	movsbq	%al, %rax
	addq	%rax, %rbx
LBB0_17:
	movq	%rbx, %r12
	movq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	incb	%al
	movsbl	%al, %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_ID3D10Blob_Release
LBB0_19:
	movq	-72(%rbp), %rax
	movq	%rax, (%r13)
LBB0_20:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-56(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_21:
	testq	%r15, %r15
	je	LBB0_22
## %bb.24:
	leaq	-80(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_SlWriteBytecode
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_SlDeleteShader
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ERR
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_22:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_26:
	testq	%r14, %r14
	je	LBB0_30
## %bb.27:
	movsbl	-41(%rbp), %edi
	leaq	-72(%rbp), %rsi
	callq	_D3DCreateBlob
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-80(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	jmp	LBB0_32
LBB0_29:
	movq	-72(%rbp), %rdi
	callq	_ID3D10Blob_GetBufferPointer
	movq	-80(%rbp), %rsi
	movsbl	-41(%rbp), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	-72(%rbp), %rax
	movq	%rax, (%r14)
LBB0_30:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-80(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Preprocessed shader source: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Checking compilation target %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown compilation target %s\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
L_.str.3:                               ## @.str.3
	.asciz	"Compilation target %s not yet supported\n"

L_.str.4:                               ## @.str.4
	.asciz	"Compiler messages:\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s\n"

L_.str.6:                               ## @.str.6
	.asciz	"Shader source:\n"

L_.str.7:                               ## @.str.7
	.asciz	"HLSL shader parsing failed.\n"

	.comm	_D3DXERR_INVALIDDATA,4,2        ## @D3DXERR_INVALIDDATA
L_.str.8:                               ## @.str.8
	.asciz	"SlWriteBytecode failed with error 0x%08x.\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_compile_shader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compile_shader
_compile_shader:                        ; @compile_shader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	str	xzr, [sp, #40]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x23
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x23
	bl	_get_target_info
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	w1, [x0]
	ldrsb	w2, [x0, #4]
	ldrsb	w3, [x0, #5]
	add	x5, sp, #40
	mov	x0, x22
	mov	x4, x21
	bl	_parse_hlsl_shader
	mov	x21, x0
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_21
; %bb.3:
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	x0, [sp, #40]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x23, l_.str.5@PAGE
Lloh7:
	add	x23, x23, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_TRACE
Lloh8:
	adrp	x0, l_.str.6@PAGE
Lloh9:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	mov	x0, x22
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x23
	bl	_TRACE
	cbz	x20, LBB0_20
; %bb.4:
	ldr	x0, [x20]
	cbz	x0, LBB0_10
; %bb.5:
	bl	_ID3D10Blob_GetBufferPointer
	mov	x22, x0
	ldr	x0, [sp, #40]
	bl	_strlen
	mov	x23, x0
	cbz	x22, LBB0_11
; %bb.6:
	mov	x0, x22
	bl	_strlen
	mov	w24, #0
	b	LBB0_12
LBB0_7:
	mov	x0, x23
	bl	_debugstr_a
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x0, x23
	bl	_debugstr_a
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_FIXME
Lloh14:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
	b	LBB0_26
LBB0_10:
	ldr	x0, [sp, #40]
	bl	_strlen
	mov	x23, x0
	mov	x22, #0
LBB0_11:
	mov	w0, #0
	mov	w24, #1
LBB0_12:
	add	w8, w23, w0
	add	w8, w8, #1
	strb	w8, [sp, #31]
	sxtb	w0, w8
	add	x1, sp, #16
	bl	_D3DCreateBlob
	mov	x23, x0
	bl	_FAILED
	cbz	x0, LBB0_15
; %bb.13:
	bl	_GetProcessHeap
	ldr	x2, [sp, #40]
	mov	w1, #0
	bl	_HeapFree
	cbz	x21, LBB0_27
; %bb.14:
	mov	x0, x21
	bl	_SlDeleteShader
	b	LBB0_27
LBB0_15:
	ldr	x0, [sp, #16]
	bl	_ID3D10Blob_GetBufferPointer
	mov	x23, x0
	tbnz	w24, #0, LBB0_17
; %bb.16:
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	sxtb	w2, w8
	mov	x0, x23
	mov	x1, x22
	bl	_memcpy
	mov	x0, x22
	bl	_strlen
	add	x23, x23, w0, sxtw
LBB0_17:
	ldr	x22, [sp, #40]
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	sxtb	w2, w8
	mov	x0, x23
	mov	x1, x22
	bl	_memcpy
	ldr	x0, [x20]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_ID3D10Blob_Release
LBB0_19:
	ldr	x8, [sp, #16]
	str	x8, [x20]
LBB0_20:
	bl	_GetProcessHeap
	ldr	x2, [sp, #40]
	mov	w1, #0
	bl	_HeapFree
LBB0_21:
	cbz	x21, LBB0_24
; %bb.22:
	add	x2, sp, #32
	add	x3, sp, #31
	mov	x0, x21
	mov	w1, #9
	bl	_SlWriteBytecode
	mov	x20, x0
	mov	x0, x21
	bl	_SlDeleteShader
	mov	x0, x20
	bl	_FAILED
	cbz	x0, LBB0_28
; %bb.23:
	str	x20, [sp]
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_25:
	bl	_ERR
Lloh20:
	adrp	x8, _D3DXERR_INVALIDDATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _D3DXERR_INVALIDDATA@GOTPAGEOFF]
LBB0_26:
	ldr	w23, [x8]
LBB0_27:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_28:
	cbz	x19, LBB0_32
; %bb.29:
	ldrsb	w0, [sp, #31]
	add	x1, sp, #16
	bl	_D3DCreateBlob
	mov	x23, x0
	bl	_FAILED
	cbz	x0, LBB0_31
; %bb.30:
	bl	_GetProcessHeap
	ldr	x2, [sp, #32]
	mov	w1, #0
	bl	_HeapFree
	b	LBB0_27
LBB0_31:
	ldr	x0, [sp, #16]
	bl	_ID3D10Blob_GetBufferPointer
	ldr	x1, [sp, #32]
	ldrsb	w2, [sp, #31]
	bl	_memcpy
	ldr	x8, [sp, #16]
	str	x8, [x19]
LBB0_32:
	bl	_GetProcessHeap
	ldr	x2, [sp, #32]
	mov	w1, #0
	bl	_HeapFree
Lloh22:
	adrp	x8, _S_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_26
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Preprocessed shader source: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Checking compilation target %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown compilation target %s\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
l_.str.3:                               ; @.str.3
	.asciz	"Compilation target %s not yet supported\n"

l_.str.4:                               ; @.str.4
	.asciz	"Compiler messages:\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s\n"

l_.str.6:                               ; @.str.6
	.asciz	"Shader source:\n"

l_.str.7:                               ; @.str.7
	.asciz	"HLSL shader parsing failed.\n"

	.comm	_D3DXERR_INVALIDDATA,4,2        ; @D3DXERR_INVALIDDATA
l_.str.8:                               ; @.str.8
	.asciz	"SlWriteBytecode failed with error 0x%08x.\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_compile_shader
.subsections_via_symbols
