	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_alloc_cmd_buffer       ## -- Begin function mwifiex_alloc_cmd_buffer
	.p2align	4, 0x90
_mwifiex_alloc_cmd_buffer:              ## @mwifiex_alloc_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	_MWIFIEX_NUM_OF_CMD_BUFFER@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%rax, (%r14)
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.9:
	xorl	%ebx, %ebx
	movq	_MWIFIEX_SIZE_OF_CMD_BUFFER@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_dev_alloc_skb
	movl	%eax, (%r13,%rbx,4)
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jb	LBB0_10
## %bb.6:
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mwifiex_insert_cmd_to_free_q
	incq	%rbx
	addq	$4, %r13
	cmpq	(%r12), %rbx
	jb	LBB0_8
	jmp	LBB0_2
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_dbg
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_NUM_OF_CMD_BUFFER,8,3  ## @MWIFIEX_NUM_OF_CMD_BUFFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWIFIEX_SIZE_OF_CMD_BUFFER,4,2 ## @MWIFIEX_SIZE_OF_CMD_BUFFER
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to allocate command buffer\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_alloc_cmd_buffer       ; -- Begin function mwifiex_alloc_cmd_buffer
	.p2align	2
_mwifiex_alloc_cmd_buffer:              ; @mwifiex_alloc_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, _MWIFIEX_NUM_OF_CMD_BUFFER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MWIFIEX_NUM_OF_CMD_BUFFER@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	str	x0, [x19]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.2:
	mov	x22, #0
Lloh5:
	adrp	x23, _MWIFIEX_SIZE_OF_CMD_BUFFER@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MWIFIEX_SIZE_OF_CMD_BUFFER@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_dev_alloc_skb
	str	w0, [x20, x22, lsl #2]
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_3
; %bb.5:
	cbz	x8, LBB0_8
; %bb.6:
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_insert_cmd_to_free_q
	add	x22, x22, #1
	ldr	x8, [x21]
	add	x20, x20, #4
	cmp	x22, x8
	b.lo	LBB0_7
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_NUM_OF_CMD_BUFFER,8,3  ; @MWIFIEX_NUM_OF_CMD_BUFFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWIFIEX_SIZE_OF_CMD_BUFFER,4,2 ; @MWIFIEX_SIZE_OF_CMD_BUFFER
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to allocate command buffer\n"

.subsections_via_symbols
