	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_rcb_ring_init
_hns_rcb_ring_init:                     ## @hns_rcb_ring_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	_RX_RING@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	leaq	16(%rdi), %r12
	cmovneq	%r15, %r12
	movslq	(%r12), %rbx
	jne	LBB0_3
## %bb.1:
	movq	_RCB_RING_RX_RING_BASEADDR_L_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dsaf_write_dev
	movq	_RCB_RING_RX_RING_BASEADDR_H_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$31, %ebx
	movslq	%ebx, %rdx
	movq	%r15, %rdi
	callq	_dsaf_write_dev
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_hns_rcb_set_rx_ring_bs
	movq	_RCB_RING_RX_RING_BD_NUM_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%r15, %rdi
	callq	_dsaf_write_dev
	movq	_RCB_RING_RX_RING_PKTLINE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	_RCB_RING_TX_RING_BASEADDR_L_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dsaf_write_dev
	movq	_RCB_RING_TX_RING_BASEADDR_H_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$31, %ebx
	movslq	%ebx, %rdx
	movq	%r15, %rdi
	callq	_dsaf_write_dev
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_hns_rcb_set_tx_ring_bs
	movq	_RCB_RING_TX_RING_BD_NUM_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%r15, %rdi
	callq	_dsaf_write_dev
	movq	_RCB_RING_TX_RING_PKTLINE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_RCB_TX_PKTLINE_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	(%r14), %rdx
LBB0_2:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsaf_write_dev                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING,4,2                    ## @RX_RING
	.comm	_RCB_RING_RX_RING_BASEADDR_L_REG,4,2 ## @RCB_RING_RX_RING_BASEADDR_L_REG
	.comm	_RCB_RING_RX_RING_BASEADDR_H_REG,4,2 ## @RCB_RING_RX_RING_BASEADDR_H_REG
	.comm	_RCB_RING_RX_RING_BD_NUM_REG,4,2 ## @RCB_RING_RX_RING_BD_NUM_REG
	.comm	_RCB_RING_RX_RING_PKTLINE_REG,4,2 ## @RCB_RING_RX_RING_PKTLINE_REG
	.comm	_RCB_RING_TX_RING_BASEADDR_L_REG,4,2 ## @RCB_RING_TX_RING_BASEADDR_L_REG
	.comm	_RCB_RING_TX_RING_BASEADDR_H_REG,4,2 ## @RCB_RING_TX_RING_BASEADDR_H_REG
	.comm	_RCB_RING_TX_RING_BD_NUM_REG,4,2 ## @RCB_RING_TX_RING_BD_NUM_REG
	.comm	_RCB_RING_TX_RING_PKTLINE_REG,4,2 ## @RCB_RING_TX_RING_PKTLINE_REG
	.comm	_HNS_RCB_TX_PKTLINE_OFFSET,8,3  ## @HNS_RCB_TX_PKTLINE_OFFSET
	.no_dead_strip	_hns_rcb_ring_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_rcb_ring_init
_hns_rcb_ring_init:                     ; @hns_rcb_ring_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _RX_RING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_RING@GOTPAGEOFF]
	add	x19, x0, #8
Lloh2:
	ldr	w8, [x8]
	add	x9, x0, #16
	cmp	w8, w1
	csel	x21, x9, x19, eq
	ldrsw	x2, [x21]
	mov	x22, x2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RCB_RING_RX_RING_BASEADDR_L_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RCB_RING_RX_RING_BASEADDR_L_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dsaf_write_dev
Lloh6:
	adrp	x8, _RCB_RING_RX_RING_BASEADDR_H_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCB_RING_RX_RING_BASEADDR_H_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sbfx	x2, x22, #31, #1
	mov	x0, x19
	bl	_dsaf_write_dev
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_hns_rcb_set_rx_ring_bs
Lloh9:
	adrp	x8, _RCB_RING_RX_RING_BD_NUM_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCB_RING_RX_RING_BD_NUM_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_dsaf_write_dev
Lloh12:
	adrp	x8, _RCB_RING_RX_RING_PKTLINE_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RCB_RING_RX_RING_PKTLINE_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x20]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _RCB_RING_TX_RING_BASEADDR_L_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RCB_RING_TX_RING_BASEADDR_L_REG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dsaf_write_dev
Lloh18:
	adrp	x8, _RCB_RING_TX_RING_BASEADDR_H_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RCB_RING_TX_RING_BASEADDR_H_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	sbfx	x2, x22, #31, #1
	mov	x0, x19
	bl	_dsaf_write_dev
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_hns_rcb_set_tx_ring_bs
Lloh21:
	adrp	x8, _RCB_RING_TX_RING_BD_NUM_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RCB_RING_TX_RING_BD_NUM_REG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_dsaf_write_dev
Lloh24:
	adrp	x8, _RCB_RING_TX_RING_PKTLINE_REG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RCB_RING_TX_RING_PKTLINE_REG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _HNS_RCB_TX_PKTLINE_OFFSET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HNS_RCB_TX_PKTLINE_OFFSET@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh29:
	ldr	x8, [x8]
	add	x2, x8, x9
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dsaf_write_dev
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING,4,2                    ; @RX_RING
	.comm	_RCB_RING_RX_RING_BASEADDR_L_REG,4,2 ; @RCB_RING_RX_RING_BASEADDR_L_REG
	.comm	_RCB_RING_RX_RING_BASEADDR_H_REG,4,2 ; @RCB_RING_RX_RING_BASEADDR_H_REG
	.comm	_RCB_RING_RX_RING_BD_NUM_REG,4,2 ; @RCB_RING_RX_RING_BD_NUM_REG
	.comm	_RCB_RING_RX_RING_PKTLINE_REG,4,2 ; @RCB_RING_RX_RING_PKTLINE_REG
	.comm	_RCB_RING_TX_RING_BASEADDR_L_REG,4,2 ; @RCB_RING_TX_RING_BASEADDR_L_REG
	.comm	_RCB_RING_TX_RING_BASEADDR_H_REG,4,2 ; @RCB_RING_TX_RING_BASEADDR_H_REG
	.comm	_RCB_RING_TX_RING_BD_NUM_REG,4,2 ; @RCB_RING_TX_RING_BD_NUM_REG
	.comm	_RCB_RING_TX_RING_PKTLINE_REG,4,2 ; @RCB_RING_TX_RING_PKTLINE_REG
	.comm	_HNS_RCB_TX_PKTLINE_OFFSET,8,3  ; @HNS_RCB_TX_PKTLINE_OFFSET
	.no_dead_strip	_hns_rcb_ring_init
.subsections_via_symbols
