	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d9_hlsl_load_program_from_file
_d3d9_hlsl_load_program_from_file:      ## @d3d9_hlsl_load_program_from_file
	.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, %rbx
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	$0, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	%rdx, %rdi
	callq	_string_is_empty
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	leaq	12(%r15), %rax
	subq	$8, %rsp
	leaq	-72(%rbp), %r12
	leaq	-64(%rbp), %r13
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r12
	pushq	%r13
	callq	_d3d9x_compile_shader_from_file
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	8(%r15), %rax
	subq	$8, %rsp
	leaq	-56(%rbp), %r10
	leaq	-48(%rbp), %r11
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_d3d9x_compile_shader_from_file
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.11:
	movq	-64(%rbp), %rdi
	callq	_d3d9x_get_buffer_ptr
	leaq	4(%r15), %rdx
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_d3d9_create_pixel_shader
	movq	-48(%rbp), %rdi
	callq	_d3d9x_get_buffer_ptr
	movl	%r14d, %edi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_d3d9_create_vertex_shader
	movl	$1, %r12d
	leaq	-48(%rbp), %rbx
	jmp	LBB0_9
LBB0_2:
	movq	%r12, %r13
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %r13
	leaq	L_.str.5(%rip), %rdi
LBB0_5:
	xorl	%r12d, %r12d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_d3d9x_get_buffer_ptr
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_7:
	movq	-56(%rbp), %rdi
	leaq	-56(%rbp), %rbx
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_d3d9x_get_buffer_ptr
	leaq	L_.str.8(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_9:
	movq	(%r13), %rdi
	callq	_d3d9x_buffer_release
	movq	(%rbx), %rdi
	callq	_d3d9x_buffer_release
LBB0_10:
	movl	%r12d, %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	"main_fragment"

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

L_.str.2:                               ## @.str.2
	.asciz	"Could not compile fragment shader program (%s)..\n"

L_.str.3:                               ## @.str.3
	.asciz	"main_vertex"

L_.str.4:                               ## @.str.4
	.asciz	"vs_3_0"

L_.str.5:                               ## @.str.5
	.asciz	"Could not compile vertex shader program (%s)..\n"

L_.str.6:                               ## @.str.6
	.asciz	"Cg/HLSL error:\n"

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

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

	.no_dead_strip	_d3d9_hlsl_load_program_from_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d9_hlsl_load_program_from_file
_d3d9_hlsl_load_program_from_file:      ; @d3d9_hlsl_load_program_from_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	mov	x0, x2
	bl	_string_is_empty
	cbz	x0, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_13
LBB0_2:
	add	x8, x19, #12
	str	x8, [sp]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x6, sp, #24
	add	x7, sp, #40
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	mov	w5, #0
	bl	_d3d9x_compile_shader_from_file
	cbz	w0, LBB0_5
; %bb.3:
	add	x8, x19, #8
	str	x8, [sp]
Lloh4:
	adrp	x3, l_.str.3@PAGE
Lloh5:
	add	x3, x3, l_.str.3@PAGEOFF
Lloh6:
	adrp	x4, l_.str.4@PAGE
Lloh7:
	add	x4, x4, l_.str.4@PAGEOFF
	add	x6, sp, #16
	add	x7, sp, #32
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	mov	w5, #0
	bl	_d3d9x_compile_shader_from_file
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x0, [sp, #24]
	bl	_d3d9x_get_buffer_ptr
	mov	x1, x0
	add	x2, x19, #4
	mov	x0, x20
	bl	_d3d9_create_pixel_shader
	ldr	x0, [sp, #16]
	bl	_d3d9x_get_buffer_ptr
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_d3d9_create_vertex_shader
	mov	w19, #1
	add	x20, sp, #16
	add	x8, sp, #24
	b	LBB0_12
LBB0_5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_7:
	str	x21, [sp]
	bl	_RARCH_ERR
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_RARCH_ERR
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_d3d9x_get_buffer_ptr
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_RARCH_ERR
LBB0_9:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_d3d9x_get_buffer_ptr
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_RARCH_ERR
LBB0_11:
	mov	w19, #0
	add	x20, sp, #32
	add	x8, sp, #40
LBB0_12:
	ldr	x0, [x8]
	bl	_d3d9x_buffer_release
	ldr	x0, [x20]
	bl	_d3d9x_buffer_release
LBB0_13:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"main_fragment"

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

l_.str.2:                               ; @.str.2
	.asciz	"Could not compile fragment shader program (%s)..\n"

l_.str.3:                               ; @.str.3
	.asciz	"main_vertex"

l_.str.4:                               ; @.str.4
	.asciz	"vs_3_0"

l_.str.5:                               ; @.str.5
	.asciz	"Could not compile vertex shader program (%s)..\n"

l_.str.6:                               ; @.str.6
	.asciz	"Cg/HLSL error:\n"

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

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

	.no_dead_strip	_d3d9_hlsl_load_program_from_file
.subsections_via_symbols
