	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function cb_nbio_image_thumbnail
LCPI0_0:
	.long	0x42700000                      ## float 60
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cb_nbio_image_thumbnail:               ## @cb_nbio_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movl	20(%rbx), %edi
	callq	_image_transfer_new
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_config_get_ptr
	movl	$-1, %r14d
	testq	%r12, %r12
	je	LBB0_9
## %bb.4:
	movq	%rax, %r15
	movq	_IMAGE_STATUS_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r12, 24(%rbx)
	movq	_cb_image_thumbnail@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movl	4(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	_nbio_get_ptr
	movq	24(%rbx), %rdi
	movl	20(%rbx), %esi
	movq	-48(%rbp), %rcx
	movq	%rax, %rdx
	callq	_image_transfer_set_buffer_ptr
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	xorps	%xmm1, %xmm1
	xorps	%xmm0, %xmm0
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movss	(%r15), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
LBB0_6:
	movaps	%xmm0, %xmm2
	cmpnless	%xmm1, %xmm2
	andps	%xmm2, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	andnps	%xmm1, %xmm2
	orps	%xmm0, %xmm2
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm2, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	mulsd	LCPI0_2(%rip), %xmm1
	cvttsd2si	%xmm1, %rax
	movl	%eax, 8(%rbx)
	movq	24(%rbx), %rdi
	movl	20(%rbx), %esi
	callq	_image_transfer_start
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	$0, 12(%rbx)
	movl	$1, (%r13)
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_2:
	xorl	%eax, %eax
	callq	_config_get_ptr
	movl	$-1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	callq	_task_image_cleanup
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_STATUS_TRANSFER,4,2      ## @IMAGE_STATUS_TRANSFER
	.comm	_cb_image_thumbnail,4,2         ## @cb_image_thumbnail
	.no_dead_strip	_cb_nbio_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_nbio_image_thumbnail
_cb_nbio_image_thumbnail:               ; @cb_nbio_image_thumbnail
	.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
	str	x1, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_5
; %bb.2:
	ldr	w0, [x22, #20]
	bl	_image_transfer_new
	mov	x21, x0
	bl	_config_get_ptr
	cbz	x21, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _IMAGE_STATUS_TRANSFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMAGE_STATUS_TRANSFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #40]
Lloh3:
	adrp	x8, _cb_image_thumbnail@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cb_image_thumbnail@GOTPAGEOFF]
	stp	x21, x8, [x22, #24]
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_nbio_get_ptr
	mov	x2, x0
	ldr	x0, [x22, #24]
	ldr	w1, [x22, #20]
	ldr	x3, [sp, #8]
	bl	_image_transfer_set_buffer_ptr
	ldr	x8, [sp, #8]
	str	x8, [x22]
	cbz	x20, LBB0_8
; %bb.4:
	ldr	s0, [x20]
	b	LBB0_9
LBB0_5:
	bl	_config_get_ptr
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
LBB0_8:
	movi	d0, #0000000000000000
LBB0_9:
	fcmp	s0, #0.0
	mov	w8, #1114636288
	fmov	s1, w8
	fcsel	s0, s0, s1, hi
	fcvt	d0, s0
	fmov	d1, #1.00000000
	fdiv	d0, d1, d0
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvtzu	w8, d0
	str	w8, [x22, #8]
	ldr	x0, [x22, #24]
	ldr	w1, [x22, #20]
	bl	_image_transfer_start
	cbz	w0, LBB0_11
; %bb.10:
	mov	w0, #0
	stp	wzr, wzr, [x22, #12]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_11:
	mov	x0, x19
	bl	_task_image_cleanup
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_STATUS_TRANSFER,4,2      ; @IMAGE_STATUS_TRANSFER
	.comm	_cb_image_thumbnail,4,2         ; @cb_image_thumbnail
	.no_dead_strip	_cb_nbio_image_thumbnail
.subsections_via_symbols
