	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_manager_loop               ## -- Begin function osm_manager_loop
	.p2align	4, 0x90
_osm_manager_loop:                      ## @osm_manager_loop
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_is_console_enabled
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	4(%r12), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_osm_console_init
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_osm_exit_flag@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_4
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_is_console_enabled
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	4(%r12), %rdi
	movq	%r12, %rsi
	callq	_osm_console_exit
LBB0_15:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_osm_usr1_flag@GOTPCREL(%rip), %r13
	movq	_osm_hup_flag@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_osm_console
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	cmpq	$0, (%r13)
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%r13)
	movq	%r12, %rdi
	callq	_osm_log_reopen_file
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_osm_opensm_sweep
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_cl_thread_suspend
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_osm_exit_flag,4,2              ## @osm_exit_flag
	.comm	_osm_usr1_flag,8,3              ## @osm_usr1_flag
	.comm	_osm_hup_flag,8,3               ## @osm_hup_flag
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_manager_loop               ; -- Begin function osm_manager_loop
	.p2align	2
_osm_manager_loop:                      ; @osm_manager_loop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_is_console_enabled
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, x19, #4
	mov	x0, x20
	mov	x2, x19
	bl	_osm_console_init
	cmp	w0, #0
	cset	w25, eq
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
Lloh0:
	adrp	x21, _osm_exit_flag@GOTPAGE
Lloh1:
	ldr	x21, [x21, _osm_exit_flag@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_is_console_enabled
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x19, #4
	mov	x1, x19
	bl	_osm_console_exit
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh2:
	adrp	x22, _osm_usr1_flag@GOTPAGE
Lloh3:
	ldr	x22, [x22, _osm_usr1_flag@GOTPAGEOFF]
Lloh4:
	adrp	x23, _osm_hup_flag@GOTPAGE
Lloh5:
	ldr	x23, [x23, _osm_hup_flag@GOTPAGEOFF]
Lloh6:
	adrp	x24, _TRUE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w25, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_osm_console
	cmp	x0, #0
	cset	w25, eq
	ldr	x8, [x22]
	cbz	x8, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x22]
	mov	x0, x19
	bl	_osm_log_reopen_file
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x23]
	ldr	w8, [x24]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_osm_opensm_sweep
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #10000
	bl	_cl_thread_suspend
	ldr	x8, [x22]
	cbnz	x8, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_osm_exit_flag,4,2              ; @osm_exit_flag
	.comm	_osm_usr1_flag,8,3              ; @osm_usr1_flag
	.comm	_osm_hup_flag,8,3               ; @osm_hup_flag
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
