	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_destroy_texture         ## -- Begin function vulkan_destroy_texture
	.p2align	4, 0x90
_vulkan_destroy_texture:                ## @vulkan_destroy_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	cmpq	$0, 32(%rsi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_vkUnmapMemory
LBB0_2:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_vkDestroyImageView
LBB0_4:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_vkDestroyImage
LBB0_6:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_vkDestroyBuffer
LBB0_8:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_vkFreeMemory
LBB0_10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_destroy_texture         ; -- Begin function vulkan_destroy_texture
	.p2align	2
_vulkan_destroy_texture:                ; @vulkan_destroy_texture
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_vkUnmapMemory
LBB0_2:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x2, #0
	bl	_vkDestroyImageView
LBB0_4:
	ldr	x1, [x19]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x2, #0
	bl	_vkDestroyImage
LBB0_6:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x2, #0
	bl	_vkDestroyBuffer
LBB0_8:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x2, #0
	bl	_vkFreeMemory
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
