	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_dsaf_port_work_rate_cfg
_hns_dsaf_port_work_rate_cfg:           ## @hns_dsaf_port_work_rate_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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_DSAF_XGE_GE_WORK_MODE_0_REG@GOTPCREL(%rip), %rcx
	leal	(,%r15,4), %eax
	movslq	%eax, %rbx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	callq	_dsaf_read_dev
	movq	_DSAF_PORT_RATE_10000@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r14d, (%rcx)
	movl	%eax, %r13d
	sete	%dl
	movq	_DSAF_XGE_GE_WORK_MODE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_dsaf_set_bit
	movq	_DSAF_XGE_GE_WORK_MODE_0_REG@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_dsaf_write_dev
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hns_dsaf_pfc_unit_cnt          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSAF_XGE_GE_WORK_MODE_0_REG,8,3 ## @DSAF_XGE_GE_WORK_MODE_0_REG
	.comm	_DSAF_PORT_RATE_10000,4,2       ## @DSAF_PORT_RATE_10000
	.comm	_DSAF_XGE_GE_WORK_MODE_S,4,2    ## @DSAF_XGE_GE_WORK_MODE_S
	.no_dead_strip	_hns_dsaf_port_work_rate_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_dsaf_port_work_rate_cfg
_hns_dsaf_port_work_rate_cfg:           ; @hns_dsaf_port_work_rate_cfg
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _DSAF_XGE_GE_WORK_MODE_0_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DSAF_XGE_GE_WORK_MODE_0_REG@GOTPAGEOFF]
	ldr	x8, [x23]
	lsl	w9, w1, #2
	sxtw	x24, w9
	add	x1, x8, x24
	bl	_dsaf_read_dev
	mov	x22, x0
Lloh2:
	adrp	x8, _DSAF_PORT_RATE_10000@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSAF_PORT_RATE_10000@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w2, eq
Lloh5:
	adrp	x8, _DSAF_XGE_GE_WORK_MODE_S@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSAF_XGE_GE_WORK_MODE_S@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_dsaf_set_bit
	ldr	x8, [x23]
	add	x1, x8, x24
	mov	x0, x21
	mov	x2, x22
	bl	_dsaf_write_dev
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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	_hns_dsaf_pfc_unit_cnt
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSAF_XGE_GE_WORK_MODE_0_REG,8,3 ; @DSAF_XGE_GE_WORK_MODE_0_REG
	.comm	_DSAF_PORT_RATE_10000,4,2       ; @DSAF_PORT_RATE_10000
	.comm	_DSAF_XGE_GE_WORK_MODE_S,4,2    ; @DSAF_XGE_GE_WORK_MODE_S
	.no_dead_strip	_hns_dsaf_port_work_rate_cfg
.subsections_via_symbols
