	.file	"extr_pm80xx_hwi.c_pm80xx_chip_phy_start_req.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PHY START REQ for phy_id %d\n"
	.text
	.p2align 4
	.type	pm80xx_chip_phy_start_req, @function
pm80xx_chip_phy_start_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 40
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r13, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR OPC_INB_PHYSTART[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdi, r12
	call	memset@PLT
	mov	edi, 1
	call	cpu_to_le32@PLT
	mov	rsi, rbx
	lea	rdi, .LC0[rip]
	mov	QWORD PTR 32[rsp], rax
	call	pm8001_printk@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	PM8001_INIT_DBG@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	IS_SPCV_12G@PLT
	mov	rdi, QWORD PTR SPINHOLD_DISABLE[rip]
	or	rdi, QWORD PTR LINKMODE_AUTO[rip]
	or	rdi, QWORD PTR LINKRATE_15[rip]
	or	rdi, QWORD PTR LINKRATE_30[rip]
	or	rdi, QWORD PTR LINKRATE_60[rip]
	test	eax, eax
	je	.L6
	or	rdi, QWORD PTR LINKRATE_120[rip]
.L6:
	or	rdi, rbx
	call	cpu_to_le32@PLT
	mov	edx, DWORD PTR SAS_ADDR_SIZE[rip]
	mov	edi, DWORD PTR 8[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR SAS_END_DEVICE[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR SAS_PROTOCOL_ALL[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, [rax+rbx*4]
	call	memcpy@PLT
	xor	r8d, r8d
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rbx
	call	pm8001_mpi_build_cmd@PLT
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pm80xx_chip_phy_start_req, .-pm80xx_chip_phy_start_req
	.comm	SPINHOLD_DISABLE,8,8
	.comm	SAS_PROTOCOL_ALL,4,4
	.comm	SAS_END_DEVICE,4,4
	.comm	SAS_ADDR_SIZE,4,4
	.comm	OPC_INB_PHYSTART,8,8
	.comm	LINKRATE_60,8,8
	.comm	LINKRATE_30,8,8
	.comm	LINKRATE_15,8,8
	.comm	LINKRATE_120,8,8
	.comm	LINKMODE_AUTO,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_pm80xx_hwi.c_pm80xx_chip_phy_start_req.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PHY START REQ for phy_id %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm80xx_chip_phy_start_req, %function
pm80xx_chip_phy_start_req:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r3, #0
	mov	r4, r0
	ldr	r2, .L8
	mov	r5, r1
	ldr	r1, .L8+4
	sub	sp, sp, #44
	mov	r0, #1
	ldr	r1, [r1]
	str	r1, [sp, #36]
	mov	r1,#0
	ldr	r7, [r2]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	ldr	r6, [r4, #8]
	bl	cpu_to_le32
	mov	r3, r0
	mov	r1, r5
	ldr	r0, .L8+8
	str	r3, [sp, #32]
	bl	pm8001_printk
	mov	r1, r0
	mov	r0, r4
	bl	PM8001_INIT_DBG
	ldr	r0, [r4, #4]
	bl	IS_SPCV_12G
	cmp	r0, #0
	ldr	r1, .L8+12
	bne	.L2
	ldr	r2, .L8+16
	ldr	r3, .L8+20
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r3, [r3]
	orr	r0, r0, r2
	ldr	r2, .L8+24
	orr	r0, r0, r3
	ldr	r3, .L8+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r2
	orr	r0, r0, r3
	orr	r0, r0, r5
	bl	cpu_to_le32
	str	r0, [sp, #28]
.L3:
	ldr	r0, .L8+32
	ldr	r3, .L8+36
	ldr	r0, [r0]
	ldr	r1, [r4]
	ldr	r2, .L8+40
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r1, r1, r5, lsl #2
	str	r0, [sp, #24]
	ldr	r0, [sp, #16]
	str	r3, [sp, #20]
	bl	memcpy
	mov	ip, #0
	mov	r2, r7
	add	r3, sp, #12
	mov	r1, r6
	mov	r0, r4
	str	ip, [sp]
	str	r5, [sp, #12]
	bl	pm8001_mpi_build_cmd
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L8+16
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r2, .L8+20
	orr	r0, r0, r3
	ldr	r3, .L8+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r2
	ldr	r2, .L8+28
	orr	r0, r0, r3
	ldr	r3, .L8+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r2
	orr	r0, r0, r3
	orr	r0, r0, r5
	bl	cpu_to_le32
	str	r0, [sp, #28]
	b	.L3
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	OPC_INB_PHYSTART
	.word	.LC1
	.word	.LC0
	.word	SPINHOLD_DISABLE
	.word	LINKMODE_AUTO
	.word	LINKRATE_15
	.word	LINKRATE_30
	.word	LINKRATE_60
	.word	SAS_END_DEVICE
	.word	SAS_PROTOCOL_ALL
	.word	SAS_ADDR_SIZE
	.word	LINKRATE_120
	.size	pm80xx_chip_phy_start_req, .-pm80xx_chip_phy_start_req
	.comm	SPINHOLD_DISABLE,4,4
	.comm	SAS_PROTOCOL_ALL,4,4
	.comm	SAS_END_DEVICE,4,4
	.comm	SAS_ADDR_SIZE,4,4
	.comm	OPC_INB_PHYSTART,4,4
	.comm	LINKRATE_60,4,4
	.comm	LINKRATE_30,4,4
	.comm	LINKRATE_15,4,4
	.comm	LINKRATE_120,4,4
	.comm	LINKMODE_AUTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
