	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_dsaf_fix_mac_mode          ## -- Begin function hns_dsaf_fix_mac_mode
	.p2align	4, 0x90
_hns_dsaf_fix_mac_mode:                 ## @hns_dsaf_fix_mac_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	movq	_HNAE_PORT_SERVICE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rax
	movl	(%rdi), %esi
	movq	24(%rdi), %rdi
	movq	16(%rax), %rax
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_DSAF_PORT_RATE_10000@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	popq	%rbp
	retq
LBB0_2:
	movq	_DSAF_PORT_RATE_1000@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	popq	%rbp
	jmp	_hns_dsaf_port_work_rate_cfg    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ## @HNAE_PORT_SERVICE
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_DSAF_PORT_RATE_10000,4,2       ## @DSAF_PORT_RATE_10000
	.comm	_DSAF_PORT_RATE_1000,4,2        ## @DSAF_PORT_RATE_1000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_dsaf_fix_mac_mode          ; -- Begin function hns_dsaf_fix_mac_mode
	.p2align	2
_hns_dsaf_fix_mac_mode:                 ; @hns_dsaf_fix_mac_mode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _HNAE_PORT_SERVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE_PORT_SERVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x0]
Lloh3:
	adrp	x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
	ldp	x10, x8, [x0, #16]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x11, _DSAF_PORT_RATE_10000@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DSAF_PORT_RATE_10000@GOTPAGEOFF]
Lloh8:
	adrp	x12, _DSAF_PORT_RATE_1000@GOTPAGE
Lloh9:
	ldr	x12, [x12, _DSAF_PORT_RATE_1000@GOTPAGEOFF]
	cmp	x10, x9
	csel	x9, x11, x12, eq
	ldr	w2, [x9]
	mov	x0, x8
	b	_hns_dsaf_port_work_rate_cfg
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ; @HNAE_PORT_SERVICE
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_DSAF_PORT_RATE_10000,4,2       ; @DSAF_PORT_RATE_10000
	.comm	_DSAF_PORT_RATE_1000,4,2        ; @DSAF_PORT_RATE_1000
.subsections_via_symbols
