	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_load_texture
_vulkan_load_texture:                   ## @vulkan_load_texture
	.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
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r12
	movq	8(%rbx), %r9
	testq	%r9, %r9
	je	LBB0_7
## %bb.3:
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.4:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.5:
	movq	_VK_FORMAT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VULKAN_TEXTURE_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rdi
	xorl	%esi, %esi
	pushq	%rax
	pushq	$0
	callq	_vulkan_create_texture
	addq	$16, %rsp
	movq	%rax, (%r12)
	movq	_TEXTURE_FILTER_MIPMAP_LINEAR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	sete	%cl
	movq	_TEXTURE_FILTER_LINEAR@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	sete	%dl
	orb	%cl, %dl
	movzbl	%dl, %ecx
	movl	%ecx, (%r12)
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rax)
	sete	%bl
	jmp	LBB0_8
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_7:
	movq	_VK_FORMAT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VULKAN_TEXTURE_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	_vulkan_load_texture.checkerboard(%rip), %r9
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	movl	$8, %ecx
	pushq	%rax
	pushq	$0
	callq	_vulkan_create_texture
	addq	$16, %rsp
	movq	%rax, (%r12)
	movl	$0, (%r12)
LBB0_8:
	movl	%ebx, 4(%r12)
LBB0_10:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @vulkan_load_texture.checkerboard
_vulkan_load_texture.checkerboard:
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000
	.long	4294967295                      ## 0xffffffff
	.long	4278190080                      ## 0xff000000

	.comm	_VK_FORMAT_B8G8R8A8_UNORM,4,2   ## @VK_FORMAT_B8G8R8A8_UNORM
	.comm	_VULKAN_TEXTURE_STATIC,4,2      ## @VULKAN_TEXTURE_STATIC
	.comm	_TEXTURE_FILTER_MIPMAP_LINEAR,4,2 ## @TEXTURE_FILTER_MIPMAP_LINEAR
	.comm	_TEXTURE_FILTER_LINEAR,4,2      ## @TEXTURE_FILTER_LINEAR
	.no_dead_strip	_vulkan_load_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_load_texture
_vulkan_load_texture:                   ; @vulkan_load_texture
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x22, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.2:
	ldr	x5, [x22, #8]
	cbz	x5, LBB0_7
; %bb.3:
	ldr	w2, [x22]
	cbz	w2, LBB0_7
; %bb.4:
	ldr	w3, [x22, #4]
	cbz	w3, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _VK_FORMAT_B8G8R8A8_UNORM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_FORMAT_B8G8R8A8_UNORM@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _VULKAN_TEXTURE_STATIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VULKAN_TEXTURE_STATIC@GOTPAGEOFF]
Lloh5:
	ldr	w7, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x6, #0
	bl	_vulkan_create_texture
Lloh6:
	adrp	x8, _TEXTURE_FILTER_MIPMAP_LINEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TEXTURE_FILTER_MIPMAP_LINEAR@GOTPAGEOFF]
	str	x0, [x19]
	ldr	w9, [x8]
	cmp	w9, w20
Lloh8:
	adrp	x9, _TEXTURE_FILTER_LINEAR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TEXTURE_FILTER_LINEAR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ccmp	w9, w20, #4, ne
	cset	w9, eq
	str	w9, [x19]
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w8, eq
	b	LBB0_8
LBB0_6:
	mov	x19, #0
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _VK_FORMAT_B8G8R8A8_UNORM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VK_FORMAT_B8G8R8A8_UNORM@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _VULKAN_TEXTURE_STATIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VULKAN_TEXTURE_STATIC@GOTPAGEOFF]
Lloh16:
	ldr	w7, [x8]
Lloh17:
	adrp	x5, _vulkan_load_texture.checkerboard@PAGE
Lloh18:
	add	x5, x5, _vulkan_load_texture.checkerboard@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	w2, #8
	mov	w3, #8
	mov	x6, #0
	bl	_vulkan_create_texture
	mov	w8, #0
	str	x0, [x19]
	str	wzr, [x19]
LBB0_8:
	str	w8, [x19, #4]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @vulkan_load_texture.checkerboard
_vulkan_load_texture.checkerboard:
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000
	.long	4294967295                      ; 0xffffffff
	.long	4278190080                      ; 0xff000000

	.comm	_VK_FORMAT_B8G8R8A8_UNORM,4,2   ; @VK_FORMAT_B8G8R8A8_UNORM
	.comm	_VULKAN_TEXTURE_STATIC,4,2      ; @VULKAN_TEXTURE_STATIC
	.comm	_TEXTURE_FILTER_MIPMAP_LINEAR,4,2 ; @TEXTURE_FILTER_MIPMAP_LINEAR
	.comm	_TEXTURE_FILTER_LINEAR,4,2      ; @TEXTURE_FILTER_LINEAR
	.no_dead_strip	_vulkan_load_texture
.subsections_via_symbols
