	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_pcie_create_txbd_ring
_mwifiex_pcie_create_txbd_ring:         ## @mwifiex_pcie_create_txbd_ring
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	40(%rbx), %rax
	movq	$0, 32(%rbx)
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$0, 24(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	8(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_3:
	movq	_MWIFIEX_MAX_TXRX_BD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$2, %ecx
	movl	%ecx, (%rbx)
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	(%rbx), %esi
	movl	20(%rbx), %edi
	leaq	8(%rbx), %rdx
	callq	_pci_alloc_consistent
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %ecx
	movl	8(%rbx), %r8d
	movl	%ecx, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_init_txq_ring          ## TAILCALL
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_MAX_TXRX_BD,4,2        ## @MWIFIEX_MAX_TXRX_BD
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: txbd_ring: Allocating %d bytes\n"

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"allocate consistent memory (%d bytes) failed!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DATA,4,2                       ## @DATA
L_.str.2:                               ## @.str.2
	.asciz	"info: txbd_ring - base: %p, pbase: %#x:%x, len: %x\n"

	.no_dead_strip	_mwifiex_pcie_create_txbd_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_pcie_create_txbd_ring
_mwifiex_pcie_create_txbd_ring:         ; @mwifiex_pcie_create_txbd_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #40]
	str	xzr, [x20, #32]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	str	wzr, [x20, #24]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x8, #8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
LBB0_3:
Lloh0:
	adrp	x8, _MWIFIEX_MAX_TXRX_BD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_MAX_TXRX_BD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w3, w8, #2
	str	w3, [x20]
Lloh3:
	adrp	x8, _INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	w0, [x20, #20]
	ldr	w1, [x20]
	add	x2, x20, #8
	bl	_pci_alloc_consistent
	str	w0, [x20, #16]
	cbz	w0, LBB0_5
; %bb.4:
	mov	x3, x0
Lloh8:
	adrp	x8, _DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	str	x9, [sp, #16]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_mwifiex_init_txq_ring
LBB0_5:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w3, [x20]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_MAX_TXRX_BD,4,2        ; @MWIFIEX_MAX_TXRX_BD
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: txbd_ring: Allocating %d bytes\n"

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"allocate consistent memory (%d bytes) failed!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DATA,4,2                       ; @DATA
l_.str.2:                               ; @.str.2
	.asciz	"info: txbd_ring - base: %p, pbase: %#x:%x, len: %x\n"

	.no_dead_strip	_mwifiex_pcie_create_txbd_ring
.subsections_via_symbols
