	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rjpeg_jpeg_decode_block
_rjpeg_jpeg_decode_block:               ## @rjpeg_jpeg_decode_block
	.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
	movl	%r9d, %r15d
	movq	%r8, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	cmpl	$15, (%rdi)
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_rjpeg_grow_buffer_unsafe
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rjpeg_jpeg_huff_decode
	testl	%eax, %eax
	js	LBB0_18
## %bb.3:
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rjpeg_extend_receive
	movl	%eax, %r13d
LBB0_5:
	movq	8(%r14), %rax
	movslq	%r15d, %rcx
	addl	(%rax,%rcx,4), %r13d
	movl	%r13d, (%rax,%rcx,4)
	movq	16(%rbp), %rax
	imull	(%rax), %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movw	%r13w, (%rax)
	movl	$1, %ebx
	movq	_FAST_BITS@GOTPCREL(%rip), %r13
	movq	_rjpeg_jpeg_dezigzag@GOTPCREL(%rip), %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%r14), %edx
	movzbl	(%r13), %eax
	movl	%eax, %ecx
	negb	%cl
	movl	%edx, %esi
	sarl	%cl, %esi
	movl	$-1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	notl	%edi
	andl	%esi, %edi
	movslq	%edi, %rax
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %esi
	shrl	$4, %esi
	andl	$15, %esi
	leal	(%rsi,%rbx), %edi
	movl	%eax, %ecx
	andl	$15, %ecx
	shll	%cl, %edx
	movl	%edx, 4(%r14)
	subl	%ecx, (%r14)
	movq	(%r15), %rcx
	addl	%esi, %ebx
	incl	%ebx
	movslq	%edi, %rdx
	movl	(%rcx,%rdx,4), %ecx
	shrl	$8, %eax
	movq	16(%rbp), %rdx
	imull	(%rdx,%rcx,4), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movw	%ax, (%rdx,%rcx,2)
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$64, %ebx
	jge	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$15, (%r14)
	jg	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_rjpeg_grow_buffer_unsafe
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_rjpeg_jpeg_huff_decode
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %esi
	andl	$15, %esi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	shrl	$4, %eax
	leal	(%rax,%rbx), %ecx
	movq	(%r15), %rdx
	addl	%eax, %ebx
	incl	%ebx
	movslq	%ecx, %rax
	movq	%r15, %r12
	movq	%r13, %r15
	movl	(%rdx,%rax,4), %r13d
	movq	%r14, %rdi
	callq	_rjpeg_extend_receive
	movq	16(%rbp), %rcx
	imull	(%rcx,%r13,4), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movw	%ax, (%rcx,%r13,2)
	movq	%r15, %r13
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$240, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$16, %ebx
	jmp	LBB0_8
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_16:
	movl	$1, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAST_BITS,4,2                  ## @FAST_BITS
	.comm	_rjpeg_jpeg_dezigzag,8,3        ## @rjpeg_jpeg_dezigzag
	.no_dead_strip	_rjpeg_jpeg_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rjpeg_jpeg_decode_block
_rjpeg_jpeg_decode_block:               ; @rjpeg_jpeg_decode_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x24, x5
	mov	x20, x4
	mov	x21, x3
	mov	x25, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #15
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_rjpeg_grow_buffer_unsafe
LBB0_2:
	mov	x0, x23
	mov	x1, x25
	bl	_rjpeg_jpeg_huff_decode
	tbnz	w0, #31, LBB0_17
; %bb.3:
	mov	x25, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	cbz	w25, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x25
	bl	_rjpeg_extend_receive
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	x8, [x23, #8]
	sbfiz	x9, x24, #2, #32
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
	ldr	w8, [x19]
	mul	w8, w8, w10
	strh	w8, [x22]
	mov	w27, #1
Lloh0:
	adrp	x24, _FAST_BITS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FAST_BITS@GOTPAGEOFF]
	mov	w25, #-1
Lloh2:
	adrp	x26, _rjpeg_jpeg_dezigzag@GOTPAGE
Lloh3:
	ldr	x26, [x26, _rjpeg_jpeg_dezigzag@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x23, #4]
	ldr	w8, [x24]
	neg	w10, w8
	asr	w10, w9, w10
	lsl	w8, w25, w8
	bic	w8, w10, w8
	ldr	w8, [x20, w8, sxtw #2]
	cbz	w8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_10 Depth=1
	ubfx	w10, w8, #4, #4
	add	w10, w10, w27
	and	w11, w8, #0xf
	lsl	w9, w9, w11
	ldr	w12, [x23]
	sub	w11, w12, w11
	stp	w11, w9, [x23]
	ldr	x9, [x26]
	add	w27, w10, #1
	ldr	w9, [x9, w10, sxtw #2]
	lsr	w8, w8, #8
	ldr	w10, [x19, x9, lsl #2]
	mul	w8, w10, w8
	strh	w8, [x22, x9, lsl #1]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmp	w27, #64
	b.ge	LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w8, #15
	b.gt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_rjpeg_grow_buffer_unsafe
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_rjpeg_jpeg_huff_decode
	tbnz	w0, #31, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ands	w1, w0, #0xf
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w27, w0, lsr #4
	ldr	x9, [x26]
	add	w27, w8, #1
	ldr	w28, [x9, w8, sxtw #2]
	mov	x0, x23
	bl	_rjpeg_extend_receive
	ldr	w8, [x19, x28, lsl #2]
	mul	w8, w8, w0
	strh	w8, [x22, x28, lsl #1]
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w0, #240
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w27, w27, #16
	b	LBB0_9
LBB0_17:
	mov	w0, #0
	b	LBB0_19
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FAST_BITS,4,2                  ; @FAST_BITS
	.comm	_rjpeg_jpeg_dezigzag,8,3        ; @rjpeg_jpeg_dezigzag
	.no_dead_strip	_rjpeg_jpeg_decode_block
.subsections_via_symbols
