	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function issue_term
_issue_term:                            ## @issue_term
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	callq	_build_term_command
	callq	_local_irq_save
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_serial_out
	movq	%rbx, %rdi
	callq	_echo_delay
	callq	_local_irq_restore
	xorl	%r14d, %r14d
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_read_one_response
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rdx
	movq	_FSI_RESP_ACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TERM failed; lost communication with slave\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_FSI_RESP_ACK,8,3               ## @FSI_RESP_ACK
L_.str.1:                               ## @.str.1
	.asciz	"TERM failed; response %d\n"

	.no_dead_strip	_issue_term
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function issue_term
_issue_term:                            ; @issue_term
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #24
	bl	_build_term_command
	bl	_local_irq_save
	add	x1, sp, #24
	mov	x0, x19
	bl	_serial_out
	mov	x0, x19
	bl	_echo_delay
	bl	_local_irq_restore
	add	x3, sp, #16
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_read_one_response
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x9, _FSI_RESP_ACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FSI_RESP_ACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_dev_err
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TERM failed; lost communication with slave\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_FSI_RESP_ACK,8,3               ; @FSI_RESP_ACK
l_.str.1:                               ; @.str.1
	.asciz	"TERM failed; response %d\n"

	.no_dead_strip	_issue_term
.subsections_via_symbols
