	.file	"extr_hclge_tm.c_hclge_tm_pg_schd_mode_cfg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hclge_tm_pg_schd_mode_cfg, @function
hclge_tm_pg_schd_mode_cfg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR HCLGE_OPC_TM_PG_SCH_MODE_CFG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	mov	rdi, r13
	call	hclge_cmd_setup_basic_desc@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR HCLGE_SCH_MODE_DWRR[rip]
	mov	rbx, QWORD PTR [rsp]
	cmp	QWORD PTR [rax+r12*8], rcx
	je	.L7
	mov	QWORD PTR 8[rbx], 0
.L3:
	mov	rdi, r12
	call	cpu_to_le32@PLT
	mov	edx, 1
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR [rbx], rax
	call	hclge_cmd_send@PLT
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR HCLGE_TM_TX_SCHD_DWRR_MSK[rip]
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rbx, QWORD PTR [rsp]
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hclge_tm_pg_schd_mode_cfg, .-hclge_tm_pg_schd_mode_cfg
	.comm	HCLGE_TM_TX_SCHD_DWRR_MSK,8,8
	.comm	HCLGE_SCH_MODE_DWRR,8,8
	.comm	HCLGE_OPC_TM_PG_SCH_MODE_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hclge_tm.c_hclge_tm_pg_schd_mode_cfg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hclge_tm_pg_schd_mode_cfg, %function
hclge_tm_pg_schd_mode_cfg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L9
	sub	sp, sp, #8
	ldr	r1, [r3]
	ldr	r3, .L9+4
	mov	r2, #0
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	hclge_cmd_setup_basic_desc
	ldr	r2, [r4, #4]
	ldr	r3, .L9+8
	ldr	r2, [r2, r5, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L7
	mov	r3, #0
	ldr	r6, [sp]
	str	r3, [r6, #4]
.L3:
	mov	r0, r5
	bl	cpu_to_le32
	mov	r2, #1
	str	r0, [r6]
	mov	r1, sp
	mov	r0, r4
	bl	hclge_cmd_send
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+12
	ldr	r6, [sp]
	ldr	r0, [r3]
	bl	cpu_to_le32
	str	r0, [r6, #4]
	ldr	r6, [sp]
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	HCLGE_OPC_TM_PG_SCH_MODE_CFG
	.word	.LC0
	.word	HCLGE_SCH_MODE_DWRR
	.word	HCLGE_TM_TX_SCHD_DWRR_MSK
	.size	hclge_tm_pg_schd_mode_cfg, .-hclge_tm_pg_schd_mode_cfg
	.comm	HCLGE_TM_TX_SCHD_DWRR_MSK,4,4
	.comm	HCLGE_SCH_MODE_DWRR,4,4
	.comm	HCLGE_OPC_TM_PG_SCH_MODE_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
