	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_pcie_alloc_buffers
_mwifiex_pcie_alloc_buffers:            ## @mwifiex_pcie_alloc_buffers
	.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	%rdi, %r15
	movq	(%rdi), %rbx
	movq	16(%rbx), %r12
	movq	$0, 8(%rbx)
	callq	_mwifiex_pcie_create_txbd_ring
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_dbg
	jmp	LBB0_11
LBB0_2:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_create_rxbd_ring
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_dbg
	jmp	LBB0_10
LBB0_4:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_create_evtbd_ring
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_dbg
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_alloc_cmdrsp_buf
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, %r14d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_dbg
LBB0_8:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_delete_evtbd_ring
LBB0_9:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_delete_rxbd_ring
LBB0_10:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_delete_txbd_ring
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpq	$0, (%r12)
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_alloc_sleep_cookie_buf
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r14d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_dbg
	movq	%r15, %rdi
	callq	_mwifiex_pcie_delete_cmdrsp_buf
	jmp	LBB0_8
LBB0_15:
	movq	$0, (%rbx)
LBB0_16:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create txbd ring\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create rxbd ring\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create evtbd ring\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate cmdbuf buffer\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate sleep_cookie buffer\n"

	.no_dead_strip	_mwifiex_pcie_alloc_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_pcie_alloc_buffers
_mwifiex_pcie_alloc_buffers:            ; @mwifiex_pcie_alloc_buffers
	.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	x21, [x0]
	ldr	x22, [x21, #16]
	str	xzr, [x21, #8]
	bl	_mwifiex_pcie_create_txbd_ring
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_mwifiex_pcie_create_rxbd_ring
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_mwifiex_pcie_create_evtbd_ring
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_mwifiex_pcie_alloc_cmdrsp_buf
	cbz	w0, LBB0_12
; %bb.7:
	mov	x20, x0
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_8:
	mov	x0, x19
	bl	_mwifiex_pcie_delete_evtbd_ring
LBB0_9:
	mov	x0, x19
	bl	_mwifiex_pcie_delete_rxbd_ring
LBB0_10:
	mov	x0, x19
	bl	_mwifiex_pcie_delete_txbd_ring
LBB0_11:
	mov	x0, x20
	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_12:
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_mwifiex_pcie_alloc_sleep_cookie_buf
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.14:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	x0, x19
	bl	_mwifiex_pcie_delete_cmdrsp_buf
	b	LBB0_8
LBB0_15:
	mov	w20, #0
	str	xzr, [x21]
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create txbd ring\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create rxbd ring\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create evtbd ring\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate cmdbuf buffer\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate sleep_cookie buffer\n"

	.no_dead_strip	_mwifiex_pcie_alloc_buffers
.subsections_via_symbols
