	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slot_remove
_slot_remove:                           ## @slot_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$1, %eax
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_cpqhp_slot_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rdi), %rsi
	movq	(%rcx,%rsi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	cmpq	%rbx, %rdx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	movq	8(%rdx), %rdx
	cmpq	%rbx, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_6:
	movl	$2, %eax
	cmpq	%rbx, %rdx
	jne	LBB0_9
## %bb.7:
	addq	$8, %rcx
	jmp	LBB0_8
LBB0_3:
	leaq	(%rcx,%rsi,8), %rcx
LBB0_8:
	movq	8(%rbx), %rax
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_cpqhp_destroy_board_resources
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpqhp_slot_list,8,3            ## @cpqhp_slot_list
	.no_dead_strip	_slot_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slot_remove
_slot_remove:                           ; @slot_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _cpqhp_slot_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpqhp_slot_list@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x9, x8, x9, lsl #3
	ldr	x8, [x9]
	cbz	x8, LBB0_6
; %bb.2:
	cmp	x8, x19
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #8]
	cmp	x8, x19
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_3
; %bb.4:
	cmp	x8, x19
	b.eq	LBB0_7
; %bb.5:
	mov	w0, #2
	b	LBB0_9
LBB0_6:
	mov	w0, #1
	b	LBB0_9
LBB0_7:
	add	x9, x9, #8
LBB0_8:
	ldr	x8, [x19, #8]
	str	x8, [x9]
	mov	x0, x19
	bl	_cpqhp_destroy_board_resources
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cpqhp_slot_list,8,3            ; @cpqhp_slot_list
	.no_dead_strip	_slot_remove
.subsections_via_symbols
