	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quit_target
_quit_target:                           ## @quit_target
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_null_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ptid_equal
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_attach_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_target_detach
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_target_kill
LBB0_5:
	movq	_current_target@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_target_close
	movq	_write_history_p@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_history_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_write_history
LBB0_8:
	movq	_ALL_CLEANUPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_do_final_cleanups
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_null_ptid,4,2                  ## @null_ptid
	.comm	_target_has_execution,8,3       ## @target_has_execution
	.comm	_attach_flag,8,3                ## @attach_flag
	.comm	_current_target,4,2             ## @current_target
	.comm	_write_history_p,8,3            ## @write_history_p
	.comm	_history_filename,8,3           ## @history_filename
	.comm	_ALL_CLEANUPS,4,2               ## @ALL_CLEANUPS
	.no_dead_strip	_quit_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quit_target
_quit_target:                           ; @quit_target
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _null_ptid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _null_ptid@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ptid_equal
Lloh6:
	adrp	x8, _target_has_execution@GOTPAGE
Lloh7:
	ldr	x8, [x8, _target_has_execution@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _attach_flag@GOTPAGE
Lloh10:
	ldr	x8, [x8, _attach_flag@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	w1, w0, [x19]
	bl	_target_detach
	b	LBB0_4
LBB0_3:
	bl	_target_kill
LBB0_4:
Lloh12:
	adrp	x0, _current_target@GOTPAGE
Lloh13:
	ldr	x0, [x0, _current_target@GOTPAGEOFF]
	mov	w1, #1
	bl	_target_close
Lloh14:
	adrp	x8, _write_history_p@GOTPAGE
Lloh15:
	ldr	x8, [x8, _write_history_p@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _history_filename@GOTPAGE
Lloh18:
	ldr	x9, [x9, _history_filename@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x9]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_6
; %bb.5:
	bl	_write_history
LBB0_6:
Lloh20:
	adrp	x8, _ALL_CLEANUPS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ALL_CLEANUPS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_do_final_cleanups
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_null_ptid,4,2                  ; @null_ptid
	.comm	_target_has_execution,8,3       ; @target_has_execution
	.comm	_attach_flag,8,3                ; @attach_flag
	.comm	_current_target,4,2             ; @current_target
	.comm	_write_history_p,8,3            ; @write_history_p
	.comm	_history_filename,8,3           ; @history_filename
	.comm	_ALL_CLEANUPS,4,2               ; @ALL_CLEANUPS
	.no_dead_strip	_quit_target
.subsections_via_symbols
