	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_open_1
_remote_open_1:                         ## @remote_open_1
	.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	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_get_remote_state
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_3
LBB0_4:
	movl	%r14d, %edi
	callq	_target_preopen
	movq	%r13, %rdi
	callq	_unpush_target
	movq	%rbx, %rdi
	callq	_remote_serial_open
	movq	_remote_desc@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_perror_with_name
LBB0_6:
	movq	_baud_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$-1, %esi
	je	LBB0_9
## %bb.7:
	movq	(%r15), %rdi
	callq	_serial_setbaudrate
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r15), %rdi
	callq	_serial_close
	movq	$0, (%r15)
	movq	%rbx, %rdi
	callq	_perror_with_name
LBB0_9:
	movq	(%r15), %rdi
	callq	_serial_raw
	movq	(%r15), %rdi
	callq	_serial_flush_input
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_puts_filtered
	movq	%rbx, %rdi
	callq	_puts_filtered
	leaq	L_.str.2(%rip), %rdi
	callq	_puts_filtered
LBB0_11:
	movq	%r13, %rdi
	callq	_push_target
	xorl	%eax, %eax
	callq	_init_all_packet_configs
	movq	_general_thread@GOTPCREL(%rip), %rax
	movl	$-2, (%rax)
	movq	_continue_thread@GOTPCREL(%rip), %rax
	movl	$-2, (%rax)
	movq	_use_threadinfo_query@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_use_threadextra_query@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_MAGIC_NULL_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pid_to_ptid
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.12:
	movq	_remote_async_terminal_ours_p@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_wait_forever_enabled_p@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_13:
	movq	_uiout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_remote_start_remote@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RETURN_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rcx
	xorl	%edx, %edx
	callq	_catch_exceptions
	testl	%eax, %eax
	js	LBB0_14
## %bb.17:
	testl	%r12d, %r12d
	je	LBB0_19
LBB0_18:
	movq	_wait_forever_enabled_p@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_19:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.21:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_alloca
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rdi
	callq	_putpkt
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getpkt                         ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_error
	testl	%r12d, %r12d
	jne	LBB0_4
LBB0_3:
	movq	_wait_forever_enabled_p@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_4
LBB0_14:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_pop_target
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.15:
	movq	_wait_forever_enabled_p@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_16:
	movl	%ebx, %edi
	callq	_throw_exception
	testl	%r12d, %r12d
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"To open a remote debug connection, you need to specify what\nserial device is attached to the remote system\n(e.g. /dev/ttyS0, /dev/ttya, COM1, etc.)."

	.comm	_wait_forever_enabled_p,4,2     ## @wait_forever_enabled_p
	.comm	_remote_desc,8,3                ## @remote_desc
	.comm	_baud_rate,4,2                  ## @baud_rate
L_.str.1:                               ## @.str.1
	.asciz	"Remote debugging using "

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_general_thread,4,2             ## @general_thread
	.comm	_continue_thread,4,2            ## @continue_thread
	.comm	_use_threadinfo_query,4,2       ## @use_threadinfo_query
	.comm	_use_threadextra_query,4,2      ## @use_threadextra_query
	.comm	_MAGIC_NULL_PID,4,2             ## @MAGIC_NULL_PID
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_remote_async_terminal_ours_p,4,2 ## @remote_async_terminal_ours_p
	.comm	_uiout,4,2                      ## @uiout
	.comm	_remote_start_remote,4,2        ## @remote_start_remote
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't establish connection to remote target\n"

	.comm	_RETURN_MASK_ALL,4,2            ## @RETURN_MASK_ALL
L_.str.4:                               ## @.str.4
	.asciz	"!"

	.comm	_exec_bfd,8,3                   ## @exec_bfd
	.comm	_symfile_objfile,4,2            ## @symfile_objfile
	.no_dead_strip	_remote_open_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_open_1
_remote_open_1:                         ; @remote_open_1
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	bl	_get_remote_state
	mov	x19, x0
	cbnz	x23, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
Lloh2:
	adrp	x25, _wait_forever_enabled_p@GOTPAGE
Lloh3:
	ldr	x25, [x25, _wait_forever_enabled_p@GOTPAGEOFF]
	cbnz	w21, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x25]
LBB0_4:
	mov	x0, x24
	bl	_target_preopen
	mov	x0, x22
	bl	_unpush_target
	mov	x0, x23
	bl	_remote_serial_open
Lloh4:
	adrp	x26, _remote_desc@GOTPAGE
Lloh5:
	ldr	x26, [x26, _remote_desc@GOTPAGEOFF]
	str	x0, [x26]
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x23
	bl	_perror_with_name
LBB0_6:
Lloh6:
	adrp	x8, _baud_rate@GOTPAGE
