	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb_image_thumbnail
_cb_image_thumbnail:                    ## @cb_image_thumbnail
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movq	(%rdi), %rbx
	movl	$-1, %r14d
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_task_image_process
	movq	_IMAGE_PROCESS_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	_IMAGE_PROCESS_ERROR_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_IMAGE_PROCESS_END@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	setne	%dl
	movl	%edx, (%rbx)
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	%edx, 4(%rbx)
	movq	_cb_image_upload_generic@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_PROCESS_ERROR,4,2        ## @IMAGE_PROCESS_ERROR
	.comm	_IMAGE_PROCESS_ERROR_END,4,2    ## @IMAGE_PROCESS_ERROR_END
	.comm	_IMAGE_PROCESS_END,4,2          ## @IMAGE_PROCESS_END
	.comm	_cb_image_upload_generic,4,2    ## @cb_image_upload_generic
	.no_dead_strip	_cb_image_thumbnail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb_image_thumbnail
_cb_image_thumbnail:                    ; @cb_image_thumbnail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
	ldr	x19, [x0]
	cbz	x19, LBB0_2
; %bb.1:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_task_image_process
Lloh0:
	adrp	x9, _IMAGE_PROCESS_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMAGE_PROCESS_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IMAGE_PROCESS_ERROR_END@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IMAGE_PROCESS_ERROR_END@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w0, w9
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _IMAGE_PROCESS_END@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMAGE_PROCESS_END@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	cset	w10, ne
	str	w10, [x19]
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, eq
	str	w8, [x19, #4]
Lloh8:
	adrp	x8, _cb_image_upload_generic@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cb_image_upload_generic@GOTPAGEOFF]
	str	x8, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_PROCESS_ERROR,4,2        ; @IMAGE_PROCESS_ERROR
	.comm	_IMAGE_PROCESS_ERROR_END,4,2    ; @IMAGE_PROCESS_ERROR_END
	.comm	_IMAGE_PROCESS_END,4,2          ; @IMAGE_PROCESS_END
	.comm	_cb_image_upload_generic,4,2    ; @cb_image_upload_generic
	.no_dead_strip	_cb_image_thumbnail
.subsections_via_symbols
