	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminate_monitor
_terminate_monitor:                     ## @terminate_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%r14, %rsi
	callq	_DEBUGP
	movl	16(%r14), %r15d
	movq	_LOCK_MONITOR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	12(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_wait_event_interruptible
	leaq	L_.str.1(%rip), %rdx
	movl	$5, %edi
	movq	%r14, %rsi
	callq	_DEBUGP
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$25, %edi
	callq	_msleep
	jmp	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rdx
	movl	$5, %edi
	movq	%r14, %rsi
	callq	_DEBUGP
	leaq	8(%r14), %rdi
	callq	_del_timer_sync
	leaq	L_.str.3(%rip), %rdx
	movl	$3, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DEBUGP                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-> terminate_monitor\n"

	.comm	_LOCK_MONITOR,4,2               ## @LOCK_MONITOR
L_.str.1:                               ## @.str.1
	.asciz	"Now allow last cycle of monitor!\n"

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

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

	.no_dead_strip	_terminate_monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminate_monitor
_terminate_monitor:                     ; @terminate_monitor
	.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, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	bl	_DEBUGP
	ldr	w21, [x19, #16]
Lloh2:
	adrp	x22, _LOCK_MONITOR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LOCK_MONITOR@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x20, x19, #12
	mov	x1, x20
	bl	_test_and_set_bit
	mov	x1, x0
	mov	x0, x21
	bl	_wait_event_interruptible
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #5
	mov	x1, x19
	bl	_DEBUGP
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #25
	bl	_msleep
	b	LBB0_1
LBB0_3:
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #5
	mov	x1, x19
	bl	_DEBUGP
	add	x0, x19, #8
	bl	_del_timer_sync
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	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	_DEBUGP
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-> terminate_monitor\n"

	.comm	_LOCK_MONITOR,4,2               ; @LOCK_MONITOR
l_.str.1:                               ; @.str.1
	.asciz	"Now allow last cycle of monitor!\n"

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

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

	.no_dead_strip	_terminate_monitor
.subsections_via_symbols
