	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_init_rx_sring
_wil_init_rx_sring:                     ## @wil_init_rx_sring
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	%rcx, %r15
	shlq	$5, %r15
	leaq	(%r14,%r15), %r13
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_wil_dbg_misc
	leaq	(%r14,%r15), %rdi
	addq	$28, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, (%r14,%r15)
	movq	%rbx, 8(%r14,%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14,%r15)
	movq	%r12, %rdi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_wil_sring_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_wil_wmi_rx_sring_add
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wil_sring_free
	jmp	LBB0_4
LBB0_2:
	movl	$1, 24(%r14,%r15)
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init RX sring: size=%u, ring_id=%u\n"

	.no_dead_strip	_wil_init_rx_sring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_init_rx_sring
_wil_init_rx_sring:                     ; @wil_init_rx_sring
	.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	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0]
	add	x21, x24, x3, lsl #5
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_wil_dbg_misc
	add	x0, x21, #28
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #1
	str	w8, [x21]
	stp	x23, x22, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_wil_sring_alloc
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_wil_wmi_rx_sring_add
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_wil_sring_free
	b	LBB0_4
LBB0_3:
	add	x8, x24, x20, lsl #5
	mov	w9, #1
	str	w9, [x8, #24]
LBB0_4:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init RX sring: size=%u, ring_id=%u\n"

	.no_dead_strip	_wil_init_rx_sring
.subsections_via_symbols
