	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_alloc_tqps
_hclge_alloc_tqps:                      ## @hclge_alloc_tqps
	.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
	movq	%rdi, %r14
	movq	32(%rdi), %rdi
	movl	(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$48, %edx
	callq	_devm_kcalloc
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_2
## %bb.3:
	movq	32(%r14), %rbx
	movl	24(%r14), %r12d
	movl	16(%r14), %r10d
	movl	20(%r14), %r13d
	movq	_HCLGE_TQP_REG_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	8(%r14), %rdx
	xorl	%r9d, %r9d
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.4:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	subl	(%rax), %r9d
	jmp	LBB0_11
LBB0_2:
	xorl	%r9d, %r9d
	jmp	LBB0_11
LBB0_6:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	movl	$1, %esi
	movq	_ae_algo@GOTPCREL(%rip), %r14
	movq	_HCLGE_TQP_REG_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rsi), %edi
	movq	%rbx, 40(%rax)
	movl	%edi, (%rax)
	movq	%r14, 32(%rax)
	movl	%r12d, 24(%rax)
	movl	%r13d, 20(%rax)
	movl	%r10d, 16(%rax)
	movslq	(%r15), %rcx
	movslq	%edi, %rdi
	imulq	%rcx, %rdi
	addq	%rdx, %rdi
	movq	%rdi, 8(%rax)
	movq	%rbx, 88(%rax)
	movl	%esi, 48(%rax)
	movq	%r14, 80(%rax)
	movl	%r12d, 72(%rax)
	movl	%r13d, 68(%rax)
	movl	%r10d, 64(%rax)
	movslq	(%r15), %rcx
	movslq	%esi, %rdi
	imulq	%rdi, %rcx
	addq	%rdx, %rcx
	movq	%rcx, 56(%rax)
	addq	$96, %rax
	leal	2(%rdi), %esi
	incl	%edi
	cmpl	%r11d, %edi
	jne	LBB0_7
## %bb.8:
	decl	%esi
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movq	%rbx, 40(%rax)
	movl	%esi, (%rax)
	movq	_ae_algo@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rax)
	movl	%r12d, 24(%rax)
	movl	%r13d, 20(%rax)
	movl	%r10d, 16(%rax)
	movq	_HCLGE_TQP_REG_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%esi, %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	movq	%rdx, 8(%rax)
LBB0_11:
	movl	%r9d, %eax
	addq	$8, %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
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ae_algo,4,2                    ## @ae_algo
	.comm	_HCLGE_TQP_REG_OFFSET,8,3       ## @HCLGE_TQP_REG_OFFSET
	.comm	_HCLGE_TQP_REG_SIZE,4,2         ## @HCLGE_TQP_REG_SIZE
	.no_dead_strip	_hclge_alloc_tqps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_alloc_tqps
_hclge_alloc_tqps:                      ; @hclge_alloc_tqps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #32]
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #48
	bl	_devm_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w9, #0
	ldr	x10, [x19, #32]
	ldr	w11, [x19, #24]
	ldr	d0, [x19, #16]
	ldr	x12, [x19, #8]
Lloh3:
	adrp	x13, _HCLGE_TQP_REG_OFFSET@GOTPAGE
Lloh4:
	ldr	x13, [x13, _HCLGE_TQP_REG_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x13, [x13]
	add	x12, x13, x12
	add	x13, x0, #24
Lloh6:
	adrp	x14, _ae_algo@GOTPAGE
Lloh7:
	ldr	x14, [x14, _ae_algo@GOTPAGEOFF]
Lloh8:
	adrp	x15, _HCLGE_TQP_REG_SIZE@GOTPAGE
Lloh9:
	ldr	x15, [x15, _HCLGE_TQP_REG_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stur	w9, [x13, #-24]
	stp	x14, x10, [x13, #8]
	str	w11, [x13]
	stur	d0, [x13, #-8]
	ldrsw	x16, [x15]
	sxtw	x17, w9
	madd	x16, x16, x17, x12
	stur	x16, [x13, #-16]
	add	w9, w9, #1
	add	x13, x13, #48
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ae_algo,4,2                    ; @ae_algo
	.comm	_HCLGE_TQP_REG_OFFSET,8,3       ; @HCLGE_TQP_REG_OFFSET
	.comm	_HCLGE_TQP_REG_SIZE,4,2         ; @HCLGE_TQP_REG_SIZE
	.no_dead_strip	_hclge_alloc_tqps
.subsections_via_symbols
