	.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
	movl	$0, -52(%rbp)
	cmpl	$1, %edi
	je	LBB0_27
## %bb.1:
	movq	%rsi, %r12
	movl	%edi, %r13d
	movl	$2, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_28
## %bb.2:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	LJTI0_0(%rip), %r15
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-52(%rbp), %rsi
	callq	_expand_number
	cmpl	$-1, %eax
	je	LBB0_21
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_getopt
	movl	%eax, %r14d
	leal	-67(%r14), %eax
	cmpl	$51, %eax
	ja	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_CAMDD_DEV_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	cmpl	$111, %r14d
	sete	%sil
	leaq	(%rbx,%rsi,8), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_camdd_parse_io_opts
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_3
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_4:
	cmpl	$-1, %r14d
	jne	LBB0_27
## %bb.5:
	movq	_CAMDD_DEV_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rax, (%rbx)
	je	LBB0_7
## %bb.6:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_8
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_8:
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	testl	%r8d, %r8d
	jne	LBB0_10
## %bb.9:
	movq	_CAMDD_PASS_RW_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_10:
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_camdd_rw
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_27:
	xorl	%eax, %eax
	callq	_usage
	movl	$1, %edi
	callq	_exit
LBB0_21:
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
LBB0_22:
	movl	$1, %ebx
LBB0_23:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	%ebx, %edi
	callq	_exit
LBB0_28:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_27
	.long	L0_0_set_3
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_15
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_20
	.long	L0_0_set_27
	.long	L0_0_set_16
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_24
	.long	L0_0_set_27
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_CAMDD_ARG_NONE,4,2             ## @CAMDD_ARG_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate option list"

L_.str.1:                               ## @.str.1
	.asciz	"C:Ehi:m:o:t:v"

	.comm	_optarg,4,2                     ## @optarg
L_.str.2:                               ## @.str.2
	.asciz	"retry count %d is < 0"

	.comm	_CAMDD_ARG_RETRIES,4,2          ## @CAMDD_ARG_RETRIES
	.comm	_CAMDD_ARG_ERR_RECOVER,4,2      ## @CAMDD_ARG_ERR_RECOVER
	.comm	_CAMDD_DEV_NONE,8,3             ## @CAMDD_DEV_NONE
L_.str.3:                               ## @.str.3
	.asciz	"Only one input and output path allowed"

L_.str.4:                               ## @.str.4
	.asciz	"invalid maximum I/O amount %s"

L_.str.5:                               ## @.str.5
	.asciz	"invalid timeout %d"

	.comm	_CAMDD_ARG_TIMEOUT,4,2          ## @CAMDD_ARG_TIMEOUT
	.comm	_CAMDD_ARG_VERBOSE,4,2          ## @CAMDD_ARG_VERBOSE
L_.str.6:                               ## @.str.6
	.asciz	"Must specify both -i and -o"

	.comm	_CAMDD_PASS_RW_TIMEOUT,4,2      ## @CAMDD_PASS_RW_TIMEOUT
.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
	str	wzr, [sp, #12]
	cmp	w0, #1
	b.eq	LBB0_22
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	w0, #2
	mov	w1, #8
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_26
; %bb.2:
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x23, l_.str.1@PAGE
Lloh1:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh2:
	adrp	x28, lJTI0_0@PAGE
Lloh3:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x26, _optarg@GOTPAGE
Lloh5:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
Lloh6:
	adrp	x24, _CAMDD_DEV_NONE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CAMDD_DEV_NONE@GOTPAGEOFF]
	mov	w22, #1
Lloh8:
	adrp	x25, l_.str.3@PAGE
Lloh9:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	add	x1, sp, #12
	bl	_expand_number
	cmn	w0, #1
	b.eq	LBB0_23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_getopt
	mov	x27, x0
	sub	w8, w0, #67
	cmp	w8, #51
	b.hi	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x25
	bl	_errx
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	cmp	w27, #111
	cset	w1, eq
	add	x2, x19, w1, uxtw #3
	bl	_camdd_parse_io_opts
	cbz	w0, LBB0_4
	b	LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x22, x0
	tbz	w0, #31, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [sp]
	mov	w0, #1
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x27, x0
	tbz	w0, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x27, [sp]
	mov	w0, #1
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1000
	mul	w8, w27, w8
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	b	LBB0_4
LBB0_16:
	cmn	w27, #1
	b.ne	LBB0_22
; %bb.17:
	ldr	x9, [x19]
	ldr	x8, [x24]
	cmp	x9, x8
	b.eq	LBB0_19
; %bb.18:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_20
LBB0_19:
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_20:
Lloh16:
	adrp	x8, _CAMDD_PASS_RW_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CAMDD_PASS_RW_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldp	w9, w2, [sp, #8]                ; 4-byte Folded Reload
	cmp	w9, #0
	csel	w4, w8, w9, eq
	mov	x0, x19
	mov	w1, #2
	mov	x3, x22
	bl	_camdd_rw
LBB0_21:
	mov	x27, x0
	b	LBB0_25
LBB0_22:
	bl	_usage
	mov	w0, #1
	bl	_exit
LBB0_23:
	ldr	w8, [x26]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_24:
	bl	_warn
	mov	w27, #1
LBB0_25:
	mov	x0, x19
	bl	_free
	mov	x0, x27
	bl	_exit
LBB0_26:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_24
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
                                        ; -- End function
	.comm	_CAMDD_ARG_NONE,4,2             ; @CAMDD_ARG_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate option list"

l_.str.1:                               ; @.str.1
	.asciz	"C:Ehi:m:o:t:v"

	.comm	_optarg,4,2                     ; @optarg
l_.str.2:                               ; @.str.2
	.asciz	"retry count %d is < 0"

	.comm	_CAMDD_ARG_RETRIES,4,2          ; @CAMDD_ARG_RETRIES
	.comm	_CAMDD_ARG_ERR_RECOVER,4,2      ; @CAMDD_ARG_ERR_RECOVER
	.comm	_CAMDD_DEV_NONE,8,3             ; @CAMDD_DEV_NONE
l_.str.3:                               ; @.str.3
	.asciz	"Only one input and output path allowed"

l_.str.4:                               ; @.str.4
	.asciz	"invalid maximum I/O amount %s"

l_.str.5:                               ; @.str.5
	.asciz	"invalid timeout %d"

	.comm	_CAMDD_ARG_TIMEOUT,4,2          ; @CAMDD_ARG_TIMEOUT
	.comm	_CAMDD_ARG_VERBOSE,4,2          ; @CAMDD_ARG_VERBOSE
l_.str.6:                               ; @.str.6
	.asciz	"Must specify both -i and -o"

	.comm	_CAMDD_PASS_RW_TIMEOUT,4,2      ; @CAMDD_PASS_RW_TIMEOUT
.subsections_via_symbols