Lloh7:
	ldr	x8, [x8, _baud_rate@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	cmn	w1, #1
	b.eq	LBB0_9
; %bb.7:
	ldr	x0, [x26]
	bl	_serial_setbaudrate
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x26]
	bl	_serial_close
	str	xzr, [x26]
	mov	x0, x23
	bl	_perror_with_name
LBB0_9:
	ldr	x0, [x26]
	bl	_serial_raw
	ldr	x0, [x26]
	bl	_serial_flush_input
	cbz	w24, LBB0_11
; %bb.10:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_puts_filtered
	mov	x0, x23
	bl	_puts_filtered
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_puts_filtered
LBB0_11:
	mov	x0, x22
	bl	_push_target
	bl	_init_all_packet_configs
Lloh13:
	adrp	x8, _general_thread@GOTPAGE
Lloh14:
	ldr	x8, [x8, _general_thread@GOTPAGEOFF]
	mov	w9, #-2
Lloh15:
	adrp	x10, _continue_thread@GOTPAGE
Lloh16:
	ldr	x10, [x10, _continue_thread@GOTPAGEOFF]
Lloh17:
	str	w9, [x8]
Lloh18:
	str	w9, [x10]
Lloh19:
	adrp	x8, _use_threadinfo_query@GOTPAGE
Lloh20:
	ldr	x8, [x8, _use_threadinfo_query@GOTPAGEOFF]
	mov	w22, #1
Lloh21:
	str	w22, [x8]
Lloh22:
	adrp	x8, _use_threadextra_query@GOTPAGE
Lloh23:
	ldr	x8, [x8, _use_threadextra_query@GOTPAGEOFF]
Lloh24:
	str	w22, [x8]
Lloh25:
	adrp	x8, _MAGIC_NULL_PID@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAGIC_NULL_PID@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_pid_to_ptid
Lloh28:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh29:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh30:
	str	w0, [x8]
	cbz	w21, LBB0_13
; %bb.12:
Lloh31:
	adrp	x8, _remote_async_terminal_ours_p@GOTPAGE
Lloh32:
	ldr	x8, [x8, _remote_async_terminal_ours_p@GOTPAGEOFF]
Lloh33:
	str	w22, [x8]
	str	wzr, [x25]
LBB0_13:
Lloh34:
	adrp	x8, _uiout@GOTPAGE
Lloh35:
	ldr	x8, [x8, _uiout@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _remote_start_remote@GOTPAGE
Lloh38:
	ldr	x8, [x8, _remote_start_remote@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _RETURN_MASK_ALL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RETURN_MASK_ALL@GOTPAGEOFF]
Lloh42:
	ldr	w4, [x8]
Lloh43:
	adrp	x3, l_.str.3@PAGE
Lloh44:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x2, #0
	bl	_catch_exceptions
	tbnz	w0, #31, LBB0_18
; %bb.14:
	cbz	w21, LBB0_16
LBB0_15:
	mov	w8, #1
	str	w8, [x25]
LBB0_16:
	cbz	w20, LBB0_21
; %bb.17:
	ldr	w0, [x19]
	bl	_alloca
	mov	x20, x0
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_putpkt
	ldr	w1, [x19]
	mov	x0, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_getpkt
LBB0_18:
	mov	x22, x0
	bl	_pop_target
	cbz	w21, LBB0_20
; %bb.19:
	mov	w8, #1
	str	w8, [x25]
LBB0_20:
	mov	x0, x22
	bl	_throw_exception
	cbnz	w21, LBB0_15
	b	LBB0_16
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"To open a remote debug connection, you need to specify what\nserial device is attached to the remote system\n(e.g. /dev/ttyS0, /dev/ttya, COM1, etc.)."

	.comm	_wait_forever_enabled_p,4,2     ; @wait_forever_enabled_p
	.comm	_remote_desc,8,3                ; @remote_desc
	.comm	_baud_rate,4,2                  ; @baud_rate
l_.str.1:                               ; @.str.1
	.asciz	"Remote debugging using "

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_general_thread,4,2             ; @general_thread
	.comm	_continue_thread,4,2            ; @continue_thread
	.comm	_use_threadinfo_query,4,2       ; @use_threadinfo_query
	.comm	_use_threadextra_query,4,2      ; @use_threadextra_query
	.comm	_MAGIC_NULL_PID,4,2             ; @MAGIC_NULL_PID
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_remote_async_terminal_ours_p,4,2 ; @remote_async_terminal_ours_p
	.comm	_uiout,4,2                      ; @uiout
	.comm	_remote_start_remote,4,2        ; @remote_start_remote
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't establish connection to remote target\n"

	.comm	_RETURN_MASK_ALL,4,2            ; @RETURN_MASK_ALL
l_.str.4:                               ; @.str.4
	.asciz	"!"

	.comm	_exec_bfd,8,3                   ; @exec_bfd
	.comm	_symfile_objfile,4,2            ; @symfile_objfile
	.no_dead_strip	_remote_open_1
.subsections_via_symbols
