	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e7000_parse_device
_e7000_parse_device:                    ## @e7000_parse_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	%edx, -292(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-292(%rbp), %rcx
	leaq	-160(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_sscanf
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	xorl	%ebx, %ebx
	movq	_using_pc@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-288(%rbp), %rdx
	leaq	-292(%rbp), %r8
	leaq	-160(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_sscanf
	movl	%eax, %ebx
	movq	_using_tcp_remote@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	decl	%ebx
LBB0_7:
	leal	-3(%rbx), %eax
	cmpl	$-3, %eax
	ja	LBB0_9
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	callq	_error
LBB0_12:
	movq	_using_tcp_remote@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.13:
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_using_tcp@GOTPCREL(%rip), %rax
LBB0_15:
	movl	$1, (%rax)
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	cmpl	$1, %ebx
	movl	$2, %ebx
	jne	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strchr
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	jmp	LBB0_12
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pc"

	.comm	_using_pc,4,2                   ## @using_pc
L_.str.1:                               ## @.str.1
	.asciz	"tcp"

L_.str.2:                               ## @.str.2
	.asciz	" %s %s %d %s"

	.comm	_using_tcp_remote,4,2           ## @using_tcp_remote
L_.str.3:                               ## @.str.3
	.asciz	" %s %d %s"

L_.str.4:                               ## @.str.4
	.asciz	"Bad arguments.  Usage:\ttarget e7000 <device> <speed>\nor \t\ttarget e7000 <host>[:<port>]\nor \t\ttarget e7000 tcp_remote <host>[:<port>]\nor \t\ttarget e7000 pc\n"

L_.str.5:                               ## @.str.5
	.asciz	":23"

	.comm	_using_tcp,4,2                  ## @using_tcp
	.no_dead_strip	_e7000_parse_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e7000_parse_device
_e7000_parse_device:                    ; @e7000_parse_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	w2, [sp, #36]
	cbz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #10
	bl	_strncmp
	add	x8, sp, #168
	cbz	x0, LBB0_5
; %bb.3:
	add	x9, sp, #36
	stp	x9, x8, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_sscanf
	mov	x20, x0
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_strcpy
	mov	w20, #0
Lloh9:
	adrp	x8, _using_pc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _using_pc@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	str	x8, [sp, #16]
	add	x8, sp, #36
	stp	x19, x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #40
	mov	x0, x20
	bl	_sscanf
Lloh13:
	adrp	x8, _using_tcp_remote@GOTPAGE
Lloh14:
	ldr	x8, [x8, _using_tcp_remote@GOTPAGEOFF]
	mov	w9, #1
Lloh15:
	str	w9, [x8]
	sub	w20, w0, #1
LBB0_6:
	sub	w8, w20, #3
	cmn	w8, #3
	b.hi	LBB0_14
LBB0_7:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_8:
Lloh18:
	adrp	x8, _using_tcp_remote@GOTPAGE
Lloh19:
	ldr	x8, [x8, _using_tcp_remote@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.9:
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.10:
Lloh21:
	adrp	x8, _using_tcp@GOTPAGE
Lloh22:
	ldr	x8, [x8, _using_tcp@GOTPAGEOFF]
LBB0_11:
	mov	w9, #1
	str	w9, [x8]
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.13:
	mov	x0, x20
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_14:
	cmp	w20, #1
	b.ne	LBB0_18
; %bb.15:
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	cbnz	x0, LBB0_17
; %bb.16:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_strcat
LBB0_17:
	mov	w20, #1
	b	LBB0_8
LBB0_18:
	mov	w20, #2
	b	LBB0_8
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pc"

	.comm	_using_pc,4,2                   ; @using_pc
l_.str.1:                               ; @.str.1
	.asciz	"tcp"

l_.str.2:                               ; @.str.2
	.asciz	" %s %s %d %s"

	.comm	_using_tcp_remote,4,2           ; @using_tcp_remote
l_.str.3:                               ; @.str.3
	.asciz	" %s %d %s"

l_.str.4:                               ; @.str.4
	.asciz	"Bad arguments.  Usage:\ttarget e7000 <device> <speed>\nor \t\ttarget e7000 <host>[:<port>]\nor \t\ttarget e7000 tcp_remote <host>[:<port>]\nor \t\ttarget e7000 pc\n"

l_.str.5:                               ; @.str.5
	.asciz	":23"

	.comm	_using_tcp,4,2                  ; @using_tcp
	.no_dead_strip	_e7000_parse_device
.subsections_via_symbols
