	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_image_texture_load_buffer      ## -- Begin function image_texture_load_buffer
	.p2align	4, 0x90
_image_texture_load_buffer:             ## @image_texture_load_buffer
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %r8
	callq	_image_texture_set_color_shifts
	movq	_IMAGE_TYPE_NONE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	-36(%rbp), %r8d
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %r10d
	movl	-40(%rbp), %eax
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	pushq	%rax
	pushq	%r10
	callq	_image_texture_load_internal
	addq	$16, %rsp
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
LBB0_2:
	movl	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_TYPE_NONE,4,2            ## @IMAGE_TYPE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_image_texture_load_buffer      ; -- Begin function image_texture_load_buffer
	.p2align	2
_image_texture_load_buffer:             ; @image_texture_load_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x4, x19
	bl	_image_texture_set_color_shifts
Lloh0:
	adrp	x8, _IMAGE_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMAGE_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_3
; %bb.1:
	ldp	w4, w7, [sp]
	ldp	w6, w5, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_image_texture_load_internal
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	str	wzr, [x19]
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_TYPE_NONE,4,2            ; @IMAGE_TYPE_NONE
.subsections_via_symbols
