	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stop_monitor
_stop_monitor:                          ## @stop_monitor
	.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
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	callq	_DEBUGP
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdx
	movl	$5, %edi
	movq	%rbx, %rsi
	callq	_DEBUGP
	movq	%rbx, %rdi
	callq	_terminate_monitor
	movq	_IS_ATR_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_IS_ATR_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rdx
	movl	$5, %edi
	movq	%rbx, %rsi
	callq	_DEBUGP
LBB0_3:
	leaq	L_.str.3(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DEBUGP                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-> stop_monitor\n"

L_.str.1:                               ## @.str.1
	.asciz	"stopping monitor\n"

	.comm	_IS_ATR_VALID,4,2               ## @IS_ATR_VALID
	.comm	_IS_ATR_PRESENT,4,2             ## @IS_ATR_PRESENT
L_.str.2:                               ## @.str.2
	.asciz	"monitor already stopped\n"

L_.str.3:                               ## @.str.3
	.asciz	"<- stop_monitor\n"

	.no_dead_strip	_stop_monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stop_monitor
_stop_monitor:                          ; @stop_monitor
	.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	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	bl	_DEBUGP
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #5
	mov	x1, x19
	bl	_DEBUGP
	mov	x0, x19
	bl	_terminate_monitor
Lloh4:
	adrp	x8, _IS_ATR_VALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IS_ATR_VALID@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh7:
	adrp	x8, _IS_ATR_PRESENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IS_ATR_PRESENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #5
	mov	x1, x19
	bl	_DEBUGP
LBB0_3:
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DEBUGP
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-> stop_monitor\n"

l_.str.1:                               ; @.str.1
	.asciz	"stopping monitor\n"

	.comm	_IS_ATR_VALID,4,2               ; @IS_ATR_VALID
	.comm	_IS_ATR_PRESENT,4,2             ; @IS_ATR_PRESENT
l_.str.2:                               ; @.str.2
	.asciz	"monitor already stopped\n"

l_.str.3:                               ; @.str.3
	.asciz	"<- stop_monitor\n"

	.no_dead_strip	_stop_monitor
.subsections_via_symbols
