	.file	"extr_d3d12.c_d3d12_gfx_load_texture.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	d3d12_gfx_load_texture, @function
d3d12_gfx_load_texture:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L24
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	mov	esi, 40
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 1
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	mov	rbx, rax
	xor	eax, eax
	test	rbx, rbx
	je	.L1
	cmp	r12d, 130
	je	.L5
	ja	.L6
	cmp	r12d, 128
	je	.L7
	cmp	r12d, 129
	jne	.L9
	mov	rax, QWORD PTR UINT16_MAX[rip]
	mov	QWORD PTR 24[rbx], rax
.L7:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR RARCH_FILTER_NEAREST[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR RARCH_WRAP_EDGE[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 32[rbx], eax
.L9:
	mov	eax, DWORD PTR 8[r13]
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, rbx
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 4[r13]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR DXGI_FORMAT_B8G8R8A8_UNORM[rip]
	mov	DWORD PTR 8[rbx], eax
	lea	rax, 4[rbp]
	mov	QWORD PTR [rbx], rax
	call	d3d12_init_texture@PLT
	mov	esi, DWORD PTR 4[r13]
	mov	edi, DWORD PTR 8[r13]
	mov	r9, rbx
	mov	r8d, DWORD PTR 0[r13]
	mov	ecx, DWORD PTR DXGI_FORMAT_B8G8R8A8_UNORM[rip]
	xor	edx, edx
	call	d3d12_update_texture@PLT
	mov	rax, rbx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	cmp	r12d, 131
	jne	.L9
.L10:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR RARCH_FILTER_LINEAR[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR RARCH_WRAP_EDGE[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 32[rbx], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	rax, QWORD PTR UINT16_MAX[rip]
	mov	QWORD PTR 24[rbx], rax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	d3d12_gfx_load_texture, .-d3d12_gfx_load_texture
	.comm	UINT16_MAX,8,8
	.comm	RARCH_WRAP_EDGE,8,8
	.comm	RARCH_FILTER_NEAREST,8,8
	.comm	RARCH_FILTER_LINEAR,8,8
	.comm	DXGI_FORMAT_B8G8R8A8_UNORM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_d3d12.c_d3d12_gfx_load_texture.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d3d12_gfx_load_texture, %function
d3d12_gfx_load_texture:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	subs	r7, r0, #0
	sub	sp, sp, #12
	beq	.L4
	mov	r6, r1
	mov	r0, #1
	mov	r1, #24
	mov	r5, r3
	bl	calloc
	subs	r4, r0, #0
	beq	.L4
	sub	r3, r5, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L8:
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [r4, #16]
.L6:
	ldr	r2, .L17+4
.L15:
	ldr	r1, [r2]
	ldr	r3, [r7, #8]
	ldr	r2, .L17+8
	ldr	r3, [r3, r1, lsl #2]
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [r4, #20]
.L5:
	ldr	r5, .L17+12
	ldr	r2, [r6, #8]
	ldr	r3, [r5]
	str	r2, [r4, #12]
	ldr	r2, [r6, #4]
	str	r3, [r4, #4]
	add	r3, r7, #4
	mov	r1, r4
	str	r2, [r4, #8]
	str	r3, [r4]
	ldr	r0, [r7]
	bl	d3d12_init_texture
	ldr	r2, [r6]
	ldr	r3, [r5]
	stm	sp, {r2, r4}
	mov	r2, #0
	ldr	r1, [r6, #4]
	ldr	r0, [r6, #8]
	bl	d3d12_update_texture
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [r4, #16]
.L10:
	ldr	r2, .L17+16
	b	.L15
.L4:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	.align	2
.L17:
	.word	UINT16_MAX
	.word	RARCH_FILTER_LINEAR
	.word	RARCH_WRAP_EDGE
	.word	DXGI_FORMAT_B8G8R8A8_UNORM
	.word	RARCH_FILTER_NEAREST
	.size	d3d12_gfx_load_texture, .-d3d12_gfx_load_texture
	.comm	UINT16_MAX,4,4
	.comm	RARCH_WRAP_EDGE,4,4
	.comm	RARCH_FILTER_NEAREST,4,4
	.comm	RARCH_FILTER_LINEAR,4,4
	.comm	DXGI_FORMAT_B8G8R8A8_UNORM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
