	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_adapter
_free_adapter:                          ## @free_adapter
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.3:
	movq	32(%rcx), %rdi
	callq	_kfree
	movq	8(%r14), %rax
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.4:
	movl	$1, %r15d
	movl	$72, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rax), %rax
	movq	(%rax,%rbx), %rdi
	callq	_kfree
	incq	%r15
	movq	8(%r14), %rax
	movslq	(%rax), %rcx
	addq	$40, %rbx
	cmpq	%rcx, %r15
	jl	LBB0_5
LBB0_6:
	movq	24(%rax), %rdi
	callq	_kfree
	movq	8(%r14), %rax
LBB0_7:
	movq	16(%rax), %rdi
	callq	_kfree
	movq	8(%r14), %rdi
	callq	_kfree
LBB0_8:
	movq	%r14, %rdi
	callq	_cxl_remove_adapter_nr
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_free_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_adapter
_free_adapter:                          ; @free_adapter
	.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	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_7
; %bb.2:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x0, [x9, #32]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #1
	mov	w21, #72
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #24]
	ldr	x0, [x8, x21]
	bl	_kfree
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x8]
	add	x21, x21, #40
	cmp	x20, x9
	b.lt	LBB0_5
LBB0_6:
	ldr	x0, [x8, #24]
	bl	_kfree
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	x0, [x8, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_8:
	mov	x0, x19
	bl	_cxl_remove_adapter_nr
	mov	x0, x19
	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	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_free_adapter
.subsections_via_symbols
