	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_descr_ring
_init_descr_ring:                       ## @init_descr_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%r15, %rdx
	callq	_DB_GEN
	movl	%r14d, %ebx
	movq	%r15, %r12
	decl	%ebx
	je	LBB0_3
## %bb.1:
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	24(%r13), %r12
	movq	_BMU_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	movq	%r12, 8(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_mac_drv_virt2phys
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r13)
	movq	%r12, %r13
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movq	%r12, %rdx
	callq	_DB_GEN
	movq	_BMU_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r12)
	movq	%r15, 8(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_mac_drv_virt2phys
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	movq	_DDI_DMA_SYNC_FORDEV@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_DRV_BUF_FLUSH
	addq	$24, %r15
	decl	%r14d
	jne	LBB0_5
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %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	"descr ring starts at = %p"

	.comm	_BMU_CHECK,4,2                  ## @BMU_CHECK
L_.str.1:                               ## @.str.1
	.asciz	"descr ring ends at = %p"

	.comm	_DDI_DMA_SYNC_FORDEV,4,2        ## @DDI_DMA_SYNC_FORDEV
	.no_dead_strip	_init_descr_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_descr_ring
_init_descr_ring:                       ; @init_descr_ring
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	bl	_DB_GEN
Lloh2:
	adrp	x23, _BMU_CHECK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BMU_CHECK@GOTPAGEOFF]
	mov	x22, x20
	subs	w24, w19, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x25, #24
	ldr	w0, [x23]
	bl	_cpu_to_le32
	str	x0, [x25, #16]
	str	x22, [x25, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_mac_drv_virt2phys
	bl	_cpu_to_le32
	str	x0, [x25]
	mov	x25, x22
	subs	w24, w24, #1
	b.ne	LBB0_2
LBB0_3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x2, x22
	bl	_DB_GEN
	ldr	w0, [x23]
	bl	_cpu_to_le32
	str	x0, [x22, #16]
	str	x20, [x22, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_mac_drv_virt2phys
	mov	x21, x0
	bl	_cpu_to_le32
	str	x0, [x22]
	cbz	w19, LBB0_6
; %bb.4:
Lloh6:
	adrp	x22, _DDI_DMA_SYNC_FORDEV@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DDI_DMA_SYNC_FORDEV@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_DRV_BUF_FLUSH
	add	x20, x20, #24
	subs	w19, w19, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"descr ring starts at = %p"

	.comm	_BMU_CHECK,4,2                  ; @BMU_CHECK
l_.str.1:                               ; @.str.1
	.asciz	"descr ring ends at = %p"

	.comm	_DDI_DMA_SYNC_FORDEV,4,2        ; @DDI_DMA_SYNC_FORDEV
	.no_dead_strip	_init_descr_ring
.subsections_via_symbols
