	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mark_core_as_ready
_mark_core_as_ready:                    ## @mark_core_as_ready
	.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, %r15
	movq	(%rdi), %rdi
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	movq	_FF_CORE_IS_USED@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	movq	8(%rdi), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	8(%r15), %rax
	movl	(%rax,%rbx,8), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	cmpw	%r14w, 6(%rax,%rbx,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpw	%r14w, 4(%rax,%rbx,8)
	jne	LBB0_3
LBB0_7:
	movq	_FF_CORE_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax,%rbx,8), %esi
	callq	_clear_bit
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movzwl	%r14w, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movl	$-1, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_CORE_IS_USED,4,2            ## @FF_CORE_IS_USED
	.comm	_FF_CORE_UPDATE,4,2             ## @FF_CORE_UPDATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unused effect %04x updated !!!\n"

	.no_dead_strip	_mark_core_as_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mark_core_as_ready
_mark_core_as_ready:                    ; @mark_core_as_ready
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x0, [x0]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _FF_CORE_IS_USED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FF_CORE_IS_USED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	ldr	x8, [x0, #8]
	ldrsw	x8, [x8]
	add	x21, x21, #8
	cmp	x22, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x21]
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	add	x9, x8, x21
	ldrh	w10, [x9, #6]
	cmp	w10, w19
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w9, [x9, #4]
	cmp	w9, w19
	b.ne	LBB0_3
LBB0_7:
Lloh2:
	adrp	x9, _FF_CORE_UPDATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FF_CORE_UPDATE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldr	w1, [x8, x21]
	bl	_clear_bit
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_CORE_IS_USED,4,2            ; @FF_CORE_IS_USED
	.comm	_FF_CORE_UPDATE,4,2             ; @FF_CORE_UPDATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unused effect %04x updated !!!\n"

	.no_dead_strip	_mark_core_as_ready
.subsections_via_symbols
