	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_free_cmd_buffer        ## -- Begin function mwifiex_free_cmd_buffer
	.p2align	4, 0x90
_mwifiex_free_cmd_buffer:               ## @mwifiex_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, %r15
	movq	8(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.1:
	movq	_MWIFIEX_NUM_OF_CMD_BUFFER@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_11
## %bb.2:
	addq	$8, %r12
	leaq	L_.str.1(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rdi
	callq	_dev_kfree_skb_any
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$16, %r12
	cmpq	(%r13), %rbx
	jae	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	(%r12), %rdi
	callq	_dev_kfree_skb_any
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	_MWIFIEX_USB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	*16(%r15)
	jmp	LBB0_9
LBB0_13:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_dbg                    ## TAILCALL
LBB0_10:
	cmpq	$0, 8(%r15)
	je	LBB0_12
LBB0_11:
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	8(%r15), %rdi
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: FREE_CMD_BUF: cmd_pool is null\n"

	.comm	_MWIFIEX_NUM_OF_CMD_BUFFER,8,3  ## @MWIFIEX_NUM_OF_CMD_BUFFER
	.comm	_CMD,4,2                        ## @CMD
L_.str.1:                               ## @.str.1
	.asciz	"cmd: free cmd buffer %d\n"

	.comm	_MWIFIEX_USB,8,3                ## @MWIFIEX_USB
L_.str.2:                               ## @.str.2
	.asciz	"cmd: free cmd pool\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_free_cmd_buffer        ; -- Begin function mwifiex_free_cmd_buffer
	.p2align	2
_mwifiex_free_cmd_buffer:               ; @mwifiex_free_cmd_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.1:
Lloh0:
	adrp	x22, _MWIFIEX_NUM_OF_CMD_BUFFER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MWIFIEX_NUM_OF_CMD_BUFFER@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x21, _CMD@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CMD@GOTPAGEOFF]
	cbz	x9, LBB0_12
; %bb.2:
	mov	x23, #0
	add	x24, x8, #8
Lloh4:
	adrp	x25, _MWIFIEX_USB@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MWIFIEX_USB@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x1
	bl	_dev_kfree_skb_any
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	add	x24, x24, #16
	cmp	x23, x8
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21]
	str	x23, [sp]
	mov	x0, x19
	mov	x2, x20
	bl	_mwifiex_dbg
	ldr	x0, [x24]
	bl	_dev_kfree_skb_any
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	x1, [x24, #-8]
	cbz	x1, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	b	LBB0_4
LBB0_10:
Lloh8:
	adrp	x8, _FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mwifiex_dbg
LBB0_11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
LBB0_12:
	ldr	w1, [x21]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: FREE_CMD_BUF: cmd_pool is null\n"

	.comm	_MWIFIEX_NUM_OF_CMD_BUFFER,8,3  ; @MWIFIEX_NUM_OF_CMD_BUFFER
	.comm	_CMD,4,2                        ; @CMD
l_.str.1:                               ; @.str.1
	.asciz	"cmd: free cmd buffer %d\n"

	.comm	_MWIFIEX_USB,8,3                ; @MWIFIEX_USB
l_.str.2:                               ; @.str.2
	.asciz	"cmd: free cmd pool\n"

.subsections_via_symbols
