	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_get_vector_ring_chain
_hns3_get_vector_ring_chain:            ## @hns3_get_vector_ring_chain
	.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, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	12(%r13), %edi
	movq	_HNAE3_RING_TYPE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_TYPE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hnae3_set_bit
	movl	8(%r13), %edi
	movq	_HNAE3_RING_GL_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_GL_IDX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HNAE3_RING_GL_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_hnae3_set_field
	movq	$0, (%r13)
	movq	(%r14), %r15
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	%rax, (%r14)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	12(%r13), %edi
	movq	_HNAE3_RING_TYPE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_TYPE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hnae3_set_bit
	movl	8(%r13), %edi
	movq	_HNAE3_RING_GL_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_GL_IDX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HNAE3_RING_GL_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_hnae3_set_field
	movq	(%r15), %r15
	movq	%r13, %r14
	testq	%r15, %r15
	jne	LBB0_3
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_6:
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.7:
	movq	$0, (%r13)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	12(%r13), %edi
	movq	_HNAE3_RING_TYPE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_TYPE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hnae3_set_bit
	movl	8(%r13), %edi
	movq	_HNAE3_RING_GL_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_GL_IDX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HNAE3_RING_GL_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_hnae3_set_field
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	(%rbx), %r14
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_17
## %bb.9:
	movq	_HNAE3_RING_GL_RX@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	movq	%rax, (%r13)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %edi
	movq	_HNAE3_RING_TYPE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_TYPE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hnae3_set_bit
	movl	8(%rbx), %edi
	movq	_HNAE3_RING_GL_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_RING_GL_IDX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	callq	_hnae3_set_field
	movq	(%r14), %r14
	movq	%rbx, %r13
	testq	%r14, %r14
	jne	LBB0_10
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rbx
	movq	%r12, %rdi
	callq	_devm_kfree
	movq	%rbx, %rsi
	testq	%rbx, %rbx
	jne	LBB0_14
LBB0_15:
	movq	$0, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_RING_TYPE_B,4,2          ## @HNAE3_RING_TYPE_B
	.comm	_HNAE3_RING_TYPE_TX,4,2         ## @HNAE3_RING_TYPE_TX
	.comm	_HNAE3_RING_GL_IDX_M,4,2        ## @HNAE3_RING_GL_IDX_M
	.comm	_HNAE3_RING_GL_IDX_S,4,2        ## @HNAE3_RING_GL_IDX_S
	.comm	_HNAE3_RING_GL_TX,4,2           ## @HNAE3_RING_GL_TX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_HNAE3_RING_TYPE_RX,4,2         ## @HNAE3_RING_TYPE_RX
	.comm	_HNAE3_RING_GL_RX,4,2           ## @HNAE3_RING_GL_RX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hns3_get_vector_ring_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_get_vector_ring_chain
_hns3_get_vector_ring_chain:            ; @hns3_get_vector_ring_chain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x26, x0
	ldp	x19, x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x23, _HNAE3_RING_TYPE_B@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HNAE3_RING_TYPE_B@GOTPAGEOFF]
Lloh2:
	adrp	x24, _HNAE3_RING_GL_IDX_M@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HNAE3_RING_GL_IDX_M@GOTPAGEOFF]
Lloh4:
	adrp	x25, _HNAE3_RING_GL_IDX_S@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HNAE3_RING_GL_IDX_S@GOTPAGEOFF]
	cbz	x19, LBB0_6
; %bb.1:
	str	x26, [sp]                       ; 8-byte Folded Spill
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x22, #16]
	ldr	w0, [x22, #12]
	ldr	w1, [x23]
Lloh6:
	adrp	x26, _HNAE3_RING_TYPE_TX@GOTPAGE
Lloh7:
	ldr	x26, [x26, _HNAE3_RING_TYPE_TX@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_hnae3_set_bit
	ldr	w0, [x22, #8]
	ldr	w1, [x24]
	ldr	w2, [x25]
Lloh8:
	adrp	x27, _HNAE3_RING_GL_TX@GOTPAGE
Lloh9:
	ldr	x27, [x27, _HNAE3_RING_GL_TX@GOTPAGEOFF]
	ldr	w3, [x27]
	bl	_hnae3_set_field
	str	xzr, [x22]
	ldr	x28, [x19]
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x28, LBB0_5
; %bb.2:
Lloh10:
	adrp	x19, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x19, [x19, _GFP_KERNEL@GOTPAGEOFF]
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	str	x0, [x21]
	ldr	x8, [x28, #8]
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w0, [x0, #12]
	ldr	w1, [x23]
	ldr	w2, [x26]
	bl	_hnae3_set_bit
	ldr	w0, [x22, #8]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w3, [x27]
	bl	_hnae3_set_field
	ldr	x28, [x28]
	mov	x21, x22
	cbnz	x28, LBB0_3
LBB0_5:
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	ldr	x26, [x26]
	cbnz	x26, LBB0_8
	b	LBB0_11
LBB0_6:
	ldr	x26, [x26]
	cbz	x26, LBB0_11
; %bb.7:
	str	xzr, [x22]
	ldr	x8, [x26, #8]
	ldr	w8, [x8]
	str	w8, [x22, #16]
	ldr	w0, [x22, #12]
	ldr	w1, [x23]
Lloh12:
	adrp	x8, _HNAE3_RING_TYPE_RX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNAE3_RING_TYPE_RX@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_hnae3_set_bit
	ldr	w0, [x22, #8]
	ldr	w1, [x24]
	ldr	w2, [x25]
Lloh15:
	adrp	x8, _HNAE3_RING_GL_RX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HNAE3_RING_GL_RX@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	bl	_hnae3_set_field
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x26, [x26]
	cbz	x26, LBB0_11
LBB0_8:
Lloh18:
	adrp	x19, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x19, [x19, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	adrp	x27, _HNAE3_RING_TYPE_RX@GOTPAGE
Lloh21:
	ldr	x27, [x27, _HNAE3_RING_TYPE_RX@GOTPAGEOFF]
Lloh22:
	adrp	x28, _HNAE3_RING_GL_RX@GOTPAGE
Lloh23:
	ldr	x28, [x28, _HNAE3_RING_GL_RX@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x0
	str	x0, [x22]
	ldr	x8, [x26, #8]
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w0, [x0, #12]
	ldr	w1, [x23]
	ldr	w2, [x27]
	bl	_hnae3_set_bit
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w3, [x28]
	bl	_hnae3_set_field
	ldr	x26, [x26]
	mov	x22, x21
	cbnz	x26, LBB0_9
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x1, [x21]
	cbz	x1, LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x1]
	mov	x0, x20
	bl	_devm_kfree
	mov	x1, x19
	cbnz	x19, LBB0_13
LBB0_14:
	str	xzr, [x21]
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_RING_TYPE_B,4,2          ; @HNAE3_RING_TYPE_B
	.comm	_HNAE3_RING_TYPE_TX,4,2         ; @HNAE3_RING_TYPE_TX
	.comm	_HNAE3_RING_GL_IDX_M,4,2        ; @HNAE3_RING_GL_IDX_M
	.comm	_HNAE3_RING_GL_IDX_S,4,2        ; @HNAE3_RING_GL_IDX_S
	.comm	_HNAE3_RING_GL_TX,4,2           ; @HNAE3_RING_GL_TX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_HNAE3_RING_TYPE_RX,4,2         ; @HNAE3_RING_TYPE_RX
	.comm	_HNAE3_RING_GL_RX,4,2           ; @HNAE3_RING_GL_RX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hns3_get_vector_ring_chain
.subsections_via_symbols
