	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_finish_decompress         ## -- Begin function jpeg_finish_decompress
	.p2align	4, 0x90
_jpeg_finish_decompress:                ## @jpeg_finish_decompress
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	_DSTATE_SCANNING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_2
## %bb.1:
	movq	_DSTATE_RAW_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_3
LBB0_2:
	cmpl	$0, 48(%rbx)
	je	LBB0_7
LBB0_3:
	movq	_DSTATE_BUFIMAGE@GOTPCREL(%rip), %rcx
	movq	_DSTATE_STOPPING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rcx), %rdx
	je	LBB0_10
## %bb.5:
	cmpq	%rax, %rdx
	je	LBB0_11
## %bb.6:
	movq	_JERR_BAD_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ERREXIT1
	jmp	LBB0_11
LBB0_7:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jge	LBB0_9
## %bb.8:
	movq	_JERR_TOO_LITTLE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ERREXIT
LBB0_9:
	movq	40(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_DSTATE_STOPPING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	movq	%rax, (%rbx)
LBB0_11:
	movq	_JPEG_SUSPENDED@GOTPCREL(%rip), %r15
	movq	_FALSE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	*(%rax)
	cmpq	(%r15), %rax
	jne	LBB0_12
	jmp	LBB0_15
LBB0_14:
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%ebx, %edi
	callq	_jpeg_abort
	movq	_TRUE@GOTPCREL(%rip), %r14
LBB0_15:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSTATE_SCANNING,8,3            ## @DSTATE_SCANNING
	.comm	_DSTATE_RAW_OK,8,3              ## @DSTATE_RAW_OK
	.comm	_JERR_TOO_LITTLE_DATA,4,2       ## @JERR_TOO_LITTLE_DATA
	.comm	_DSTATE_STOPPING,8,3            ## @DSTATE_STOPPING
	.comm	_DSTATE_BUFIMAGE,8,3            ## @DSTATE_BUFIMAGE
	.comm	_JERR_BAD_STATE,4,2             ## @JERR_BAD_STATE
	.comm	_JPEG_SUSPENDED,8,3             ## @JPEG_SUSPENDED
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_finish_decompress         ; -- Begin function jpeg_finish_decompress
	.p2align	2
_jpeg_finish_decompress:                ; @jpeg_finish_decompress
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _DSTATE_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSTATE_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DSTATE_RAW_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSTATE_RAW_OK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _DSTATE_BUFIMAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSTATE_BUFIMAGE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
Lloh9:
	adrp	x8, _DSTATE_STOPPING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSTATE_STOPPING@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x2, x9
	b.eq	LBB0_8
; %bb.3:
	cmp	x2, x8
	b.eq	LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _JERR_BAD_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JERR_BAD_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ERREXIT1
	b	LBB0_9
LBB0_5:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _JERR_TOO_LITTLE_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _JERR_TOO_LITTLE_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ERREXIT
LBB0_7:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh18:
	adrp	x8, _DSTATE_STOPPING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DSTATE_STOPPING@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
LBB0_8:
	str	x8, [x19]
LBB0_9:
Lloh21:
	adrp	x21, _JPEG_SUSPENDED@GOTPAGE
Lloh22:
	ldr	x21, [x21, _JPEG_SUSPENDED@GOTPAGEOFF]
Lloh23:
	adrp	x20, _FALSE@GOTPAGE
Lloh24:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
	b	LBB0_13
LBB0_12:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_jpeg_abort
Lloh25:
	adrp	x20, _TRUE@GOTPAGE
Lloh26:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DSTATE_SCANNING,8,3            ; @DSTATE_SCANNING
	.comm	_DSTATE_RAW_OK,8,3              ; @DSTATE_RAW_OK
	.comm	_JERR_TOO_LITTLE_DATA,4,2       ; @JERR_TOO_LITTLE_DATA
	.comm	_DSTATE_STOPPING,8,3            ; @DSTATE_STOPPING
	.comm	_DSTATE_BUFIMAGE,8,3            ; @DSTATE_BUFIMAGE
	.comm	_JERR_BAD_STATE,4,2             ; @JERR_BAD_STATE
	.comm	_JPEG_SUSPENDED,8,3             ; @JPEG_SUSPENDED
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
