	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function texture3d_download_data
_texture3d_download_data:               ## @texture3d_download_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_1
## %bb.5:
	movl	8(%rbx), %edi
	callq	_debug_d3dformat
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_1:
	movq	%rcx, %r12
	movl	%esi, %r14d
	movq	(%rdx), %r15
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_GL_PIXEL_PACK_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBindBuffer
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
LBB0_3:
	movq	_GL_TEXTURE_3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	8(%r12), %r8d
	movl	%r14d, %esi
	callq	*(%r15)
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.6:
	movq	_GL_PIXEL_PACK_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glBindBuffer
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempting to download a converted volume, format %s.\n"

	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ## @GL_PIXEL_PACK_BUFFER
L_.str.1:                               ## @.str.1
	.asciz	"glBindBuffer"

	.comm	_GL_TEXTURE_3D,4,2              ## @GL_TEXTURE_3D
L_.str.2:                               ## @.str.2
	.asciz	"glGetTexImage"

	.no_dead_strip	_texture3d_download_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function texture3d_download_data
_texture3d_download_data:               ; @texture3d_download_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x22, [x0]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x22, #8]
	bl	_debug_d3dformat
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_FIXME
LBB0_2:
	mov	x19, x3
	mov	x20, x1
	ldr	x23, [x2]
	ldr	x1, [x3]
Lloh2:
	adrp	x21, _GL_PIXEL_PACK_BUFFER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GL_PIXEL_PACK_BUFFER@GOTPAGEOFF]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_glBindBuffer
	bl	_GL_EXTCALL
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_checkGLcall
LBB0_4:
	ldr	x8, [x23]
Lloh6:
	adrp	x9, _GL_TEXTURE_3D@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_TEXTURE_3D@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	ldp	w3, w2, [x22]
	ldr	w4, [x19, #8]
	mov	x1, x20
	blr	x8
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	mov	x1, #0
	bl	_glBindBuffer
	bl	_GL_EXTCALL
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_checkGLcall
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempting to download a converted volume, format %s.\n"

	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ; @GL_PIXEL_PACK_BUFFER
l_.str.1:                               ; @.str.1
	.asciz	"glBindBuffer"

	.comm	_GL_TEXTURE_3D,4,2              ; @GL_TEXTURE_3D
l_.str.2:                               ; @.str.2
	.asciz	"glGetTexImage"

	.no_dead_strip	_texture3d_download_data
.subsections_via_symbols
