	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_get_regs
_hns_ae_get_regs:                       ## @hns_ae_get_regs
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_hns_ae_get_vf_cb
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_hns_get_ppe_cb
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_hns_ppe_get_regs
	xorl	%eax, %eax
	callq	_hns_ppe_get_regs_count
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_hns_rcb_get_common_regs
	xorl	%eax, %eax
	callq	_hns_rcb_get_common_regs_count
	cltq
	leaq	(%rbx,%rax,4), %r12
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r12, %rsi
	callq	_hns_rcb_get_ring_regs
	xorl	%eax, %eax
	callq	_hns_rcb_get_ring_regs_count
	cltq
	leaq	(%r12,%rax,4), %r12
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	16(%r14), %rdi
	movq	%r12, %rsi
	callq	_hns_mac_get_regs
	movq	16(%r14), %rdi
	callq	_hns_mac_get_regs_count
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_HNAE_PORT_SERVICE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.5:
	cltq
	leaq	(%r12,%rax,4), %rdx
	movq	8(%r14), %rdi
	movl	(%r14), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hns_dsaf_get_regs              ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ## @HNAE_PORT_SERVICE
	.no_dead_strip	_hns_ae_get_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_ae_get_regs
_hns_ae_get_regs:                       ; @hns_ae_get_regs
	.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	x21, x1
	mov	x20, x0
	bl	_hns_ae_get_vf_cb
	mov	x19, x0
	mov	x0, x20
	bl	_hns_get_ppe_cb
	mov	x1, x21
	bl	_hns_ppe_get_regs
	bl	_hns_ppe_get_regs_count
	add	x21, x21, w0, sxtw #2
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_hns_rcb_get_common_regs
	bl	_hns_rcb_get_common_regs_count
	add	x21, x21, w0, sxtw #2
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x22, lsl #2]
	mov	x1, x21
	bl	_hns_rcb_get_ring_regs
	bl	_hns_rcb_get_ring_regs_count
	add	x21, x21, w0, sxtw #2
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_hns_mac_get_regs
	ldr	x0, [x19, #16]
	bl	_hns_mac_get_regs_count
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HNAE_PORT_SERVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE_PORT_SERVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	add	x2, x21, w0, sxtw #2
	ldr	x0, [x19, #8]
	ldr	w1, [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	_hns_dsaf_get_regs
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ; @HNAE_PORT_SERVICE
	.no_dead_strip	_hns_ae_get_regs
.subsections_via_symbols
