	.file	"extr_pm80xx_hwi.c_pm8001_set_phy_profile_single.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid tag"
.LC1:
	.string	"PHY %d settings applied"
	.text
	.p2align 4
	.globl	pm8001_set_phy_profile_single
	.type	pm8001_set_phy_profile_single, @function
pm8001_set_phy_profile_single:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	mov	edx, 24
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 8[rsp], esi
	lea	r14, 32[rsp]
	xor	esi, esi
	mov	rdi, r14
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	memset@PLT
	lea	rsi, 28[rsp]
	mov	rdi, r12
	call	pm8001_tag_alloc@PLT
	test	eax, eax
	jne	.L16
.L2:
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR 28[rsp]
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR OPC_INB_SET_PHY_PROFILE[rip]
	mov	DWORD PTR 12[rsp], eax
	call	cpu_to_le32@PLT
	movzx	edx, BYTE PTR 8[rsp]
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR SAS_PHY_ANALOG_SETTINGS_PAGE[rip]
	sal	eax, 8
	and	eax, 3840
	or	eax, edx
	mov	DWORD PTR 32[rsp], eax
	test	ebp, ebp
	jle	.L3
	sub	ebp, 1
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR [rbx+r15*4]
	lea	r13, [rax+r15*8]
	call	cpu_to_le32@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rax, r15
	add	r15, 1
	cmp	rbp, rax
	jne	.L4
.L3:
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, QWORD PTR [rsp]
	xor	r8d, r8d
	mov	rcx, r14
	mov	rdi, r12
	call	pm8001_mpi_build_cmd@PLT
	test	eax, eax
	jne	.L17
.L5:
	mov	esi, DWORD PTR 8[rsp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pm8001_printk@PLT
	mov	rdi, r12
	mov	esi, eax
	call	PM8001_INIT_DBG@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 72
	.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
.L16:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pm8001_printk@PLT
	mov	rdi, r12
	mov	esi, eax
	call	PM8001_INIT_DBG@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, r12
	call	pm8001_tag_free@PLT
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pm8001_set_phy_profile_single, .-pm8001_set_phy_profile_single
	.comm	SAS_PHY_ANALOG_SETTINGS_PAGE,4,4
	.comm	OPC_INB_SET_PHY_PROFILE,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_pm80xx_hwi.c_pm8001_set_phy_profile_single.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid tag\000"
	.align	2
.LC1:
	.ascii	"PHY %d settings applied\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pm8001_set_phy_profile_single
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm8001_set_phy_profile_single, %function
pm8001_set_phy_profile_single:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	sub	sp, sp, #44
	ldr	r3, .L19
	mov	r9, r1
	add	r1, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r2
	mov	r8, r0
	str	ip, [sp, #24]
	str	ip, [sp, #28]
	str	ip, [sp, #32]
	bl	pm8001_tag_alloc
	cmp	r0, #0
	bne	.L16
.L2:
	ldr	r3, .L19+4
	ldr	r0, [sp, #20]
	ldr	fp, [r3]
	ldr	r3, [r8]
	str	r3, [sp, #12]
	bl	cpu_to_le32
	ldr	r3, .L19+8
	cmp	r6, #0
	ldr	r1, [r3]
	and	r3, r9, #255
	lsl	r1, r1, #8
	and	r1, r1, #3840
	orr	r1, r1, r3
	str	r0, [sp, #32]
	str	r1, [sp, #24]
	ble	.L3
	sub	r4, r7, #4
	add	r6, r4, r6, lsl #2
	rsb	r7, r7, #4
.L4:
	add	r5, r7, r4
	ldr	r0, [r4, #4]!
	ldr	r10, [sp, #28]
	bl	cpu_to_le32
	cmp	r4, r6
	str	r0, [r10, r5]
	bne	.L4
.L3:
	mov	r0, #0
	mov	r2, fp
	str	r0, [sp]
	ldr	r1, [sp, #12]
	mov	r0, r8
	add	r3, sp, #24
	bl	pm8001_mpi_build_cmd
	cmp	r0, #0
	bne	.L17
.L5:
	mov	r1, r9
	ldr	r0, .L19+12
	bl	pm8001_printk
	mov	r1, r0
	mov	r0, r8
	bl	PM8001_INIT_DBG
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r0, .L19+16
	bl	pm8001_printk
	mov	r1, r0
	mov	r0, r8
	bl	PM8001_INIT_DBG
	b	.L2
.L17:
	mov	r0, r8
	ldr	r1, [sp, #20]
	bl	pm8001_tag_free
	b	.L5
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	OPC_INB_SET_PHY_PROFILE
	.word	SAS_PHY_ANALOG_SETTINGS_PAGE
	.word	.LC1
	.word	.LC0
	.size	pm8001_set_phy_profile_single, .-pm8001_set_phy_profile_single
	.comm	SAS_PHY_ANALOG_SETTINGS_PAGE,4,4
	.comm	OPC_INB_SET_PHY_PROFILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
