	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imageviewer_load
_imageviewer_load:                      ## @imageviewer_load
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_imageviewer_free_image
	movq	_image_texture@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_image_texture_load
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	16(%r15), %rax
	movq	_image_buffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	4(%r15), %ecx
	movl	8(%r15), %edx
	movq	_image_width@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movq	_image_height@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_process_new_image@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_image_texture,24,3             ## @image_texture
	.comm	_image_buffer,8,3               ## @image_buffer
	.comm	_image_width,4,2                ## @image_width
	.comm	_image_height,4,2               ## @image_height
	.comm	_process_new_image,4,2          ## @process_new_image
	.comm	_RETRO_VFS_FILE_ACCESS_HINT_NONE,4,2 ## @RETRO_VFS_FILE_ACCESS_HINT_NONE
	.comm	_RETRO_VFS_FILE_ACCESS_READ,4,2 ## @RETRO_VFS_FILE_ACCESS_READ
	.no_dead_strip	_imageviewer_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imageviewer_load
_imageviewer_load:                      ; @imageviewer_load
	.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	x20, x0
	bl	_imageviewer_free_image
Lloh0:
	adrp	x19, _image_texture@GOTPAGE
Lloh1:
	ldr	x19, [x19, _image_texture@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_image_texture_load
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _image_buffer@GOTPAGE
Lloh3:
	ldr	x9, [x9, _image_buffer@GOTPAGEOFF]
Lloh4:
	str	x8, [x9]
Lloh5:
	adrp	x9, _image_width@GOTPAGE
Lloh6:
	ldr	x9, [x9, _image_width@GOTPAGEOFF]
	ldp	w11, w10, [x19, #4]
Lloh7:
	str	w10, [x9]
Lloh8:
	adrp	x9, _image_height@GOTPAGE
Lloh9:
	ldr	x9, [x9, _image_height@GOTPAGEOFF]
Lloh10:
	str	w11, [x9]
	cbz	x8, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _process_new_image@GOTPAGE
Lloh12:
	ldr	x8, [x8, _process_new_image@GOTPAGEOFF]
	mov	w0, #1
Lloh13:
	str	w0, [x8]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_image_texture,24,3             ; @image_texture
	.comm	_image_buffer,8,3               ; @image_buffer
	.comm	_image_width,4,2                ; @image_width
	.comm	_image_height,4,2               ; @image_height
	.comm	_process_new_image,4,2          ; @process_new_image
	.comm	_RETRO_VFS_FILE_ACCESS_HINT_NONE,4,2 ; @RETRO_VFS_FILE_ACCESS_HINT_NONE
	.comm	_RETRO_VFS_FILE_ACCESS_READ,4,2 ; @RETRO_VFS_FILE_ACCESS_READ
	.no_dead_strip	_imageviewer_load
.subsections_via_symbols
