	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function api_cmd_destroy_cell
_api_cmd_destroy_cell:                  ## @api_cmd_destroy_cell
	.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	16(%rdi), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.1:
	movq	24(%rdi), %rdx
	movq	(%rdx), %rbx
	movq	(%rdi), %r12
	movq	16(%rax,%rcx,8), %r14
	movl	8(%rax,%rcx,8), %r15d
	cmpl	$128, 8(%rdi)
	jne	LBB0_3
## %bb.2:
	callq	_free_cmd_buf
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported API CMD chain type\n"

	.no_dead_strip	_api_cmd_destroy_cell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function api_cmd_destroy_cell
_api_cmd_destroy_cell:                  ; @api_cmd_destroy_cell
	.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
	ldr	x8, [x0, #16]
	mov	w9, #24
	smaddl	x8, w1, w9, x8
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x9, [x0, #24]
	ldr	x19, [x9]
	ldr	x20, [x8, #16]
	ldr	w21, [x8, #8]
	ldr	x22, [x0]
	ldr	w8, [x0, #8]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	bl	_free_cmd_buf
	b	LBB0_5
LBB0_3:
	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
	ret
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	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	_dma_free_coherent
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported API CMD chain type\n"

	.no_dead_strip	_api_cmd_destroy_cell
.subsections_via_symbols
