	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_ring_init_bcast_edma
_wil_ring_init_bcast_edma:              ## @wil_ring_init_bcast_edma
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_vif_to_wil
	movq	%rax, %r12
	movq	24(%rax), %r13
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r14
	leaq	(%r13,%r14,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %r15
	movl	12(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_wil_dbg_misc
	leaq	8(%r12), %rdi
	callq	_lockdep_assert_held
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_wil_tx_data_init
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%r14,8)
	movl	$0, 4(%r13,%r14,8)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_wil_ring_alloc_desc_ring
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	_WIL6210_MAX_CID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, (%rcx)
	movq	$0, 8(%rcx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	cmpl	$0, (%rdi)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_3
## %bb.2:
	movl	$1, (%r14)
LBB0_3:
	callq	_wil_wmi_bcast_desc_ring_add
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	$0, 8(%r14,%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_wil_ring_free_edma
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$56, %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 bcast: ring_id=%d, sring_id=%d\n"

	.comm	_WIL6210_MAX_CID,8,3            ## @WIL6210_MAX_CID
	.no_dead_strip	_wil_ring_init_bcast_edma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_ring_init_bcast_edma
_wil_ring_init_bcast_edma:              ; @wil_ring_init_bcast_edma
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x24, x2
	mov	x22, x1
	mov	x23, x0
	bl	_vif_to_wil
	mov	x19, x0
	ldp	x25, x8, [x0, #16]
	add	x20, x8, w22, sxtw #3
	add	x21, x25, w22, sxtw #4
	ldr	w3, [x0, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_wil_dbg_misc
	add	x0, x19, #8
	bl	_lockdep_assert_held
	mov	x0, x21
	bl	_wil_tx_data_init
	stp	w24, wzr, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_wil_ring_alloc_desc_ring
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.1:
	sxtw	x26, w22
Lloh2:
	adrp	x8, _WIL6210_MAX_CID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WIL6210_MAX_CID@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9, x26, lsl #3]
	stp	x8, xzr, [x9]
	ldr	w8, [x23]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
LBB0_3:
	mov	x0, x23
	mov	x1, x22
	bl	_wil_wmi_bcast_desc_ring_add
	mov	x24, x0
	cbz	w0, LBB0_5
; %bb.4:
	add	x23, x25, x26, lsl #4
	add	x22, x23, #4
	mov	x0, x22
	bl	_spin_lock_bh
	str	xzr, [x23, #8]
	str	wzr, [x21]
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	x0, x19
	mov	x1, x20
	bl	_wil_ring_free_edma
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init bcast: ring_id=%d, sring_id=%d\n"

	.comm	_WIL6210_MAX_CID,8,3            ; @WIL6210_MAX_CID
	.no_dead_strip	_wil_ring_init_bcast_edma
.subsections_via_symbols
