	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function engine_list_remove
_engine_list_remove:                    ## @engine_list_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	_engine_list_head@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%rax), %rcx
	cmpq	%rdi, %rax
	jne	LBB0_2
LBB0_4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%rdi), %rcx
	movq	%rcx, (%rax)
LBB0_10:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	%rax, 8(%rcx)
LBB0_12:
	movq	_engine_list_head@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	8(%rdi), %rcx
	movq	%rcx, (%rax)
LBB0_14:
	movq	_engine_list_tail@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	(%rdi), %rcx
	movq	%rcx, (%rax)
LBB0_16:
	xorl	%esi, %esi
	callq	_engine_free_util
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_ENGINE_F_ENGINE_LIST_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_PASSED_NULL_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_ENGINE_F_ENGINE_LIST_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENGINE_R_ENGINE_IS_NOT_IN_LIST@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_ENGINEerr
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENGINE_F_ENGINE_LIST_REMOVE,4,2 ## @ENGINE_F_ENGINE_LIST_REMOVE
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ## @ERR_R_PASSED_NULL_PARAMETER
	.comm	_engine_list_head,8,3           ## @engine_list_head
	.comm	_ENGINE_R_ENGINE_IS_NOT_IN_LIST,4,2 ## @ENGINE_R_ENGINE_IS_NOT_IN_LIST
	.comm	_engine_list_tail,8,3           ## @engine_list_tail
	.no_dead_strip	_engine_list_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function engine_list_remove
_engine_list_remove:                    ; @engine_list_remove
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, _engine_list_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _engine_list_head@GOTPAGEOFF]
	mov	x9, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	add	x9, x10, #8
	cmp	x10, #0
	ccmp	x10, x0, #4, ne
	b.ne	LBB0_2
; %bb.3:
	cbz	x10, LBB0_14
; %bb.4:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	x10, [x0]
	str	x10, [x9]
LBB0_6:
	ldr	x10, [x0]
	cbz	x10, LBB0_8
; %bb.7:
	str	x9, [x10, #8]
LBB0_8:
	ldr	x9, [x8]
	cmp	x9, x0
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x0, #8]
	str	x9, [x8]
LBB0_10:
Lloh2:
	adrp	x8, _engine_list_tail@GOTPAGE
Lloh3:
	ldr	x8, [x8, _engine_list_tail@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x0
	b.ne	LBB0_12
; %bb.11:
	ldr	x9, [x0]
	str	x9, [x8]
LBB0_12:
	mov	w1, #0
	bl	_engine_free_util
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh4:
	adrp	x8, _ENGINE_F_ENGINE_LIST_REMOVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENGINE_F_ENGINE_LIST_REMOVE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh9:
	adrp	x8, _ENGINE_F_ENGINE_LIST_REMOVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENGINE_F_ENGINE_LIST_REMOVE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ENGINE_R_ENGINE_IS_NOT_IN_LIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENGINE_R_ENGINE_IS_NOT_IN_LIST@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	bl	_ENGINEerr
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENGINE_F_ENGINE_LIST_REMOVE,4,2 ; @ENGINE_F_ENGINE_LIST_REMOVE
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ; @ERR_R_PASSED_NULL_PARAMETER
	.comm	_engine_list_head,8,3           ; @engine_list_head
	.comm	_ENGINE_R_ENGINE_IS_NOT_IN_LIST,4,2 ; @ENGINE_R_ENGINE_IS_NOT_IN_LIST
	.comm	_engine_list_tail,8,3           ; @engine_list_tail
	.no_dead_strip	_engine_list_remove
.subsections_via_symbols
