	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_JPEG_header
_scan_JPEG_header:                      ## @scan_JPEG_header
	.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	%esi, %r14d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_first_marker
	movq	_M_SOI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_ERREXIT
LBB0_2:
	leaq	LJTI0_0(%rip), %r12
	leaq	L_str(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_skip_variable
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_next_marker
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$13, %ecx
	jae	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	callq	_process_SOFn
	jmp	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$16, %ecx
	ja	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r12,%rcx,4), %rcx
	addq	%r12, %rcx
	jmpq	*%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_puts
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	callq	_process_COM
	jmp	LBB0_3
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_M_SOI,8,3                      ## @M_SOI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected SOI marker first"

L_str:                                  ## @str
	.asciz	"APP12 contains:"

	.no_dead_strip	_scan_JPEG_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_JPEG_header
_scan_JPEG_header:                      ; @scan_JPEG_header
	.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, x1
	mov	x20, x0
	bl	_first_marker
Lloh0:
	adrp	x8, _M_SOI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_SOI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERREXIT
LBB0_2:
Lloh5:
	adrp	x22, lJTI0_0@PAGE
Lloh6:
	add	x22, x22, lJTI0_0@PAGEOFF
Lloh7:
	adrp	x21, l_str@PAGE
Lloh8:
	add	x21, x21, l_str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_process_SOFn
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_next_marker
	sub	w8, w0, #129
	cmp	w8, #13
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w20, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_skip_variable
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w0, #128
	cmp	w8, #16
	b.hi	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_9
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w20, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_puts
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_process_COM
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_skip_variable
	b	LBB0_4
LBB0_13:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
                                        ; -- End function
	.comm	_M_SOI,8,3                      ; @M_SOI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected SOI marker first"

l_str:                                  ; @str
	.asciz	"APP12 contains:"

	.no_dead_strip	_scan_JPEG_header
.subsections_via_symbols
