	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_get_handle
_hns_ae_get_handle:                     ## @hns_ae_get_handle
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_hns_ae_get_dsaf_dev
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_hns_ae_get_base_ring_pair
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_hns_ae_get_vf_num_per_port
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_hns_ae_get_q_num_per_vf
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	96(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.16:
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_1:
	movq	%r12, %r10
	movl	8(%r13), %edi
	movl	%edi, 88(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 80(%r15)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, 24(%r15)
	movq	_HNAE_LOWEST_LATENCY_COAL_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	xorl	%r12d, %r12d
	movl	$0, %eax
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.2:
	movslq	%esi, %rcx
	leaq	24(%r15), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	addq	%rdx, %rbx
	cmpl	%ecx, %r14d
	jne	LBB0_3
## %bb.5:
	movl	%r14d, %eax
LBB0_6:
	movl	%eax, 28(%r15)
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rax
	jmp	LBB0_15
LBB0_7:
	movl	%ecx, 28(%r15)
	leaq	72(%r15), %rdx
	movq	%rdx, 64(%r15)
	testl	%esi, %esi
	jle	LBB0_14
## %bb.8:
	movq	%r15, %rcx
	addq	$64, %rcx
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	jmp	LBB0_12
LBB0_10:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	8(%rbx), %rsi
	movq	%rsi, (%rdx,%rdi,8)
	movq	(%rcx), %rdx
	movq	(%rdx,%rdi,8), %rsi
	movq	%rsi, 8(%rsi)
	movq	(%rdx,%rdi,8), %rsi
	movq	%rsi, (%rsi)
	movl	$1, (%rbx)
	leaq	32(%rbx), %rsi
	movq	%rsi, 8(%rdx,%rdi,8)
	movq	(%rcx), %rdx
	movq	8(%rdx,%rdi,8), %rsi
	movq	%rsi, 8(%rsi)
	movq	8(%rdx,%rdi,8), %rsi
	movq	%rsi, (%rsi)
	movl	$1, 24(%rbx)
	addq	$48, %rbx
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_11
LBB0_12:
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	leaq	8(%rbx), %rsi
	movq	%rsi, (%rdx,%rdi,8)
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %rdx
	movq	%rdx, 8(%rdx)
	movq	(%rcx,%rdi,8), %rcx
	movq	%rcx, (%rcx)
	movl	$1, (%rbx)
LBB0_14:
	movq	%r13, 16(%r15)
	movq	%r10, (%r15)
	movq	(%r13), %rcx
	movq	(%rcx,%r10,8), %rcx
	movq	%rcx, 8(%r15)
	movl	16(%rcx), %edx
	movl	%edx, 56(%r15)
	movups	(%rcx), %xmm0
	movups	%xmm0, 40(%r15)
	movq	%r10, 32(%r15)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc vf_cb fail!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HNAE_LOWEST_LATENCY_COAL_PARAM,4,2 ## @HNAE_LOWEST_LATENCY_COAL_PARAM
L_.str.1:                               ## @.str.1
	.asciz	"malloc queue fail!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hns_ae_get_handle
.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_handle
_hns_ae_get_handle:                     ; @hns_ae_get_handle
	.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, x1
	mov	x24, x0
	bl	_hns_ae_get_dsaf_dev
	mov	x21, x0
	mov	x1, x19
	bl	_hns_ae_get_base_ring_pair
	mov	x25, x0
	mov	x0, x21
	mov	x1, x19
	bl	_hns_ae_get_vf_num_per_port
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_hns_ae_get_q_num_per_vf
	mov	x23, x0
	lsl	w8, w0, #3
	add	w0, w8, #96
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_2:
	mov	x0, x20
	str	w23, [x0, #24]!
	ldr	w8, [x21, #8]
	str	w8, [x0, #64]
	str	x24, [x0, #56]
Lloh8:
	adrp	x9, _HNAE_LOWEST_LATENCY_COAL_PARAM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HNAE_LOWEST_LATENCY_COAL_PARAM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x0, #48]
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w11, #0
	sxtw	x10, w23
	add	x9, x25, #8
	add	x10, x10, x10, lsl #1
	lsl	x10, x10, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x9, #-8]
	cbz	w12, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w11, #1
	add	x9, x9, x10
	cmp	w22, w11
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w22, #0
LBB0_7:
	str	w22, [x20, #28]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	b	LBB0_12
LBB0_8:
	add	x10, x20, #72
	mov	x8, x20
	str	x10, [x8, #64]!
	stur	w11, [x8, #-36]
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x11, #0
	mov	w12, w23
	lsl	x12, x12, #3
	mov	w13, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x9, [x10, x11]
	ldr	x10, [x8]
	ldr	x14, [x10, x11]
	str	x14, [x14, #8]
	ldr	x14, [x10, x11]
	str	x14, [x14]
	stur	w13, [x9, #-8]
	add	x11, x11, #8
	add	x9, x9, #24
	cmp	x12, x11
	b.ne	LBB0_10
LBB0_11:
	str	x21, [x20, #16]
	ldr	x8, [x21]
	ldr	x8, [x8, x19, lsl #3]
	stp	x19, x8, [x20]
	ldr	w9, [x8, #16]
	str	w9, [x20, #56]
	ldr	q0, [x8]
	stur	q0, [x20, #40]
	str	x19, [x20, #32]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc vf_cb fail!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HNAE_LOWEST_LATENCY_COAL_PARAM,4,2 ; @HNAE_LOWEST_LATENCY_COAL_PARAM
l_.str.1:                               ; @.str.1
	.asciz	"malloc queue fail!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hns_ae_get_handle
.subsections_via_symbols
