	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_texture_load_internal
_image_texture_load_internal:           ## @image_texture_load_internal
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movl	%edi, %r14d
	callq	_image_transfer_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	callq	_image_transfer_set_buffer_ptr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_image_transfer_start
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_image_transfer_iterate
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_image_transfer_is_valid
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	leaq	8(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%r12, %r9
	callq	_image_transfer_process
	movq	_IMAGE_PROCESS_NEXT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.7:
	movq	_IMAGE_PROCESS_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$0, %r15d
	movl	24(%rbp), %edx
	movl	16(%rbp), %esi
	je	LBB0_10
## %bb.8:
	movq	_IMAGE_PROCESS_ERROR_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_image_texture_color_convert
	movl	$1, %r15d
LBB0_10:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_image_transfer_free
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_PROCESS_NEXT,4,2         ## @IMAGE_PROCESS_NEXT
	.comm	_IMAGE_PROCESS_ERROR,4,2        ## @IMAGE_PROCESS_ERROR
	.comm	_IMAGE_PROCESS_ERROR_END,4,2    ## @IMAGE_PROCESS_ERROR_END
	.no_dead_strip	_image_texture_load_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_texture_load_internal
_image_texture_load_internal:           ; @image_texture_load_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x24, x6
	mov	x25, x5
	mov	x23, x4
	mov	x22, x3
	mov	x26, x2
	mov	x27, x1
	mov	x19, x0
	bl	_image_transfer_new
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x1, x19
	mov	x2, x27
	mov	x3, x26
	bl	_image_transfer_set_buffer_ptr
	mov	x0, x20
	mov	x1, x19
	bl	_image_transfer_start
	cbz	w0, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_image_transfer_iterate
	cbnz	x0, LBB0_2
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_image_transfer_is_valid
	cbz	w0, LBB0_7
; %bb.4:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	add	x27, x22, #8
	add	x28, x22, #4
Lloh0:
	adrp	x21, _IMAGE_PROCESS_NEXT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IMAGE_PROCESS_NEXT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x27
	mov	x3, x26
	mov	x4, x28
	mov	x5, x22
	bl	_image_transfer_process
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.6:
Lloh2:
	adrp	x8, _IMAGE_PROCESS_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IMAGE_PROCESS_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IMAGE_PROCESS_ERROR_END@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IMAGE_PROCESS_ERROR_END@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_11
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_image_transfer_free
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	x0, x25
	mov	x1, x24
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x23
	mov	x4, x22
	bl	_image_texture_color_convert
	mov	w21, #1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_PROCESS_NEXT,4,2         ; @IMAGE_PROCESS_NEXT
	.comm	_IMAGE_PROCESS_ERROR,4,2        ; @IMAGE_PROCESS_ERROR
	.comm	_IMAGE_PROCESS_ERROR_END,4,2    ; @IMAGE_PROCESS_ERROR_END
	.no_dead_strip	_image_texture_load_internal
.subsections_via_symbols
