	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_monitor_work                   ## -- Begin function monitor_work
	.p2align	4, 0x90
_monitor_work:                          ## @monitor_work
	.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	_am_monitor@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_CData@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_cdata_my_pid@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_rescan_pid_table
	movq	(%rbx), %rax
LBB0_4:
	cmpq	$0, 16(%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_rescan_binlog_table
	movq	(%rbx), %rax
LBB0_6:
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movq	$0, 8(%rax)
	xorl	%eax, %eax
	callq	_do_monitor_rpc
LBB0_8:
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_get_precise_time
	movq	_last_check_time@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movl	$1, %ebx
	cmpq	$268435457, %rax                ## imm = 0x10000001
	jb	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	callq	_reap_all
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_rescan_pid_table
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_am_monitor,4,2                 ## @am_monitor
	.comm	_CData,8,3                      ## @CData
	.comm	_cdata_my_pid,8,3               ## @cdata_my_pid
	.comm	_last_check_time,8,3            ## @last_check_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_monitor_work                   ; -- Begin function monitor_work
	.p2align	2
_monitor_work:                          ; @monitor_work
	.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
Lloh0:
	adrp	x8, _am_monitor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _am_monitor@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.1:
Lloh3:
	adrp	x19, _CData@GOTPAGE
Lloh4:
	ldr	x19, [x19, _CData@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _cdata_my_pid@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cdata_my_pid@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_3
; %bb.2:
	bl	_rescan_pid_table
	ldr	x8, [x19]
LBB0_3:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_5
; %bb.4:
	bl	_rescan_binlog_table
	ldr	x8, [x19]
LBB0_5:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	str	xzr, [x8, #8]
	bl	_do_monitor_rpc
LBB0_7:
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_get_precise_time
Lloh8:
	adrp	x8, _last_check_time@GOTPAGE
Lloh9:
	ldr	x8, [x8, _last_check_time@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	mov	w9, #1
	movk	w9, #4096, lsl #16
	sub	x8, x0, x8
	cmp	x8, x9
	b.lo	LBB0_10
; %bb.8:
	bl	_reap_all
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.9:
	bl	_rescan_pid_table
LBB0_10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_am_monitor,4,2                 ; @am_monitor
	.comm	_CData,8,3                      ; @CData
	.comm	_cdata_my_pid,8,3               ; @cdata_my_pid
	.comm	_last_check_time,8,3            ; @last_check_time
.subsections_via_symbols
