	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m5mols_s_stream
_m5mols_s_stream:                       ## @m5mols_s_stream
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_to_m5mols
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	_M5MOLS_RESTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_is_code
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_m5mols_start_monitor
	jmp	LBB0_7
LBB0_6:
	movq	_REG_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_m5mols_set_mode
	jmp	LBB0_7
LBB0_3:
	movq	_M5MOLS_RESTYPE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_is_code
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_m5mols_start_capture
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_M5MOLS_RESTYPE_MONITOR,4,2     ## @M5MOLS_RESTYPE_MONITOR
	.comm	_M5MOLS_RESTYPE_CAPTURE,4,2     ## @M5MOLS_RESTYPE_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REG_PARAMETER,4,2              ## @REG_PARAMETER
	.no_dead_strip	_m5mols_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m5mols_s_stream
_m5mols_s_stream:                       ; @m5mols_s_stream
	.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	x21, x1
	bl	_to_m5mols
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	cbz	w21, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	ldr	w21, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _M5MOLS_RESTYPE_MONITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M5MOLS_RESTYPE_MONITOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_is_code
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_m5mols_start_monitor
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _REG_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_m5mols_set_mode
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _M5MOLS_RESTYPE_CAPTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M5MOLS_RESTYPE_CAPTURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_is_code
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_m5mols_start_capture
LBB0_6:
	mov	x20, x0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ret
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M5MOLS_RESTYPE_MONITOR,4,2     ; @M5MOLS_RESTYPE_MONITOR
	.comm	_M5MOLS_RESTYPE_CAPTURE,4,2     ; @M5MOLS_RESTYPE_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REG_PARAMETER,4,2              ; @REG_PARAMETER
	.no_dead_strip	_m5mols_s_stream
.subsections_via_symbols
