	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_write_marker              ## -- Begin function jpeg_write_marker
	.p2align	4, 0x90
_jpeg_write_marker:                     ## @jpeg_write_marker
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	movq	8(%rdi), %rdx
	jne	LBB0_4
## %bb.1:
	movq	_CSTATE_SCANNING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_5
## %bb.2:
	movq	_CSTATE_RAW_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_5
## %bb.3:
	movq	_CSTATE_WRCOEFS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_5
LBB0_4:
	movq	_JERR_BAD_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ERREXIT1
LBB0_5:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSTATE_SCANNING,8,3            ## @CSTATE_SCANNING
	.comm	_CSTATE_RAW_OK,8,3              ## @CSTATE_RAW_OK
	.comm	_CSTATE_WRCOEFS,8,3             ## @CSTATE_WRCOEFS
	.comm	_JERR_BAD_STATE,4,2             ## @JERR_BAD_STATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_write_marker              ; -- Begin function jpeg_write_marker
	.p2align	2
_jpeg_write_marker:                     ; @jpeg_write_marker
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldp	x8, x2, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CSTATE_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSTATE_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CSTATE_RAW_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CSTATE_RAW_OK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _CSTATE_WRCOEFS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CSTATE_WRCOEFS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	ccmp	x2, x10, #4, ne
	b.eq	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _JERR_BAD_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JERR_BAD_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ERREXIT1
LBB0_3:
	ldr	x8, [x22, #16]
	ldr	x4, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	br	x4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CSTATE_SCANNING,8,3            ; @CSTATE_SCANNING
	.comm	_CSTATE_RAW_OK,8,3              ; @CSTATE_RAW_OK
	.comm	_CSTATE_WRCOEFS,8,3             ; @CSTATE_WRCOEFS
	.comm	_JERR_BAD_STATE,4,2             ; @JERR_BAD_STATE
.subsections_via_symbols
