	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbtf_free_cmd_buffer           ## -- Begin function lbtf_free_cmd_buffer
	.p2align	4, 0x90
_lbtf_free_cmd_buffer:                  ## @lbtf_free_cmd_buffer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_LBTF_DEB_HOST@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_lbtf_deb_enter
	movq	(%r14), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.1:
	movq	_LBS_NUM_CMD_BUFFERS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	callq	_kfree
	movq	$0, (%r13,%rbx,8)
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_3
## %bb.4:
	movq	(%r14), %r13
LBB0_5:
	movq	%r13, %rdi
	callq	_kfree
	movq	$0, (%r14)
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_lbtf_deb_host
LBB0_6:
	movl	(%r15), %edi
	callq	_lbtf_deb_leave
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_HOST,4,2              ## @LBTF_DEB_HOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FREE_CMD_BUF: cmd_array is NULL\n"

	.comm	_LBS_NUM_CMD_BUFFERS,4,2        ## @LBS_NUM_CMD_BUFFERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbtf_free_cmd_buffer           ; -- Begin function lbtf_free_cmd_buffer
	.p2align	2
_lbtf_free_cmd_buffer:                  ; @lbtf_free_cmd_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _LBTF_DEB_HOST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LBTF_DEB_HOST@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_lbtf_deb_enter
	ldr	x20, [x19]
	cbz	x20, LBB0_6
; %bb.1:
Lloh2:
	adrp	x22, _LBS_NUM_CMD_BUFFERS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LBS_NUM_CMD_BUFFERS@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x23, #3
	ldr	x0, [x20, x24]
	bl	_kfree
	str	xzr, [x20, x24]
	add	x23, x23, #1
	ldr	w8, [x22]
	cmp	x23, x8
	b.lo	LBB0_3
; %bb.4:
	ldr	x20, [x19]
LBB0_5:
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbtf_deb_host
LBB0_7:
	ldr	w0, [x21]
	bl	_lbtf_deb_leave
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LBTF_DEB_HOST,4,2              ; @LBTF_DEB_HOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FREE_CMD_BUF: cmd_array is NULL\n"

	.comm	_LBS_NUM_CMD_BUFFERS,4,2        ; @LBS_NUM_CMD_BUFFERS
.subsections_via_symbols
