	.file	"extr_ice_common.c_ice_aq_set_phy_cfg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid bit is set in ice_aqc_set_phy_cfg_data->caps : 0x%x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"phy_type_low = 0x%llx\n"
.LC2:
	.string	"phy_type_high = 0x%llx\n"
.LC3:
	.string	"caps = 0x%x\n"
.LC4:
	.string	"low_power_ctrl = 0x%x\n"
.LC5:
	.string	"eee_cap = 0x%x\n"
.LC6:
	.string	"eeer_value = 0x%x\n"
.LC7:
	.string	"link_fec_opt = 0x%x\n"
	.text
	.p2align 4
	.globl	ice_aq_set_phy_cfg
	.type	ice_aq_set_phy_cfg, @function
ice_aq_set_phy_cfg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ICE_ERR_PARAM[rip]
	test	rdx, rdx
	je	.L1
	mov	eax, DWORD PTR ICE_AQ_PHY_ENA_VALID_MASK[rip]
	mov	rbx, rcx
	movsx	rcx, DWORD PTR [rdx]
	mov	rbp, rdi
	mov	r13d, esi
	mov	r12, rdx
	not	eax
	test	eax, ecx
	jne	.L11
.L4:
	mov	esi, DWORD PTR ice_aqc_opc_set_phy_cfg[rip]
	mov	r14, rsp
	mov	rdi, r14
	call	ice_fill_dflt_direct_cmd_desc@PLT
	mov	edi, DWORD PTR ICE_AQ_FLAG_RD[rip]
	mov	DWORD PTR 4[rsp], r13d
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 44[r12]
	or	DWORD PTR [rsp], eax
	call	le64_to_cpu@PLT
	mov	esi, DWORD PTR ICE_DBG_LINK[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	mov	rcx, rax
	call	ice_debug@PLT
	mov	edi, DWORD PTR 40[r12]
	call	le64_to_cpu@PLT
	mov	esi, DWORD PTR ICE_DBG_LINK[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	mov	rcx, rax
	call	ice_debug@PLT
	movsx	rcx, DWORD PTR [r12]
	mov	esi, DWORD PTR ICE_DBG_LINK[rip]
	mov	rdi, rbp
	lea	rdx, .LC3[rip]
	call	ice_debug@PLT
	mov	rcx, QWORD PTR 8[r12]
	mov	esi, DWORD PTR ICE_DBG_LINK[rip]
	mov	rdi, rbp
	lea	rdx, .LC4[rip]
	call	ice_debug@PLT
	mov	rcx, QWORD PTR 16[r12]
	mov	esi, DWORD PTR ICE_DBG_LINK[rip]
	mov	rdi, rbp
	lea	rdx, .LC5[rip]
	call	ice_debug@PLT
	mov	rcx, QWORD PTR 24[r12]
	mov	esi, DWORD PTR ICE_DBG_LINK[rip]
	mov	rdi, rbp
	lea	rdx, .LC6[rip]
	call	ice_debug@PLT
	mov	rcx, QWORD PTR 32[r12]
	mov	esi, DWORD PTR ICE_DBG_LINK[rip]
	mov	rdi, rbp
	lea	rdx, .LC7[rip]
	call	ice_debug@PLT
	mov	r8, rbx
	mov	ecx, 48
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbp
	call	ice_aq_send_cmd@PLT
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR ICE_DBG_PHY[rip]
	lea	rdx, .LC0[rip]
	call	ice_debug@PLT
	mov	eax, DWORD PTR ICE_AQ_PHY_ENA_VALID_MASK[rip]
	and	DWORD PTR [r12], eax
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ice_aq_set_phy_cfg, .-ice_aq_set_phy_cfg
	.comm	ice_aqc_opc_set_phy_cfg,4,4
	.comm	ICE_ERR_PARAM,4,4
	.comm	ICE_DBG_PHY,4,4
	.comm	ICE_DBG_LINK,4,4
	.comm	ICE_AQ_PHY_ENA_VALID_MASK,4,4
	.comm	ICE_AQ_FLAG_RD,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_ice_common.c_ice_aq_set_phy_cfg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid bit is set in ice_aqc_set_phy_cfg_data->cap"
	.ascii	"s : 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"phy_type_low = 0x%llx\012\000"
	.align	2
.LC2:
	.ascii	"phy_type_high = 0x%llx\012\000"
	.align	2
.LC3:
	.ascii	"caps = 0x%x\012\000"
	.align	2
.LC4:
	.ascii	"low_power_ctrl = 0x%x\012\000"
	.align	2
.LC5:
	.ascii	"eee_cap = 0x%x\012\000"
	.align	2
.LC6:
	.ascii	"eeer_value = 0x%x\012\000"
	.align	2
.LC7:
	.ascii	"link_fec_opt = 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ice_aq_set_phy_cfg
	.syntax unified
	.arm
	.fpu softvfp
	.type	ice_aq_set_phy_cfg, %function
ice_aq_set_phy_cfg:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	ldr	r3, .L14
	sub	sp, sp, #24
	subs	r4, r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L11
	ldr	r8, .L14+4
	ldr	r2, [r4]
	ldr	r3, [r8]
	mov	r6, r1
	bics	r3, r2, r3
	mov	r5, r0
	bne	.L12
.L4:
	ldr	r3, .L14+8
	add	r0, sp, #12
	ldr	r1, [r3]
	bl	ice_fill_dflt_direct_cmd_desc
	ldr	r3, .L14+12
	str	r6, [sp, #16]
	ldr	r0, [r3]
	bl	cpu_to_le16
	ldr	r3, [sp, #12]
	ldr	r6, .L14+16
	orr	r3, r3, r0
	ldr	r0, [r4, #44]
	ldr	r8, [r6]
	str	r3, [sp, #12]
	bl	le64_to_cpu
	mov	r2, r0
	asr	r3, r0, #31
	mov	r1, r8
	stm	sp, {r2-r3}
	mov	r0, r5
	ldr	r2, .L14+20
	bl	ice_debug
	ldr	r0, [r4, #40]
	ldr	r8, [r6]
	bl	le64_to_cpu
	mov	r2, r0
	asr	r3, r0, #31
	stm	sp, {r2-r3}
	mov	r1, r8
	ldr	r2, .L14+24
	mov	r0, r5
	bl	ice_debug
	ldr	r2, [r4]
	ldr	r1, [r6]
	asr	r3, r2, #31
	stm	sp, {r2-r3}
	mov	r0, r5
	ldr	r2, .L14+28
	bl	ice_debug
	add	r3, r4, #8
	ldmia	r3, {r2-r3}
	ldr	r1, [r6]
	mov	r0, r5
	stm	sp, {r2-r3}
	ldr	r2, .L14+32
	bl	ice_debug
	add	r3, r4, #16
	ldmia	r3, {r2-r3}
	ldr	r1, [r6]
	mov	r0, r5
	stm	sp, {r2-r3}
	ldr	r2, .L14+36
	bl	ice_debug
	add	r3, r4, #24
	ldmia	r3, {r2-r3}
	ldr	r1, [r6]
	mov	r0, r5
	stm	sp, {r2-r3}
	ldr	r2, .L14+40
	bl	ice_debug
	add	r3, r4, #32
	ldmia	r3, {r2-r3}
	ldr	r1, [r6]
	mov	r0, r5
	stm	sp, {r2-r3}
	ldr	r2, .L14+44
	bl	ice_debug
	mov	r2, r4
	mov	r0, r5
	mov	r3, #48
	add	r1, sp, #12
	str	r7, [sp]
	bl	ice_aq_send_cmd
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	asr	r3, r2, #31
	stm	sp, {r2-r3}
	ldr	r1, .L14+48
	ldr	r2, .L14+52
	ldr	r1, [r1]
	bl	ice_debug
	ldr	r2, [r8]
	ldr	r3, [r4]
	and	r3, r3, r2
	str	r3, [r4]
	b	.L4
.L11:
	ldr	r3, .L14+56
	ldr	r0, [r3]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC8
	.word	ICE_AQ_PHY_ENA_VALID_MASK
	.word	ice_aqc_opc_set_phy_cfg
	.word	ICE_AQ_FLAG_RD
	.word	ICE_DBG_LINK
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	ICE_DBG_PHY
	.word	.LC0
	.word	ICE_ERR_PARAM
	.size	ice_aq_set_phy_cfg, .-ice_aq_set_phy_cfg
	.comm	ice_aqc_opc_set_phy_cfg,4,4
	.comm	ICE_ERR_PARAM,4,4
	.comm	ICE_DBG_PHY,4,4
	.comm	ICE_DBG_LINK,4,4
	.comm	ICE_AQ_PHY_ENA_VALID_MASK,4,4
	.comm	ICE_AQ_FLAG_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
