	.file	"extr_port.c_sci_port_deactivate_phy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sci_port_deactivate_phy
	.type	sci_port_deactivate_phy, @function
sci_port_deactivate_phy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	eax, -2
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ecx, DWORD PTR [rsi]
	mov	edx, DWORD PTR [rdi]
	mov	r13, QWORD PTR 24[rdi]
	rol	eax, cl
	and	DWORD PTR 4[rdi], eax
	and	edx, eax
	mov	DWORD PTR [rdi], edx
	test	edx, edx
	jne	.L2
	mov	DWORD PTR 8[rdi], ecx
.L2:
	mov	eax, DWORD PTR SAS_LINK_RATE_UNKNOWN[rip]
	mov	DWORD PTR 4[rbp], eax
	mov	rax, QWORD PTR SCIC_PORT_AUTOMATIC_CONFIGURATION_MODE[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L7
	cmp	ebx, 1
	je	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[r12]
	movsx	rdx, ecx
	mov	edi, ecx
	lea	rsi, [rax+rdx*4]
	call	writel@PLT
	cmp	ebx, 1
	jne	.L1
.L8:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	isci_port_link_down@PLT
	.cfi_endproc
.LFE0:
	.size	sci_port_deactivate_phy, .-sci_port_deactivate_phy
	.comm	SCIC_PORT_AUTOMATIC_CONFIGURATION_MODE,8,8
	.comm	SAS_LINK_RATE_UNKNOWN,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_port.c_sci_port_deactivate_phy.c"
	.text
	.align	2
	.global	sci_port_deactivate_phy
	.syntax unified
	.arm
	.fpu softvfp
	.type	sci_port_deactivate_phy, %function
sci_port_deactivate_phy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r1]
	mov	r5, r1
	ldm	r4, {r3, lr}
	mvn	ip, ip, lsl r0
	ldr	r7, [r4, #16]
	and	r3, r3, ip
	mov	r6, r2
	and	ip, ip, lr
	ldr	r2, .L9
	cmp	r3, #0
	stm	r4, {r3, ip}
	ldr	r3, .L9+4
	ldr	r1, [r7]
	ldr	r2, [r2]
	ldr	r3, [r3]
	streq	r0, [r4, #8]
	cmp	r1, r2
	str	r3, [r5, #4]
	beq	.L7
	cmp	r6, #1
	popne	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	isci_port_link_down
.L7:
	ldr	r1, [r4, #12]
	add	r1, r1, r0, lsl #2
	bl	writel
	cmp	r6, #1
	popne	{r4, r5, r6, r7, r8, pc}
	b	.L8
.L10:
	.align	2
.L9:
	.word	SCIC_PORT_AUTOMATIC_CONFIGURATION_MODE
	.word	SAS_LINK_RATE_UNKNOWN
	.size	sci_port_deactivate_phy, .-sci_port_deactivate_phy
	.comm	SCIC_PORT_AUTOMATIC_CONFIGURATION_MODE,4,4
	.comm	SAS_LINK_RATE_UNKNOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
