	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_from_engine
_remove_from_engine:                    ## @remove_from_engine
	.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
	movl	4(%rdi), %edi
	callq	_READ_ONCE
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock
	movl	4(%r14), %edi
	callq	_READ_ONCE
	movq	%rax, %r12
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_spin_lock
	movl	4(%r14), %edi
	callq	_READ_ONCE
	movq	%rax, %r12
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_unlikely
	movq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %rbx
LBB0_3:
	movq	%r14, %rdi
	callq	_list_del
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_remove_from_engine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_from_engine
_remove_from_engine:                    ; @remove_from_engine
	.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
	ldr	w0, [x0, #4]
	bl	_READ_ONCE
	mov	x21, x0
	bl	_spin_lock
	ldr	w0, [x19, #4]
	bl	_READ_ONCE
	mov	x22, x0
	cmp	x21, x0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x22
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x22
	bl	_spin_lock
	ldr	w0, [x19, #4]
	bl	_READ_ONCE
	mov	x22, x0
	cmp	x20, x0
	cset	w0, ne
	bl	_unlikely
	mov	x21, x20
	cbnz	x0, LBB0_1
	b	LBB0_3
LBB0_2:
	mov	x20, x21
LBB0_3:
	mov	x0, x19
	bl	_list_del
	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
	b	_spin_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_remove_from_engine
.subsections_via_symbols
