	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_tm_pg_shapping_cfg
_hclge_tm_pg_shapping_cfg:              ## @hclge_tm_pg_shapping_cfg
	.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
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rdi, %r14
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_HCLGE_OPC_TM_PG_C_SHAPPING@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HCLGE_OPC_TM_PG_P_SHAPPING@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-48(%rbp), %rbx
	movl	%r13d, 4(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_TM_PG_P_SHAPPING,4,2 ## @HCLGE_OPC_TM_PG_P_SHAPPING
	.comm	_HCLGE_OPC_TM_PG_C_SHAPPING,4,2 ## @HCLGE_OPC_TM_PG_C_SHAPPING
	.no_dead_strip	_hclge_tm_pg_shapping_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_tm_pg_shapping_cfg
_hclge_tm_pg_shapping_cfg:              ; @hclge_tm_pg_shapping_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_TM_PG_P_SHAPPING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_TM_PG_P_SHAPPING@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HCLGE_OPC_TM_PG_C_SHAPPING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HCLGE_OPC_TM_PG_C_SHAPPING@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	ldr	x22, [sp, #8]
	str	w20, [x22, #4]
	mov	x0, x19
	bl	_cpu_to_le32
	str	w0, [x22]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_send
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_TM_PG_P_SHAPPING,4,2 ; @HCLGE_OPC_TM_PG_P_SHAPPING
	.comm	_HCLGE_OPC_TM_PG_C_SHAPPING,4,2 ; @HCLGE_OPC_TM_PG_C_SHAPPING
	.no_dead_strip	_hclge_tm_pg_shapping_cfg
.subsections_via_symbols
