	.file	"extr_mpt_cam.c_mpt_update_spi_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mpt_update_spi_config[%d].page1: Requested Params 0x%08x\n"
	.align 8
.LC1:
	.string	"mpt_update_spi_config: write cur page failed\n"
	.text
	.p2align 4
	.type	mpt_update_spi_config, @function
mpt_update_spi_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	r13, esi
	lea	rdx, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	ecx, r13d
	mov	r12, r13
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR MPT_PRT_NEGOTIATION[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	r8d, DWORD PTR 4[rax+r13*8]
	call	mpt_lprt@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax+r13*8]
	mov	r13, rsp
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	call	host2mpt_config_page_scsi_device_1@PLT
	mov	ecx, 8
	mov	rdx, r13
	mov	esi, r12d
	mov	r8d, DWORD PTR FALSE[rip]
	mov	r9d, 5000
	mov	rdi, rbp
	call	mpt_write_cur_cfg_page@PLT
	test	eax, eax
	jne	.L9
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	mpt_prt@PLT
	mov	eax, -1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mpt_update_spi_config, .-mpt_update_spi_config
	.comm	MPT_PRT_NEGOTIATION,4,4
	.comm	FALSE,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_mpt_cam.c_mpt_update_spi_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mpt_update_spi_config[%d].page1: Requested Params 0"
	.ascii	"x%08x\012\000"
	.align	2
.LC1:
	.ascii	"mpt_update_spi_config: write cur page failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpt_update_spi_config, %function
mpt_update_spi_config:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r3, [r0]
	sub	sp, sp, #24
	add	r3, r3, r1, lsl #3
	ldr	r1, [r3, #4]
	ldr	r2, .L11
	ldr	ip, .L11+4
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r3, r4
	ldr	r2, .L11+8
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	mpt_lprt
	ldr	r3, [r5]
	lsl	r2, r4, #3
	add	r3, r3, r2
	add	r6, sp, #12
	ldm	r3, {r0, r1}
	stm	r6, {r0, r1}
	mov	r0, r6
	bl	host2mpt_config_page_scsi_device_1
	ldr	r2, .L11+12
	ldr	r3, .L11+16
	ldr	ip, [r2]
	mov	r1, r4
	str	r3, [sp, #4]
	mov	r2, r6
	mov	r0, r5
	mov	r3, #8
	str	ip, [sp]
	bl	mpt_write_cur_cfg_page
	cmp	r0, #0
	bne	.L9
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r5
	ldr	r1, .L11+20
	bl	mpt_prt
	mvn	r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	MPT_PRT_NEGOTIATION
	.word	.LC2
	.word	.LC0
	.word	FALSE
	.word	5000
	.word	.LC1
	.size	mpt_update_spi_config, .-mpt_update_spi_config
	.comm	MPT_PRT_NEGOTIATION,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
