	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadJPG
_LoadJPG:                               ## @LoadJPG
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	_ri@GOTPCREL(%rip), %rax
	leaq	-72(%rbp), %rsi
	callq	*16(%rax)
	cmpq	$0, -72(%rbp)
	je	LBB0_9
## %bb.1:
	leaq	-88(%rbp), %rdi
	callq	_jpeg_std_error
	movl	%eax, -48(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_jpeg_create_decompress
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_jpeg_stdio_src
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_jpeg_read_header
	movq	%rbx, %rdi
	callq	_jpeg_start_decompress
	movl	-60(%rbp), %r13d
	imull	-64(%rbp), %r13d
	movl	-56(%rbp), %edi
	imull	%r13d, %edi
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movl	-64(%rbp), %eax
	movl	%eax, (%r12)
	movl	-56(%rbp), %ecx
	movl	%ecx, (%r14)
	movl	-52(%rbp), %edx
	cmpl	%ecx, %edx
	jge	LBB0_5
## %bb.2:
	movq	%r15, %r14
	leaq	-64(%rbp), %r15
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	imull	%r13d, %edx
	movslq	%edx, %rax
	addq	%rbx, %rax
	movq	%rax, -80(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_jpeg_read_scanlines
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %edx
	cmpl	%ecx, %edx
	jl	LBB0_3
## %bb.4:
	movq	(%r14), %rbx
	movl	-64(%rbp), %eax
LBB0_5:
	imull	%ecx, %eax
	shll	$2, %eax
	cmpl	$4, %eax
	jl	LBB0_8
## %bb.6:
	movl	%eax, %eax
	movl	$3, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$255, (%rbx,%rcx,4)
	addq	$4, %rcx
	cmpq	%rax, %rcx
	jb	LBB0_7
LBB0_8:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_jpeg_finish_decompress
	movq	%rbx, %rdi
	callq	_jpeg_destroy_decompress
	movq	-72(%rbp), %rdi
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*8(%rax)
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ri,24,3                        ## @ri
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_LoadJPG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadJPG
_LoadJPG:                               ; @LoadJPG
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
Lloh0:
	adrp	x23, _ri@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ri@GOTPAGEOFF]
	ldr	x8, [x23, #16]
	add	x1, sp, #8
	blr	x8
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_13
; %bb.1:
	add	x0, sp, #16
	bl	_jpeg_std_error
	str	w0, [sp, #40]
	add	x0, sp, #24
	bl	_jpeg_create_decompress
	ldr	x1, [sp, #8]
	add	x0, sp, #24
	bl	_jpeg_stdio_src
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #24
	bl	_jpeg_read_header
	add	x0, sp, #24
	bl	_jpeg_start_decompress
	ldp	w8, w9, [sp, #24]
	mul	w24, w9, w8
	ldr	x8, [x23]
	ldr	w9, [sp, #32]
	mul	w0, w24, w9
	blr	x8
	mov	x19, x0
	str	x0, [x20]
	ldr	w9, [sp, #24]
	ldp	w8, w10, [sp, #32]
	str	w9, [x22]
	str	w8, [x21]
	cmp	w10, w8
	b.ge	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mul	w8, w24, w10
	add	x8, x19, w8, sxtw
	str	x8, [sp]
	add	x0, sp, #24
	mov	x1, sp
	mov	w2, #1
	bl	_jpeg_read_scanlines
	ldp	w8, w10, [sp, #32]
	cmp	w10, w8
	b.lt	LBB0_2
; %bb.3:
	ldr	x19, [x20]
	ldr	w9, [sp, #24]
LBB0_4:
	mul	w8, w8, w9
	lsl	w8, w8, #2
	cmp	w8, #4
	b.lt	LBB0_12
; %bb.5:
	mov	w9, #7
	cmp	x8, #7
	csel	x9, x8, x9, hi
	sub	x9, x9, #4
	cmp	x9, #12
	b.hs	LBB0_7
; %bb.6:
	mov	w9, #3
	b	LBB0_10
LBB0_7:
	lsr	x9, x9, #2
	add	x10, x9, #1
	and	x11, x10, #0x7ffffffffffffffc
	lsr	x12, x11, #2
	mov	w9, #3
	bfi	x9, x12, #4, #60
	add	x12, x19, #44
	mov	w13, #255
	mov	x14, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	stur	w13, [x12, #-32]
	stur	w13, [x12, #-16]
	str	w13, [x12]
	str	w13, [x12, #16]
	add	x12, x12, #64
	subs	x14, x14, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_10:
	mov	w10, #255
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x19, x9, lsl #2]
	add	x9, x9, #4
	cmp	x9, x8
	b.lo	LBB0_11
LBB0_12:
	add	x0, sp, #24
	bl	_jpeg_finish_decompress
	add	x0, sp, #24
	bl	_jpeg_destroy_decompress
	ldr	x8, [x23, #8]
	ldr	x0, [sp, #8]
	blr	x8
LBB0_13:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ri,24,3                        ; @ri
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_LoadJPG
.subsections_via_symbols
