	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_bp_setup_hw
_hclge_bp_setup_hw:                     ## @hclge_bp_setup_hw
	.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	_HCLGE_BP_GRP_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_HCLGE_BP_GRP_ID_M@GOTPCREL(%rip), %r12
	xorl	%edx, %edx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%rbx)
	movl	$0, %r13d
	movq	_HCLGE_BP_GRP_ID_S@GOTPCREL(%rip), %rcx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %ebx
	addl	%r14d, %ebx
	movl	(%r12), %esi
	movl	(%rcx), %edx
	movl	%ebx, %edi
	callq	_hnae3_get_field
	movl	%r14d, %r12d
	movl	%eax, %r14d
	movq	_HCLGE_BP_SUB_GRP_ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_BP_SUB_GRP_ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_hnae3_get_field
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movq	_HCLGE_BP_GRP_ID_S@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%r14d, %edx
	movl	%r12d, %r14d
	movq	_HCLGE_BP_GRP_ID_M@GOTPCREL(%rip), %r12
	movl	$0, %eax
	cmovnel	%eax, %esi
	orl	%esi, %r13d
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%edx, %r15d
	movl	%r13d, %ecx
	callq	_hclge_tm_qs_bp_cfg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movq	_HCLGE_BP_GRP_NUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	movl	%r15d, %edx
	jl	LBB0_2
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_BP_GRP_NUM,4,2           ## @HCLGE_BP_GRP_NUM
	.comm	_HCLGE_BP_GRP_ID_M,4,2          ## @HCLGE_BP_GRP_ID_M
	.comm	_HCLGE_BP_GRP_ID_S,4,2          ## @HCLGE_BP_GRP_ID_S
	.comm	_HCLGE_BP_SUB_GRP_ID_M,4,2      ## @HCLGE_BP_SUB_GRP_ID_M
	.comm	_HCLGE_BP_SUB_GRP_ID_S,4,2      ## @HCLGE_BP_SUB_GRP_ID_S
	.no_dead_strip	_hclge_bp_setup_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_bp_setup_hw
_hclge_bp_setup_hw:                     ; @hclge_bp_setup_hw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _HCLGE_BP_GRP_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_BP_GRP_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
Lloh3:
	adrp	x24, _HCLGE_BP_GRP_ID_M@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HCLGE_BP_GRP_ID_M@GOTPAGEOFF]
Lloh5:
	adrp	x25, _HCLGE_BP_GRP_ID_S@GOTPAGE
Lloh6:
	ldr	x25, [x25, _HCLGE_BP_GRP_ID_S@GOTPAGEOFF]
Lloh7:
	adrp	x26, _HCLGE_BP_SUB_GRP_ID_S@GOTPAGE
Lloh8:
	ldr	x26, [x26, _HCLGE_BP_SUB_GRP_ID_S@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
	mov	w22, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x27, lsl #2]
	add	w23, w8, w19
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x23
	bl	_hnae3_get_field
	mov	x28, x24
	mov	x24, x0
Lloh9:
	adrp	x8, _HCLGE_BP_SUB_GRP_ID_M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_BP_SUB_GRP_ID_M@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x26]
	mov	x0, x23
	mov	w23, #1
	bl	_hnae3_get_field
	lsl	w8, w23, w0
	cmp	w21, w24
	mov	x24, x28
	csel	w8, w8, wzr, eq
	orr	w22, w8, w22
	add	x27, x27, #1
	ldrsw	x8, [x20]
	cmp	x27, x8
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_hclge_tm_qs_bp_cfg
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
Lloh12:
	adrp	x8, _HCLGE_BP_GRP_NUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_BP_GRP_NUM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_BP_GRP_NUM,4,2           ; @HCLGE_BP_GRP_NUM
	.comm	_HCLGE_BP_GRP_ID_M,4,2          ; @HCLGE_BP_GRP_ID_M
	.comm	_HCLGE_BP_GRP_ID_S,4,2          ; @HCLGE_BP_GRP_ID_S
	.comm	_HCLGE_BP_SUB_GRP_ID_M,4,2      ; @HCLGE_BP_SUB_GRP_ID_M
	.comm	_HCLGE_BP_SUB_GRP_ID_S,4,2      ; @HCLGE_BP_SUB_GRP_ID_S
	.no_dead_strip	_hclge_bp_setup_hw
.subsections_via_symbols
