	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_read_coefficients         ## -- Begin function jpeg_read_coefficients
	.p2align	4, 0x90
_jpeg_read_coefficients:                ## @jpeg_read_coefficients
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	_DSTATE_READY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_transdecode_master_selection
	movq	_DSTATE_RDCOEFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_DSTATE_RDCOEFS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_4
## %bb.3:
	movq	_JERR_BAD_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ERREXIT1
LBB0_4:
	movq	24(%rbx), %rcx
	movq	_JPEG_SUSPENDED@GOTPCREL(%rip), %r15
	movq	_JPEG_REACHED_EOI@GOTPCREL(%rip), %r12
	movq	_JPEG_ROW_COMPLETED@GOTPCREL(%rip), %r13
	movq	_JPEG_REACHED_SOS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	*16(%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	cmpl	(%r15), %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%r12), %eax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%r13), %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%r14), %eax
	jne	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rdx
	movq	8(%rcx), %rax
	incq	%rdx
	movq	%rdx, (%rcx)
	cmpq	%rax, %rdx
	jl	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	16(%rbx), %rax
	movq	%rax, 8(%rcx)
	jmp	LBB0_5
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_15:
	movq	_DSTATE_STOPPING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSTATE_READY,8,3               ## @DSTATE_READY
	.comm	_DSTATE_RDCOEFS,8,3             ## @DSTATE_RDCOEFS
	.comm	_JERR_BAD_STATE,4,2             ## @JERR_BAD_STATE
	.comm	_JPEG_SUSPENDED,4,2             ## @JPEG_SUSPENDED
	.comm	_JPEG_REACHED_EOI,4,2           ## @JPEG_REACHED_EOI
	.comm	_JPEG_ROW_COMPLETED,4,2         ## @JPEG_ROW_COMPLETED
	.comm	_JPEG_REACHED_SOS,4,2           ## @JPEG_REACHED_SOS
	.comm	_DSTATE_STOPPING,8,3            ## @DSTATE_STOPPING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_read_coefficients         ; -- Begin function jpeg_read_coefficients
	.p2align	2
_jpeg_read_coefficients:                ; @jpeg_read_coefficients
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _DSTATE_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSTATE_READY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_transdecode_master_selection
Lloh3:
	adrp	x8, _DSTATE_RDCOEFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSTATE_RDCOEFS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _DSTATE_RDCOEFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSTATE_RDCOEFS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _JERR_BAD_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JERR_BAD_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ERREXIT1
LBB0_4:
	ldr	x8, [x19, #24]
Lloh12:
	adrp	x20, _JPEG_SUSPENDED@GOTPAGE
Lloh13:
	ldr	x20, [x20, _JPEG_SUSPENDED@GOTPAGEOFF]
Lloh14:
	adrp	x21, _JPEG_REACHED_EOI@GOTPAGE
Lloh15:
	ldr	x21, [x21, _JPEG_REACHED_EOI@GOTPAGEOFF]
Lloh16:
	adrp	x22, _JPEG_ROW_COMPLETED@GOTPAGE
Lloh17:
	ldr	x22, [x22, _JPEG_ROW_COMPLETED@GOTPAGEOFF]
Lloh18:
	adrp	x23, _JPEG_REACHED_SOS@GOTPAGE
Lloh19:
	ldr	x23, [x23, _JPEG_REACHED_SOS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22]
	ldr	w10, [x23]
	cmp	w0, w9
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x10, x9, [x8]
	add	x10, x10, #1
	str	x10, [x8]
	cmp	x10, x9
	b.lt	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x19, #16]
	add	x9, x10, x9
	str	x9, [x8, #8]
	b	LBB0_5
LBB0_13:
	mov	x0, #0
	b	LBB0_15
LBB0_14:
Lloh20:
	adrp	x8, _DSTATE_STOPPING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DSTATE_STOPPING@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DSTATE_READY,8,3               ; @DSTATE_READY
	.comm	_DSTATE_RDCOEFS,8,3             ; @DSTATE_RDCOEFS
	.comm	_JERR_BAD_STATE,4,2             ; @JERR_BAD_STATE
	.comm	_JPEG_SUSPENDED,4,2             ; @JPEG_SUSPENDED
	.comm	_JPEG_REACHED_EOI,4,2           ; @JPEG_REACHED_EOI
	.comm	_JPEG_ROW_COMPLETED,4,2         ; @JPEG_ROW_COMPLETED
	.comm	_JPEG_REACHED_SOS,4,2           ; @JPEG_REACHED_SOS
	.comm	_DSTATE_STOPPING,8,3            ; @DSTATE_STOPPING
.subsections_via_symbols
