	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e7000_open
_e7000_open:                            ## @e7000_open
	.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
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_target_preopen
	movq	_dev_name@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_baudrate@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_e7000_parse_device
	movq	_e7000_ops@GOTPCREL(%rip), %rdi
	callq	_push_target
	movl	(%r15), %edi
	callq	_serial_open
	movq	_e7000_desc@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	callq	_perror_with_name
	movl	(%rbx), %eax
LBB0_2:
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_serial_setbaudrate
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	callq	_serial_close
	movl	(%r15), %edi
	callq	_perror_with_name
LBB0_4:
	movl	(%rbx), %edi
	callq	_serial_raw
	movq	_e7000_start_remote@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RETURN_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_catch_errors
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	_target_shortname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf_filtered                ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_name,4,2                   ## @dev_name
	.comm	_baudrate,4,2                   ## @baudrate
	.comm	_e7000_ops,4,2                  ## @e7000_ops
	.comm	_e7000_desc,4,2                 ## @e7000_desc
	.comm	_e7000_start_remote,4,2         ## @e7000_start_remote
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't establish connection to remote target\n"

	.comm	_RETURN_MASK_ALL,4,2            ## @RETURN_MASK_ALL
L_.str.1:                               ## @.str.1
	.asciz	"Remote target %s connected to %s\n"

	.comm	_target_shortname,4,2           ## @target_shortname
	.no_dead_strip	_e7000_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e7000_open
_e7000_open:                            ; @e7000_open
	.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
	mov	x0, x1
	bl	_target_preopen
Lloh0:
	adrp	x21, _dev_name@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dev_name@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _baudrate@GOTPAGE
Lloh3:
	ldr	x22, [x22, _baudrate@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_e7000_parse_device
Lloh4:
	adrp	x0, _e7000_ops@GOTPAGE
Lloh5:
	ldr	x0, [x0, _e7000_ops@GOTPAGEOFF]
	bl	_push_target
	ldr	w0, [x21]
	bl	_serial_open
Lloh6:
	adrp	x20, _e7000_desc@GOTPAGE
Lloh7:
	ldr	x20, [x20, _e7000_desc@GOTPAGEOFF]
	str	w0, [x20]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_perror_with_name
	ldr	w0, [x20]
LBB0_2:
	ldr	w1, [x22]
	bl	_serial_setbaudrate
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_serial_close
	ldr	w0, [x21]
	bl	_perror_with_name
LBB0_4:
	ldr	w0, [x20]
	bl	_serial_raw
Lloh8:
	adrp	x8, _e7000_start_remote@GOTPAGE
Lloh9:
	ldr	x8, [x8, _e7000_start_remote@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _RETURN_MASK_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RETURN_MASK_ALL@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_catch_errors
	cbz	w19, LBB0_7
; %bb.5:
	cbnz	w0, LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _target_shortname@GOTPAGE
Lloh17:
	ldr	x8, [x8, _target_shortname@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_printf_filtered
LBB0_7:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_name,4,2                   ; @dev_name
	.comm	_baudrate,4,2                   ; @baudrate
	.comm	_e7000_ops,4,2                  ; @e7000_ops
	.comm	_e7000_desc,4,2                 ; @e7000_desc
	.comm	_e7000_start_remote,4,2         ; @e7000_start_remote
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't establish connection to remote target\n"

	.comm	_RETURN_MASK_ALL,4,2            ; @RETURN_MASK_ALL
l_.str.1:                               ; @.str.1
	.asciz	"Remote target %s connected to %s\n"

	.comm	_target_shortname,4,2           ; @target_shortname
	.no_dead_strip	_e7000_open
.subsections_via_symbols
