	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function texture3d_load_location
_texture3d_load_location:               ## @texture3d_load_location
	.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
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	16(%rdi), %r13
	callq	_wined3d_texture_prepare_location
	movq	_FALSE@GOTPCREL(%rip), %r8
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	leaq	(%rax,%rax,2), %rax
	leaq	(,%rax,8), %r14
	addq	%r13, %r14
	leal	-128(%r15), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.2:
	cmpl	$130, %r15d
	je	LBB0_8
## %bb.3:
	cmpl	$131, %r15d
	jne	LBB0_10
## %bb.4:
	movl	(%r14), %edi
	testb	$-127, %dil
	je	LBB0_14
## %bb.5:
	movslq	16(%r13,%rax,8), %rax
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wined3d_texture_bind_and_dirtify
	leaq	-72(%rbp), %rcx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_texture3d_download_data
	movq	_TRUE@GOTPCREL(%rip), %r8
	jmp	LBB0_18
LBB0_6:
	movl	(%r14), %edi
	testb	$-126, %dil
	je	LBB0_11
## %bb.7:
	movq	$0, -72(%rbp)
	movl	8(%r12), %ecx
	movl	%ecx, -64(%rbp)
	movl	20(%r13,%rax,8), %eax
	movl	%eax, -60(%rbp)
	jmp	LBB0_13
LBB0_8:
	movl	(%r14), %edi
	testb	$-127, %dil
	je	LBB0_15
## %bb.9:
	movq	$0, -72(%rbp)
	movl	8(%r12), %ecx
	movl	%ecx, -64(%rbp)
	movl	20(%r13,%rax,8), %eax
	movl	%eax, -60(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wined3d_texture_bind_and_dirtify
	leaq	-72(%rbp), %rcx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_texture3d_download_data
	incl	(%r12)
	movq	_TRUE@GOTPCREL(%rip), %r8
	jmp	LBB0_18
LBB0_10:
	movl	%r15d, %edi
	movq	%r8, %r15
	callq	_wined3d_debug_location
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_wined3d_debug_location
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_FIXME
	movq	%r15, %r8
	jmp	LBB0_18
LBB0_11:
	testb	$-125, %dil
	je	LBB0_19
## %bb.12:
	movslq	16(%r13,%rax,8), %rax
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
LBB0_13:
	xorl	%edx, %edx
	cmpl	$128, %r15d
	sete	%dl
	movq	%r12, %rdi
	movq	%rbx, %r14
	movq	%rbx, %rsi
	callq	_wined3d_texture_bind_and_dirtify
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_wined3d_texture_get_pitch
	movl	-52(%rbp), %r9d
	movl	-48(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	-72(%rbp), %r8
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_texture3d_upload_data
	movq	_TRUE@GOTPCREL(%rip), %r8
	jmp	LBB0_18
LBB0_14:
	movq	%r8, %rbx
	callq	_wined3d_debug_location
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_16
LBB0_15:
	movq	%r8, %rbx
	callq	_wined3d_debug_location
	leaq	L_.str.1(%rip), %rdi
LBB0_16:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_17:
	movq	%rbx, %r8
LBB0_18:
	movl	(%r8), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	testb	$-127, %dil
	movq	%rbx, %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_21
## %bb.20:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	callq	_texture3d_srgb_transfer
	jmp	LBB0_17
LBB0_21:
	testb	$-128, %dil
	jne	LBB0_23
## %bb.22:
	movq	%r8, %rbx
	callq	_wined3d_debug_location
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_16
LBB0_23:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_texture3d_srgb_transfer
	movq	_TRUE@GOTPCREL(%rip), %r8
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Implement texture loading from %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Implement WINED3D_LOCATION_SYSMEM loading from %s.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Implement WINED3D_LOCATION_BUFFER loading from %s.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Implement %s loading from %s.\n"

	.no_dead_strip	_texture3d_load_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function texture3d_load_location
_texture3d_load_location:               ; @texture3d_load_location
	.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	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x24, [x0, #16]
	bl	_wined3d_texture_prepare_location
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	cbz	w0, LBB0_18
; %bb.1:
	mov	w8, w21
	mov	w9, #24
	umaddl	x25, w21, w9, x24
	sub	w9, w22, #128
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.2:
	cmp	w22, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w22, #131
	b.ne	LBB0_10
; %bb.4:
	ldr	w0, [x25]
	mov	w9, #129
	tst	w0, w9
	b.eq	LBB0_15
; %bb.5:
	mov	w9, #24
	madd	x8, x8, x9, x24
	ldrsw	x8, [x8, #16]
	stp	x8, xzr, [sp, #8]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_wined3d_texture_bind_and_dirtify
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_texture3d_download_data
	b	LBB0_14
LBB0_6:
	ldr	w0, [x25]
	mov	w9, #130
	tst	w0, w9
	b.eq	LBB0_11
; %bb.7:
	str	xzr, [sp, #8]
	ldr	x9, [x20, #8]
	str	w9, [sp, #16]
	mov	w9, #24
	madd	x8, x8, x9, x24
	ldr	w8, [x8, #20]
	str	w8, [sp, #20]
	b	LBB0_13
LBB0_8:
	ldr	w0, [x25]
	mov	w9, #129
	tst	w0, w9
	b.eq	LBB0_16
; %bb.9:
	str	xzr, [sp, #8]
	ldr	x9, [x20, #8]
	str	w9, [sp, #16]
	mov	w9, #24
	madd	x8, x8, x9, x24
	ldr	w8, [x8, #20]
	str	w8, [sp, #20]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_wined3d_texture_bind_and_dirtify
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_texture3d_download_data
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_14
LBB0_10:
	mov	x0, x22
	bl	_wined3d_debug_location
	mov	x19, x0
	ldr	w0, [x25]
	bl	_wined3d_debug_location
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	b	LBB0_17
LBB0_11:
	mov	w9, #131
	tst	w0, w9
	b.eq	LBB0_19
; %bb.12:
	mov	w9, #24
	madd	x8, x8, x9, x24
	ldrsw	x8, [x8, #16]
	stp	x8, xzr, [sp, #8]
LBB0_13:
	cmp	w22, #128
	cset	w2, eq
	mov	x0, x20
	mov	x1, x19
	bl	_wined3d_texture_bind_and_dirtify
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x21
	bl	_wined3d_texture_get_pitch
	ldp	w6, w5, [sp, #24]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	bl	_texture3d_upload_data
LBB0_14:
Lloh4:
	adrp	x23, _TRUE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	bl	_wined3d_debug_location
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
	bl	_wined3d_debug_location
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_17:
	bl	_FIXME
Lloh10:
	adrp	x23, _FALSE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	mov	w8, #129
	tst	w0, w8
	b.eq	LBB0_21
; %bb.20:
Lloh12:
	adrp	x23, _TRUE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_texture3d_srgb_transfer
	b	LBB0_18
LBB0_21:
	tbnz	w0, #7, LBB0_23
; %bb.22:
	bl	_wined3d_debug_location
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_23:
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_texture3d_srgb_transfer
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Implement texture loading from %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Implement WINED3D_LOCATION_SYSMEM loading from %s.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Implement WINED3D_LOCATION_BUFFER loading from %s.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Implement %s loading from %s.\n"

	.no_dead_strip	_texture3d_load_location
.subsections_via_symbols
