	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_dsaf_set_pfc_pause
_hns_dsaf_set_pfc_pause:                ## @hns_dsaf_set_pfc_pause
	.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, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_AE_IS_VER1
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_DSAF_PAUSE_CFG_REG@GOTPCREL(%rip), %r13
	shll	$2, %ebx
	movslq	%ebx, %rbx
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	_DSAF_PFC_PAUSE_RX_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	setne	%cl
	movq	%r12, %rdi
	callq	_dsaf_set_dev_bit
	addq	(%r13), %rbx
	movq	_DSAF_PFC_PAUSE_TX_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	setne	%cl
	movq	%r12, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsaf_set_dev_bit               ## TAILCALL
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsaf v1 can not close pfc!\n"

	.comm	_DSAF_PAUSE_CFG_REG,8,3         ## @DSAF_PAUSE_CFG_REG
	.comm	_DSAF_PFC_PAUSE_RX_EN_B,4,2     ## @DSAF_PFC_PAUSE_RX_EN_B
	.comm	_DSAF_PFC_PAUSE_TX_EN_B,4,2     ## @DSAF_PFC_PAUSE_TX_EN_B
	.no_dead_strip	_hns_dsaf_set_pfc_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_dsaf_set_pfc_pause
_hns_dsaf_set_pfc_pause:                ; @hns_dsaf_set_pfc_pause
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_AE_IS_VER1
	cbz	x0, LBB0_4
; %bb.1:
	cbz	w20, LBB0_5
; %bb.2:
	cbz	w21, LBB0_5
; %bb.3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x23, _DSAF_PAUSE_CFG_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DSAF_PAUSE_CFG_REG@GOTPAGEOFF]
	ldr	x8, [x23]
	lsl	w9, w22, #2
	sxtw	x22, w9
	add	x1, x8, x22
Lloh2:
	adrp	x8, _DSAF_PFC_PAUSE_RX_EN_B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSAF_PFC_PAUSE_RX_EN_B@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	cmp	w21, #0
	cset	w3, ne
	mov	x0, x19
	bl	_dsaf_set_dev_bit
	ldr	x8, [x23]
	add	x1, x8, x22
Lloh5:
	adrp	x8, _DSAF_PFC_PAUSE_TX_EN_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSAF_PFC_PAUSE_TX_EN_B@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	cmp	w20, #0
	cset	w3, ne
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dsaf_set_dev_bit
LBB0_5:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsaf v1 can not close pfc!\n"

	.comm	_DSAF_PAUSE_CFG_REG,8,3         ; @DSAF_PAUSE_CFG_REG
	.comm	_DSAF_PFC_PAUSE_RX_EN_B,4,2     ; @DSAF_PFC_PAUSE_RX_EN_B
	.comm	_DSAF_PFC_PAUSE_TX_EN_B,4,2     ; @DSAF_PFC_PAUSE_TX_EN_B
	.no_dead_strip	_hns_dsaf_set_pfc_pause
.subsections_via_symbols
