	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d11_init_shader              ## -- Begin function d3d11_init_shader
	.p2align	4, 0x90
_d3d11_init_shader:                     ## @d3d11_init_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	%r9, %rbx
	movq	%rcx, %r15
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rax
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.8:
	movq	%rdx, %r12
	movq	%rsi, %r14
	testq	%r8, %r8
	je	LBB0_9
## %bb.10:
	leaq	L_.str(%rip), %rax
	leaq	-56(%rbp), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r8, %rcx
	movq	%rax, %r8
	callq	_d3d_compile
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %r8
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_d3d_compile
	testl	%eax, %eax
	cmovel	%eax, %r13d
LBB0_13:
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %r8
	leaq	-64(%rbp), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_d3d_compile
	testl	%eax, %eax
	cmovel	%eax, %r13d
LBB0_15:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_16
LBB0_1:
	movq	%rax, %r14
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r8, %rsi
	callq	_d3d_compile_from_file
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
	jmp	LBB0_4
LBB0_9:
	movl	$1, %r13d
	testq	%rbx, %rbx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_2:
	movl	$1, %r13d
LBB0_4:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdx
	leaq	-72(%rbp), %rcx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_d3d_compile_from_file
	testl	%eax, %eax
	cmovel	%eax, %r13d
LBB0_6:
	testq	%r14, %r14
	je	LBB0_16
## %bb.7:
	movq	%r14, %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	-64(%rbp), %rcx
	movl	%r15d, %edi
	callq	_d3d_compile_from_file
	testl	%eax, %eax
	cmovel	%eax, %r13d
LBB0_16:
	movq	40(%rbp), %r15
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_D3DGetBufferPointer
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi
	callq	_D3DGetBufferSize
	leaq	12(%r15), %r8
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_D3D11CreateVertexShader
LBB0_18:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_D3DGetBufferPointer
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi
	callq	_D3DGetBufferSize
	leaq	8(%r15), %r8
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_D3D11CreatePixelShader
LBB0_20:
	movq	24(%rbp), %r14
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_D3DGetBufferPointer
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi
	callq	_D3DGetBufferSize
	leaq	4(%r15), %r8
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_D3D11CreateGeometryShader
LBB0_22:
	movq	-56(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_25
## %bb.23:
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	movl	32(%rbp), %r15d
	callq	_D3DGetBufferPointer
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi
	callq	_D3DGetBufferSize
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	40(%rbp), %r9
	callq	_D3D11CreateInputLayout
	movq	-56(%rbp), %rdi
LBB0_25:
	callq	_Release
	movq	-72(%rbp), %rdi
	callq	_Release
	movq	-64(%rbp), %rdi
	callq	_Release
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vs_4_0"

L_.str.1:                               ## @.str.1
	.asciz	"ps_4_0"

L_.str.2:                               ## @.str.2
	.asciz	"gs_4_0"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d11_init_shader              ; -- Begin function d3d11_init_shader
	.p2align	2
_d3d11_init_shader:                     ; @d3d11_init_shader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x7
	mov	x22, x6
	mov	x24, x5
	mov	x23, x3
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x25, x2
	mov	x26, x1
	cbz	x4, LBB0_22
; %bb.2:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	add	x5, sp, #24
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x4
	mov	x4, x8
	bl	_d3d_compile
	cmp	w0, #0
	cset	w21, ne
	cbz	x24, LBB0_4
LBB0_3:
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x5, sp, #16
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_d3d_compile
	cmp	w0, #0
	csel	w21, wzr, w21, eq
LBB0_4:
	cbz	x22, LBB0_12
; %bb.5:
Lloh4:
	adrp	x4, l_.str.2@PAGE
Lloh5:
	add	x4, x4, l_.str.2@PAGEOFF
	add	x5, sp, #8
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	bl	_d3d_compile
	b	LBB0_11
LBB0_6:
	cbz	x4, LBB0_23
; %bb.7:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #24
	mov	x0, x23
	mov	x1, x4
	bl	_d3d_compile_from_file
	cmp	w0, #0
	cset	w21, ne
	cbz	x24, LBB0_9
LBB0_8:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x3, sp, #16
	mov	x0, x23
	mov	x1, x24
	bl	_d3d_compile_from_file
	cmp	w0, #0
	csel	w21, wzr, w21, eq
LBB0_9:
	cbz	x22, LBB0_12
; %bb.10:
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	bl	_d3d_compile_from_file
LBB0_11:
	cmp	w0, #0
	csel	w21, wzr, w21, eq
LBB0_12:
	ldr	x22, [x29, #24]
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_D3DGetBufferPointer
	mov	x23, x0
	ldr	x0, [sp, #24]
	bl	_D3DGetBufferSize
	mov	x2, x0
	add	x4, x22, #12
	mov	x0, x20
	mov	x1, x23
	mov	x3, #0
	bl	_D3D11CreateVertexShader
LBB0_14:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_D3DGetBufferPointer
	mov	x23, x0
	ldr	x0, [sp, #16]
	bl	_D3DGetBufferSize
	mov	x2, x0
	add	x4, x22, #8
	mov	x0, x20
	mov	x1, x23
	mov	x3, #0
	bl	_D3D11CreatePixelShader
LBB0_16:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_D3DGetBufferPointer
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_D3DGetBufferSize
	mov	x2, x0
	add	x4, x22, #4
	mov	x0, x20
	mov	x1, x23
	mov	x3, #0
	bl	_D3D11CreateGeometryShader
LBB0_18:
	ldr	x0, [sp, #24]
	cbz	x19, LBB0_21
; %bb.19:
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w23, [x29, #16]
	bl	_D3DGetBufferPointer
	mov	x24, x0
	ldr	x0, [sp, #24]
	bl	_D3DGetBufferSize
	mov	x4, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	mov	x5, x22
	bl	_D3D11CreateInputLayout
	ldr	x0, [sp, #24]
LBB0_21:
	bl	_Release
	ldr	x0, [sp, #16]
	bl	_Release
	ldr	x0, [sp, #8]
	bl	_Release
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	mov	w21, #1
	cbnz	x24, LBB0_3
	b	LBB0_4
LBB0_23:
	mov	w21, #1
	cbnz	x24, LBB0_8
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vs_4_0"

l_.str.1:                               ; @.str.1
	.asciz	"ps_4_0"

l_.str.2:                               ; @.str.2
	.asciz	"gs_4_0"

.subsections_via_symbols
