	.file	"extr_hns_ae_adapt.c_hns_ae_adjust_link.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hns_ae_adjust_link, @function
hns_ae_adjust_link:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	hns_get_mac_cb@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	hns_mac_adjust_link@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR MAC_COMM_MODE_RX[rip]
	mov	rdi, rbp
	call	hns_mac_disable@PLT
	mov	rdi, r12
	call	hns_ae_wait_flow_down@PLT
	test	eax, eax
	je	.L4
.L6:
	mov	esi, DWORD PTR MAC_COMM_MODE_RX[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	hns_mac_enable@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	hns_mac_adjust_link@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	hns_ae_adjust_link, .-hns_ae_adjust_link
	.comm	MAC_COMM_MODE_RX,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_hns_ae_adapt.c_hns_ae_adjust_link.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_ae_adjust_link, %function
hns_ae_adjust_link:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r7, r2
	mov	r6, r0
	bl	hns_get_mac_cb
	ldr	r3, [r0]
	ldr	r3, [r3]
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r2, r7
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	hns_mac_adjust_link
.L2:
	ldr	r8, .L8
	mov	r4, r0
	ldr	r1, [r8]
	bl	hns_mac_disable
	mov	r0, r6
	bl	hns_ae_wait_flow_down
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	ldr	r1, [r8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	hns_mac_enable
.L4:
	mov	r1, r5
	mov	r2, r7
	mov	r0, r4
	bl	hns_mac_adjust_link
	mov	r0, r4
	ldr	r1, [r8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	hns_mac_enable
.L9:
	.align	2
.L8:
	.word	MAC_COMM_MODE_RX
	.size	hns_ae_adjust_link, .-hns_ae_adjust_link
	.comm	MAC_COMM_MODE_RX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
