	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_start_compress            ## -- Begin function jpeg_start_compress
	.p2align	4, 0x90
_jpeg_start_compress:                   ## @jpeg_start_compress
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	_CSTATE_START@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_2
## %bb.1:
	movq	_JERR_BAD_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ERREXIT1
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_jpeg_suppress_tables
LBB0_4:
	movq	40(%rbx), %rax
	movl	%ebx, %edi
	callq	*(%rax)
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_jinit_compress_master
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	$0, 16(%rbx)
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	_CSTATE_SCANNING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CSTATE_RAW_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSTATE_START,8,3               ## @CSTATE_START
	.comm	_JERR_BAD_STATE,4,2             ## @JERR_BAD_STATE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CSTATE_RAW_OK,8,3              ## @CSTATE_RAW_OK
	.comm	_CSTATE_SCANNING,8,3            ## @CSTATE_SCANNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_start_compress            ; -- Begin function jpeg_start_compress
	.p2align	2
_jpeg_start_compress:                   ; @jpeg_start_compress
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _CSTATE_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSTATE_START@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _JERR_BAD_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JERR_BAD_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ERREXIT1
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_jpeg_suppress_tables
LBB0_4:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_jinit_compress_master
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _CSTATE_RAW_OK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CSTATE_RAW_OK@GOTPAGEOFF]
Lloh11:
	adrp	x10, _CSTATE_SCANNING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CSTATE_SCANNING@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CSTATE_START,8,3               ; @CSTATE_START
	.comm	_JERR_BAD_STATE,4,2             ; @JERR_BAD_STATE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CSTATE_RAW_OK,8,3              ; @CSTATE_RAW_OK
	.comm	_CSTATE_SCANNING,8,3            ; @CSTATE_SCANNING
.subsections_via_symbols
