	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_init_rings
_b44_init_rings:                        ## @b44_init_rings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_b44_free_rings
	movl	32(%r14), %edi
	movq	_B44_RX_RING_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	28(%r14), %edi
	movq	_B44_TX_RING_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	(%r14), %eax
	movq	_B44_FLAG_RX_RING_HACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	24(%r14), %esi
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_device
	movl	(%r14), %eax
LBB0_2:
	movq	_B44_FLAG_TX_RING_HACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_device
LBB0_4:
	cmpl	$0, 4(%r14)
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	callq	_b44_alloc_rx_skb
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	4(%r14), %ebx
	jl	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_RX_RING_BYTES,4,2          ## @B44_RX_RING_BYTES
	.comm	_B44_TX_RING_BYTES,4,2          ## @B44_TX_RING_BYTES
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ## @B44_FLAG_RX_RING_HACK
	.comm	_DMA_TABLE_BYTES,4,2            ## @DMA_TABLE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_B44_FLAG_TX_RING_HACK,4,2      ## @B44_FLAG_TX_RING_HACK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_b44_init_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_init_rings
_b44_init_rings:                        ; @b44_init_rings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_b44_free_rings
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _B44_RX_RING_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B44_RX_RING_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #28]
Lloh3:
	adrp	x8, _B44_TX_RING_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B44_TX_RING_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _B44_FLAG_RX_RING_HACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B44_FLAG_RX_RING_HACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x20, _DMA_TABLE_BYTES@GOTPAGE
Lloh10:
	ldr	x20, [x20, _DMA_TABLE_BYTES@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	ldr	w2, [x20]
Lloh11:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_dma_sync_single_for_device
	ldr	w8, [x19]
LBB0_2:
Lloh14:
	adrp	x9, _B44_FLAG_TX_RING_HACK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _B44_FLAG_TX_RING_HACK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	ldr	w2, [x20]
Lloh17:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_dma_sync_single_for_device
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x20
	bl	_b44_alloc_rx_skb
	tbnz	x0, #63, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_RX_RING_BYTES,4,2          ; @B44_RX_RING_BYTES
	.comm	_B44_TX_RING_BYTES,4,2          ; @B44_TX_RING_BYTES
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ; @B44_FLAG_RX_RING_HACK
	.comm	_DMA_TABLE_BYTES,4,2            ; @DMA_TABLE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_B44_FLAG_TX_RING_HACK,4,2      ; @B44_FLAG_TX_RING_HACK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_b44_init_rings
.subsections_via_symbols
