	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %rax
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rcx)
LBB0_3:
	xorl	%ebx, %ebx
	movl	$1, %r12d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.5:
	movq	8(%r13), %r15
	movb	$1, %r14b
	cmpb	$45, (%r15)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jne	LBB0_17
## %bb.6:
	movl	%eax, %eax
	movl	$2, %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	subq	%rax, %r14
	movl	$1, %r12d
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r15
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_keymatch
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edx
	callq	_keymatch
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_usage
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r14,%r12), %rax
	cmpq	$1, %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13,%r12,8), %r15
	incq	%r12
	cmpb	$45, (%r15)
	je	LBB0_8
## %bb.16:
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	setb	%r14b
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
LBB0_17:
	decl	%eax
	cmpl	%eax, %r12d
	jge	LBB0_19
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_progname@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
	testb	%r14b, %r14b
	jne	LBB0_20
LBB0_14:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_infile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_15
LBB0_19:
	testb	%r14b, %r14b
	movq	_progname@GOTPCREL(%rip), %r15
	je	LBB0_14
LBB0_20:
	movl	%r12d, %r14d
	movq	(%r13,%r14,8), %rdi
	movq	_READ_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fopen
	movq	_infile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movq	(%r13,%r14,8), %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_15:
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_scan_JPEG_header
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_progname,8,3                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdjpgcom"

L_.str.1:                               ## @.str.1
	.asciz	"verbose"

L_.str.2:                               ## @.str.2
	.asciz	"raw"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"%s: only one input file\n"

	.comm	_READ_BINARY,4,2                ## @READ_BINARY
	.comm	_infile,8,3                     ## @infile
L_.str.4:                               ## @.str.4
	.asciz	"%s: can't open %s\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_stdin,8,3                      ## @stdin
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_O_BINARY,4,2                   ## @O_BINARY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x26, _progname@GOTPAGE
Lloh1:
	ldr	x26, [x26, _progname@GOTPAGEOFF]
	str	x8, [x26]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x26]
LBB0_3:
	cmp	w22, #2
	b.lt	LBB0_13
; %bb.4:
	ldr	x8, [x19, #8]
	ldrb	w9, [x8]
	cmp	w9, #45
	b.ne	LBB0_14
; %bb.5:
	mov	w20, #0
	mov	w21, #0
	mov	w27, w22
	mov	w28, #2
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x8, #1
	mov	x0, x25
	mov	x1, x23
	mov	w2, #1
	bl	_keymatch
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	cmp	x27, x28
	b.ne	LBB0_11
	b	LBB0_17
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	w2, #1
	bl	_keymatch
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w21, #1
	cmp	x27, x28
	b.ne	LBB0_11
	b	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_usage
	cmp	x27, x28
	b.eq	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, x28, lsl #3]
	ldrb	w9, [x8]
	add	x28, x28, #1
	cmp	w9, #45
	b.eq	LBB0_6
; %bb.12:
	sub	x23, x28, #1
	cmp	x23, x27
	cset	w24, lo
	b	LBB0_15
LBB0_13:
	mov	w20, #0
	mov	w21, #0
	mov	w24, #0
	mov	w23, #1
	b	LBB0_15
LBB0_14:
	mov	w20, #0
	mov	w21, #0
	mov	w23, #1
	mov	w24, #1
LBB0_15:
	sub	w8, w22, #1
	cmp	w23, w8
	b.ge	LBB0_18
; %bb.16:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x26]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	bl	_usage
	tbnz	w24, #0, LBB0_19
LBB0_17:
Lloh13:
	adrp	x8, _stdin@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _infile@GOTPAGE
Lloh17:
	ldr	x9, [x9, _infile@GOTPAGEOFF]
Lloh18:
	str	x8, [x9]
	b	LBB0_21
LBB0_18:
	cbz	w24, LBB0_17
LBB0_19:
	ldr	x0, [x19, w23, uxtw #3]
Lloh19:
	adrp	x8, _READ_BINARY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _READ_BINARY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_fopen
Lloh22:
	adrp	x8, _infile@GOTPAGE
Lloh23:
	ldr	x8, [x8, _infile@GOTPAGEOFF]
Lloh24:
	str	x0, [x8]
	cbnz	x0, LBB0_21
; %bb.20:
	mov	w8, w23
Lloh25:
	adrp	x9, _stderr@GOTPAGE
Lloh26:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	ldr	x2, [x26]
	ldr	x8, [x19, x8, lsl #3]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
Lloh30:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_exit
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	bl	_scan_JPEG_header
Lloh33:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_progname,8,3                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdjpgcom"

l_.str.1:                               ; @.str.1
	.asciz	"verbose"

l_.str.2:                               ; @.str.2
	.asciz	"raw"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"%s: only one input file\n"

	.comm	_READ_BINARY,4,2                ; @READ_BINARY
	.comm	_infile,8,3                     ; @infile
l_.str.4:                               ; @.str.4
	.asciz	"%s: can't open %s\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_stdin,8,3                      ; @stdin
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_O_BINARY,4,2                   ; @O_BINARY
.subsections_via_symbols
