	.file	"extr_cxgb3_main.c_t3_os_link_changed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	t3_os_link_changed
	.type	t3_os_link_changed, @function
t3_os_link_changed:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rsi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	r13, QWORD PTR [rax+rsi*8]
	mov	rdi, r13
	call	netdev_priv@PLT
	mov	rdi, r13
	mov	r12, rax
	call	netif_running@PLT
	test	eax, eax
	jne	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, r13
	call	netif_carrier_ok@PLT
	cmp	eax, ebx
	je	.L1
	lea	r14, 16[r12]
	test	ebx, ebx
	jne	.L14
	mov	rdi, r13
	lea	r15, 8[r12]
	call	netif_carrier_off@PLT
	mov	esi, DWORD PTR 24[r12]
	mov	rdi, rbp
	call	t3_xgm_intr_disable@PLT
	mov	rsi, QWORD PTR A_XGM_INT_STATUS[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR 16[r12]
	call	t3_read_reg@PLT
	mov	edx, DWORD PTR F_XGM_INT[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	rsi, QWORD PTR A_XGM_INT_ENABLE[rip]
	add	rsi, QWORD PTR 16[r12]
	call	t3_set_reg_field@PLT
	mov	rdi, rbp
	call	is_10G@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 8[r12]
	mov	esi, 1
	mov	rdi, r15
	call	[QWORD PTR [rax]]
.L7:
	mov	rsi, QWORD PTR A_XGM_INT_STATUS[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR 16[r12]
	call	t3_read_reg@PLT
	mov	esi, DWORD PTR MAC_DIRECTION_RX[rip]
	mov	rdi, r14
	call	t3_mac_disable@PLT
	mov	rsi, r14
	mov	rdi, r15
	mov	rdx, r12
	call	t3_link_start@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	enable_tx_fifo_drain@PLT
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	link_report@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	disable_tx_fifo_drain@PLT
	mov	esi, DWORD PTR MAC_DIRECTION_RX[rip]
	mov	rdi, r14
	call	t3_mac_enable@PLT
	mov	esi, DWORD PTR 24[r12]
	mov	rdi, rbp
	call	t3_xgm_intr_disable@PLT
	mov	rdi, rbp
	mov	rsi, QWORD PTR A_XGM_INT_STATUS[rip]
	add	rsi, QWORD PTR 16[r12]
	call	t3_read_reg@PLT
	mov	edx, DWORD PTR F_XGM_INT[rip]
	mov	rdi, rbp
	mov	rsi, QWORD PTR A_XGM_INT_CAUSE[rip]
	add	rsi, QWORD PTR 16[r12]
	call	t3_write_reg@PLT
	mov	edx, DWORD PTR F_XGM_INT[rip]
	mov	rdi, rbp
	mov	rsi, QWORD PTR A_XGM_INT_ENABLE[rip]
	add	rsi, QWORD PTR 16[r12]
	mov	ecx, edx
	call	t3_set_reg_field@PLT
	mov	esi, DWORD PTR 24[r12]
	mov	rdi, rbp
	call	t3_xgm_intr_enable@PLT
	mov	rdi, r13
	call	netif_carrier_on@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	t3_os_link_changed, .-t3_os_link_changed
	.comm	MAC_DIRECTION_RX,4,4
	.comm	F_XGM_INT,4,4
	.comm	A_XGM_INT_STATUS,8,8
	.comm	A_XGM_INT_ENABLE,8,8
	.comm	A_XGM_INT_CAUSE,8,8
	.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_cxgb3_main.c_t3_os_link_changed.c"
	.text
	.align	2
	.global	t3_os_link_changed
	.syntax unified
	.arm
	.fpu softvfp
	.type	t3_os_link_changed, %function
t3_os_link_changed:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r7, r2
	ldr	r6, [r0, r1, lsl #2]
	mov	r0, r6
	bl	netdev_priv
	mov	r5, r0
	mov	r0, r6
	bl	netif_running
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r0, r6
	bl	netif_carrier_ok
	cmp	r0, r7
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	cmp	r7, #0
	add	r8, r5, #8
	bne	.L13
	mov	r0, r6
	ldr	r9, .L14
	bl	netif_carrier_off
	ldr	r1, [r5, #12]
	mov	r0, r4
	bl	t3_xgm_intr_disable
	ldr	r3, [r9]
	ldr	r1, [r5, #8]
	mov	r0, r4
	add	r1, r1, r3
	bl	t3_read_reg
	ldr	r3, .L14+4
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	ldr	r2, .L14+8
	mov	r3, r7
	add	r1, r0, r1
	ldr	r2, [r2]
	mov	r0, r4
	bl	t3_set_reg_field
	mov	r0, r4
	bl	is_10G
	cmp	r0, #0
	add	r7, r5, #4
	beq	.L7
	ldr	r3, [r5, #4]
	mov	r1, #1
	mov	r0, r7
	ldr	r3, [r3]
	blx	r3
.L7:
	ldr	r3, [r9]
	ldr	r1, [r5, #8]
	mov	r0, r4
	add	r1, r1, r3
	bl	t3_read_reg
	ldr	r3, .L14+12
	mov	r0, r8
	ldr	r1, [r3]
	bl	t3_mac_disable
	mov	r2, r5
	mov	r1, r8
	mov	r0, r7
	bl	t3_link_start
	mov	r1, r5
	mov	r0, r4
	bl	enable_tx_fifo_drain
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	link_report
.L13:
	mov	r1, r5
	mov	r0, r4
	bl	disable_tx_fifo_drain
	ldr	r3, .L14+12
	mov	r0, r8
	ldr	r1, [r3]
	bl	t3_mac_enable
	ldr	r1, [r5, #12]
	mov	r0, r4
	bl	t3_xgm_intr_disable
	ldr	r3, .L14
	ldr	r1, [r5, #8]
	ldr	r3, [r3]
	mov	r0, r4
	add	r1, r1, r3
	bl	t3_read_reg
	ldr	r3, .L14+16
	ldr	r1, [r5, #8]
	ldr	r3, [r3]
	ldr	r7, .L14+8
	add	r1, r1, r3
	ldr	r2, [r7]
	mov	r0, r4
	bl	t3_write_reg
	ldr	r2, .L14+4
	ldr	r3, [r7]
	ldr	r0, [r5, #8]
	ldr	r1, [r2]
	mov	r2, r3
	add	r1, r0, r1
	mov	r0, r4
	bl	t3_set_reg_field
	ldr	r1, [r5, #12]
	mov	r0, r4
	bl	t3_xgm_intr_enable
	mov	r0, r6
	bl	netif_carrier_on
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	link_report
.L15:
	.align	2
.L14:
	.word	A_XGM_INT_STATUS
	.word	A_XGM_INT_ENABLE
	.word	F_XGM_INT
	.word	MAC_DIRECTION_RX
	.word	A_XGM_INT_CAUSE
	.size	t3_os_link_changed, .-t3_os_link_changed
	.comm	MAC_DIRECTION_RX,4,4
	.comm	F_XGM_INT,4,4
	.comm	A_XGM_INT_STATUS,4,4
	.comm	A_XGM_INT_ENABLE,4,4
	.comm	A_XGM_INT_CAUSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
