	.file	"extr_mpt.c_mpt_read_cfg_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mpt_read_cfg_header: Get request failed!\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"read_cfg_header timed out\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Invalid Page Type %d Number %d Addr 0x%0x\n"
	.align 8
.LC3:
	.string	"mpt_read_cfg_header: Config Info Status %x\n"
	.text
	.p2align 4
	.globl	mpt_read_cfg_header
	.type	mpt_read_cfg_header, @function
mpt_read_cfg_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	mov	esi, r9d
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	mpt_get_request@PLT
	test	rax, rax
	je	.L13
	mov	rbp, rax
	mov	eax, DWORD PTR MPI_CONFIG_ACTION_PAGE_HEADER[rip]
	mov	DWORD PTR 16[rsp], ebx
	mov	r9d, r15d
	mov	DWORD PTR 20[rsp], r13d
	lea	rdx, 16[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	xor	ecx, ecx
	mov	DWORD PTR 56[rsp], eax
	xor	r8d, r8d
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], r14d
	mov	eax, DWORD PTR 136[rsp]
	push	rax
	.cfi_def_cfa_offset 144
	call	mpt_issue_cfg_req@PLT
	mov	r15d, eax
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	test	r15d, r15d
	jne	.L14
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR MPI_IOCSTATUS_MASK[rip]
	and	eax, edx
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L15
	mov	esi, DWORD PTR MPT_PRT_DEBUG[rip]
	mov	r9d, r14d
	mov	r8d, ebx
	mov	ecx, r13d
	lea	rdx, .LC2[rip]
	mov	rdi, r12
	call	mpt_lprt@PLT
	mov	r15d, DWORD PTR EINVAL[rip]
.L8:
	mov	rsi, rbp
	mov	rdi, r12
	call	mpt_free_request@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L15:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	xor	eax, eax
	call	mpt_prt@PLT
	mov	r15d, DWORD PTR EIO[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, 4
	call	bcopy@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	mpt_prt@PLT
	mov	r15d, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	mpt_prt@PLT
	mov	r15d, DWORD PTR ETIMEDOUT[rip]
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mpt_read_cfg_header, .-mpt_read_cfg_header
	.comm	MPT_PRT_DEBUG,4,4
	.comm	MPI_IOCSTATUS_MASK,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_HEADER,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,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.c_mpt_read_cfg_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mpt_read_cfg_header: Get request failed!\012\000"
	.align	2
.LC1:
	.ascii	"read_cfg_header timed out\012\000"
	.align	2
.LC2:
	.ascii	"Invalid Page Type %d Number %d Addr 0x%0x\012\000"
	.align	2
.LC3:
	.ascii	"mpt_read_cfg_header: Config Info Status %x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mpt_read_cfg_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpt_read_cfg_header, %function
mpt_read_cfg_header:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #48
	ldr	r6, [sp, #84]
	mov	r9, r3
	ldr	r3, .L17
	mov	r7, r1
	mov	r1, r6
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r5, r0
	ldr	r10, [sp, #80]
	bl	mpt_get_request
	subs	r4, r0, #0
	beq	.L13
	mov	r3, #0
	ldr	r1, [sp, #88]
	ldr	r2, .L17+4
	str	r1, [sp, #8]
	ldr	r0, [r2]
	mov	r1, r4
	stm	sp, {r3, r6}
	str	r0, [sp, #40]
	add	r2, sp, #20
	mov	r0, r5
	str	r8, [sp, #20]
	str	r7, [sp, #24]
	str	r9, [sp, #28]
	str	r3, [sp, #36]
	str	r3, [sp, #32]
	bl	mpt_issue_cfg_req
	subs	r6, r0, #0
	bne	.L14
	ldr	r3, .L17+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #128
	beq	.L5
	cmp	r3, #129
	bne	.L15
	stm	sp, {r8, r9}
	ldr	r2, .L17+12
	mov	r3, r7
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r2, .L17+16
	bl	mpt_lprt
	ldr	r3, .L17+20
	ldr	r6, [r3]
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	mpt_free_request
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r6
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r0, r5
	ldr	r1, .L17+24
	bl	mpt_prt
	ldr	r3, .L17+28
	ldr	r6, [r3]
	b	.L8
.L5:
	mov	r1, r10
	mov	r2, #4
	ldr	r0, [r4, #4]
	bl	bcopy
	b	.L8
.L13:
	mov	r0, r5
	ldr	r1, .L17+32
	bl	mpt_prt
	ldr	r3, .L17+36
	ldr	r6, [r3]
	b	.L1
.L14:
	mov	r0, r5
	ldr	r1, .L17+40
	bl	mpt_prt
	ldr	r3, .L17+44
	ldr	r6, [r3]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	MPI_CONFIG_ACTION_PAGE_HEADER
	.word	MPI_IOCSTATUS_MASK
	.word	MPT_PRT_DEBUG
	.word	.LC2
	.word	EINVAL
	.word	.LC3
	.word	EIO
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	ETIMEDOUT
	.size	mpt_read_cfg_header, .-mpt_read_cfg_header
	.comm	MPT_PRT_DEBUG,4,4
	.comm	MPI_IOCSTATUS_MASK,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_HEADER,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
