	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_task_push_image_load           ## -- Begin function task_push_image_load
	.p2align	4, 0x90
_task_push_image_load:                  ## @task_push_image_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	%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
	movq	%r8, %rbx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_task_init
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	$104, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_NBIO_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	$0, (%rbx)
	movq	_NBIO_STATUS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	$0, 56(%rbx)
	movq	$0, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	movq	$0, 88(%rbx)
	movq	_cb_nbio_image_thumbnail@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	_NBIO_FLAG_IMAGE_SUPPORTS_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
LBB0_5:
	movl	$96, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_strdup
	movl	%eax, 52(%rbx)
	movq	_IMAGE_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_IMAGE_STATUS_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movq	$0, (%r14)
	movl	$0, 8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r14)
	movq	$0, 80(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	movl	$0, 24(%r14)
	movups	%xmm0, 48(%r14)
	movups	%xmm0, 32(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_IMAGE_TYPE_PNG@GOTPCREL(%rip), %r15
	movq	_NBIO_TYPE_PNG@GOTPCREL(%rip), %r13
	jmp	LBB0_15
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_2:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	movq	%r13, %rcx
	movq	_IMAGE_TYPE_JPEG@GOTPCREL(%rip), %r15
	movq	_NBIO_TYPE_JPEG@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_IMAGE_TYPE_BMP@GOTPCREL(%rip), %r15
	movq	_NBIO_TYPE_BMP@GOTPCREL(%rip), %r13
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_IMAGE_TYPE_TGA@GOTPCREL(%rip), %r15
	movq	_NBIO_TYPE_TGA@GOTPCREL(%rip), %r13
LBB0_15:
	movl	(%r13), %eax
	movl	%eax, 48(%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
LBB0_16:
	movq	%r14, 40(%rbx)
	movq	%rbx, 32(%r12)
	movq	_task_file_load_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_task_image_load_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_task_queue_push
	movl	$1, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBIO_TYPE_NONE,4,2             ## @NBIO_TYPE_NONE
	.comm	_NBIO_STATUS_INIT,4,2           ## @NBIO_STATUS_INIT
	.comm	_cb_nbio_image_thumbnail,4,2    ## @cb_nbio_image_thumbnail
	.comm	_NBIO_FLAG_IMAGE_SUPPORTS_RGBA,4,2 ## @NBIO_FLAG_IMAGE_SUPPORTS_RGBA
	.comm	_IMAGE_TYPE_NONE,4,2            ## @IMAGE_TYPE_NONE
	.comm	_IMAGE_STATUS_WAIT,4,2          ## @IMAGE_STATUS_WAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".png"

	.comm	_NBIO_TYPE_PNG,4,2              ## @NBIO_TYPE_PNG
	.comm	_IMAGE_TYPE_PNG,4,2             ## @IMAGE_TYPE_PNG
L_.str.1:                               ## @.str.1
	.asciz	".jpeg"

L_.str.2:                               ## @.str.2
	.asciz	".jpg"

	.comm	_NBIO_TYPE_JPEG,4,2             ## @NBIO_TYPE_JPEG
	.comm	_IMAGE_TYPE_JPEG,4,2            ## @IMAGE_TYPE_JPEG
L_.str.3:                               ## @.str.3
	.asciz	".bmp"

	.comm	_NBIO_TYPE_BMP,4,2              ## @NBIO_TYPE_BMP
	.comm	_IMAGE_TYPE_BMP,4,2             ## @IMAGE_TYPE_BMP
L_.str.4:                               ## @.str.4
	.asciz	".tga"

	.comm	_NBIO_TYPE_TGA,4,2              ## @NBIO_TYPE_TGA
	.comm	_IMAGE_TYPE_TGA,4,2             ## @IMAGE_TYPE_TGA
	.comm	_task_file_load_handler,4,2     ## @task_file_load_handler
	.comm	_task_image_load_free,4,2       ## @task_image_load_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_task_push_image_load           ; -- Begin function task_push_image_load
	.p2align	2
_task_push_image_load:                  ; @task_push_image_load
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x25, x2
	mov	x23, x1
	mov	x24, x0
	bl	_task_init
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	mov	w0, #104
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _NBIO_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBIO_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	str	wzr, [x0]
Lloh3:
	adrp	x8, _NBIO_STATUS_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NBIO_STATUS_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #96]
	str	xzr, [x0, #40]
	stp	xzr, xzr, [x0, #80]
	str	xzr, [x0, #72]
Lloh6:
	adrp	x8, _cb_nbio_image_thumbnail@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cb_nbio_image_thumbnail@GOTPAGEOFF]
	stp	xzr, x8, [x0, #56]
	cbz	w23, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _NBIO_FLAG_IMAGE_SUPPORTS_RGBA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NBIO_FLAG_IMAGE_SUPPORTS_RGBA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_BIT32_SET
LBB0_4:
	mov	w0, #96
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	mov	x0, x24
	bl	_strdup
Lloh11:
	adrp	x8, _IMAGE_TYPE_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IMAGE_TYPE_NONE@GOTPAGEOFF]
	str	w0, [x22, #52]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x23, #16]
Lloh14:
	adrp	x8, _IMAGE_STATUS_WAIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IMAGE_STATUS_WAIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x23, #88]
	str	xzr, [x23]
	stp	xzr, xzr, [x23, #72]
	str	xzr, [x23, #64]
	stp	wzr, w25, [x23, #8]
	str	wzr, [x23, #24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x23, #32]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_strstr
	cbz	x0, LBB0_9
; %bb.6:
Lloh19:
	adrp	x8, _IMAGE_TYPE_PNG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IMAGE_TYPE_PNG@GOTPAGEOFF]
Lloh21:
	adrp	x9, _NBIO_TYPE_PNG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NBIO_TYPE_PNG@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	mov	x0, x22
	bl	_free
LBB0_8:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_14
LBB0_9:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strstr
	cbnz	x0, LBB0_11
; %bb.10:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_strstr
	cbz	x0, LBB0_15
LBB0_11:
Lloh27:
	adrp	x8, _IMAGE_TYPE_JPEG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IMAGE_TYPE_JPEG@GOTPAGEOFF]
Lloh29:
	adrp	x9, _NBIO_TYPE_JPEG@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NBIO_TYPE_JPEG@GOTPAGEOFF]
LBB0_12:
	ldr	w9, [x9]
	str	w9, [x22, #48]
	ldr	w8, [x8]
	str	w8, [x23, #16]
LBB0_13:
	str	x23, [x22, #40]
	str	x22, [x19, #32]
Lloh31:
	adrp	x8, _task_file_load_handler@GOTPAGE
Lloh32:
	ldr	x8, [x8, _task_file_load_handler@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh34:
	adrp	x8, _task_image_load_free@GOTPAGE
Lloh35:
	ldr	x8, [x8, _task_image_load_free@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	stp	w21, w8, [x19, #16]
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_task_queue_push
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_strstr
	cbz	x0, LBB0_17
; %bb.16:
Lloh39:
	adrp	x8, _IMAGE_TYPE_BMP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IMAGE_TYPE_BMP@GOTPAGEOFF]
Lloh41:
	adrp	x9, _NBIO_TYPE_BMP@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NBIO_TYPE_BMP@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_strstr
	cbz	x0, LBB0_13
; %bb.18:
Lloh45:
	adrp	x8, _IMAGE_TYPE_TGA@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IMAGE_TYPE_TGA@GOTPAGEOFF]
Lloh47:
	adrp	x9, _NBIO_TYPE_TGA@GOTPAGE
Lloh48:
	ldr	x9, [x9, _NBIO_TYPE_TGA@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_NBIO_TYPE_NONE,4,2             ; @NBIO_TYPE_NONE
	.comm	_NBIO_STATUS_INIT,4,2           ; @NBIO_STATUS_INIT
	.comm	_cb_nbio_image_thumbnail,4,2    ; @cb_nbio_image_thumbnail
	.comm	_NBIO_FLAG_IMAGE_SUPPORTS_RGBA,4,2 ; @NBIO_FLAG_IMAGE_SUPPORTS_RGBA
	.comm	_IMAGE_TYPE_NONE,4,2            ; @IMAGE_TYPE_NONE
	.comm	_IMAGE_STATUS_WAIT,4,2          ; @IMAGE_STATUS_WAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".png"

	.comm	_NBIO_TYPE_PNG,4,2              ; @NBIO_TYPE_PNG
	.comm	_IMAGE_TYPE_PNG,4,2             ; @IMAGE_TYPE_PNG
l_.str.1:                               ; @.str.1
	.asciz	".jpeg"

l_.str.2:                               ; @.str.2
	.asciz	".jpg"

	.comm	_NBIO_TYPE_JPEG,4,2             ; @NBIO_TYPE_JPEG
	.comm	_IMAGE_TYPE_JPEG,4,2            ; @IMAGE_TYPE_JPEG
l_.str.3:                               ; @.str.3
	.asciz	".bmp"

	.comm	_NBIO_TYPE_BMP,4,2              ; @NBIO_TYPE_BMP
	.comm	_IMAGE_TYPE_BMP,4,2             ; @IMAGE_TYPE_BMP
l_.str.4:                               ; @.str.4
	.asciz	".tga"

	.comm	_NBIO_TYPE_TGA,4,2              ; @NBIO_TYPE_TGA
	.comm	_IMAGE_TYPE_TGA,4,2             ; @IMAGE_TYPE_TGA
	.comm	_task_file_load_handler,4,2     ; @task_file_load_handler
	.comm	_task_image_load_free,4,2       ; @task_image_load_free
.subsections_via_symbols
