	.file	"extr_pm80xx_hwi.c_pm8001_set_phy_profile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phy settings completed\n"
	.text
	.p2align 4
	.globl	pm8001_set_phy_profile
	.type	pm8001_set_phy_profile, @function
pm8001_set_phy_profile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	cmp	QWORD PTR [rax], 0
	jle	.L2
	mov	rbp, rsi
	mov	r13, rdx
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR SAS_PHY_ANALOG_SETTINGS_PAGE[rip]
	mov	rcx, rbp
	mov	rdx, rbx
	mov	r8, r13
	mov	rdi, r12
	add	rbx, 1
	call	mpi_set_phy_profile_req@PLT
	mov	rax, QWORD PTR [r12]
	add	rbp, QWORD PTR PHY_DWORD_LENGTH[rip]
	cmp	QWORD PTR [rax], rbx
	jg	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	pm8001_printk@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PM8001_INIT_DBG@PLT
	.cfi_endproc
.LFE0:
	.size	pm8001_set_phy_profile, .-pm8001_set_phy_profile
	.comm	SAS_PHY_ANALOG_SETTINGS_PAGE,4,4
	.comm	PHY_DWORD_LENGTH,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_pm8001_set_phy_profile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phy settings completed\012\000"
	.text
	.align	2
	.global	pm8001_set_phy_profile
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm8001_set_phy_profile, %function
pm8001_set_phy_profile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r0
	ldr	r0, [r0]
	sub	sp, sp, #12
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L2
	mov	r5, r1
	mov	r7, r2
	mov	r4, #0
	ldr	r9, .L7
	ldr	r8, .L7+4
.L3:
	mov	r3, r5
	mov	r2, r4
	ldr	r1, [r9]
	mov	r0, r6
	str	r7, [sp]
	bl	mpi_set_phy_profile_req
	ldr	r3, [r6]
	add	r4, r4, #1
	ldr	r1, [r3]
	ldr	r3, [r8]
	cmp	r1, r4
	add	r5, r5, r3
	bgt	.L3
.L2:
	ldr	r0, .L7+8
	bl	pm8001_printk
	mov	r1, r0
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	PM8001_INIT_DBG
.L8:
	.align	2
.L7:
	.word	SAS_PHY_ANALOG_SETTINGS_PAGE
	.word	PHY_DWORD_LENGTH
	.word	.LC0
	.size	pm8001_set_phy_profile, .-pm8001_set_phy_profile
	.comm	SAS_PHY_ANALOG_SETTINGS_PAGE,4,4
	.comm	PHY_DWORD_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
