	.file	"extr_smem.c_qcom_smem_partition_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bad partition magic %02x %02x %02x %02x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"bad host0 (%hu != %hu)\n"
.LC2:
	.string	"bad host1 (%hu != %hu)\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"bad partition size (%u != %u)\n"
	.align 8
.LC4:
	.string	"bad partition free uncached (%u > %u)\n"
	.text
	.p2align 4
	.type	qcom_smem_partition_header, @function
qcom_smem_partition_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 4[rsi]
	mov	r12, QWORD PTR [rax]
	call	le32_to_cpu@PLT
	mov	esi, DWORD PTR SMEM_PART_MAGIC[rip]
	mov	edx, 8
	lea	rax, [rax+rax*2]
	lea	r12, [r12+rax*8]
	mov	rdi, QWORD PTR 16[r12]
	call	memcmp@PLT
	test	rax, rax
	jne	.L9
	mov	edi, DWORD PTR 12[r12]
	call	le16_to_cpu@PLT
	cmp	rax, r13
	jne	.L10
	mov	edi, DWORD PTR 8[r12]
	call	le16_to_cpu@PLT
	cmp	rax, r14
	jne	.L11
	mov	edi, DWORD PTR 4[r12]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r14, rax
	call	le32_to_cpu@PLT
	mov	r13, rax
	cmp	rax, r14
	jne	.L12
	mov	edi, DWORD PTR [r12]
	call	le32_to_cpu@PLT
	cmp	rax, r13
	jg	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[r12]
	xor	r12d, r12d
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	mov	rcx, rax
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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	edi, DWORD PTR 8[r12]
	xor	r12d, r12d
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r14
	lea	rsi, .LC2[rip]
	mov	rcx, rax
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[r12]
	mov	edi, DWORD PTR [rbx]
	xor	r12d, r12d
	lea	rsi, .LC0[rip]
	movsx	rcx, DWORD PTR 4[rax]
	movsx	rdx, DWORD PTR [rax]
	mov	r9d, DWORD PTR 12[rax]
	mov	r8d, DWORD PTR 8[rax]
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	xor	r12d, r12d
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r14
	lea	rsi, .LC3[rip]
	mov	rcx, rax
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	xor	r12d, r12d
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rcx, r13
	lea	rsi, .LC4[rip]
	mov	rdx, rax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	qcom_smem_partition_header, .-qcom_smem_partition_header
	.comm	SMEM_PART_MAGIC,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_smem.c_qcom_smem_partition_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad partition magic %02x %02x %02x %02x\012\000"
	.align	2
.LC1:
	.ascii	"bad host0 (%hu != %hu)\012\000"
	.align	2
.LC2:
	.ascii	"bad host1 (%hu != %hu)\012\000"
	.align	2
.LC3:
	.ascii	"bad partition size (%u != %u)\012\000"
	.align	2
.LC4:
	.ascii	"bad partition free uncached (%u > %u)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qcom_smem_partition_header, %function
qcom_smem_partition_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	ldr	r1, [r0, #4]
	sub	sp, sp, #12
	mov	r5, r0
	ldr	r0, [r6, #4]
	ldr	r9, [r1]
	mov	r7, r2
	mov	r8, r3
	bl	le32_to_cpu
	ldr	r3, .L14
	add	ip, r0, r0, lsl #2
	add	r10, r9, ip, lsl #2
	mov	r2, #4
	ldr	r0, [r10, #16]
	ldr	r1, [r3]
	lsl	r4, ip, #2
	bl	memcmp
	subs	fp, r0, #0
	bne	.L9
	ldr	r0, [r10, #12]
	bl	le16_to_cpu
	cmp	r0, r7
	bne	.L10
	ldr	r0, [r10, #8]
	bl	le16_to_cpu
	cmp	r0, r8
	bne	.L11
	ldr	r0, [r10, #4]
	bl	le32_to_cpu
	mov	r8, r0
	ldr	r0, [r6]
	bl	le32_to_cpu
	cmp	r0, r8
	mov	r7, r0
	bne	.L12
	ldr	r0, [r9, r4]
	bl	le32_to_cpu
	cmp	r0, r7
	bgt	.L13
.L1:
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r0, [r10, #12]
	ldr	r4, [r5]
	bl	le16_to_cpu
	mov	r10, fp
	mov	r3, r0
	mov	r2, r7
	mov	r0, r4
	ldr	r1, .L14+4
	bl	dev_err
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r0, [r10, #8]
	ldr	r4, [r5]
	bl	le16_to_cpu
	mov	r10, fp
	mov	r3, r0
	mov	r2, r8
	mov	r0, r4
	ldr	r1, .L14+8
	bl	dev_err
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r1, [r10, #16]
	mov	r10, #0
	ldm	r1, {r2, r3}
	ldr	ip, [r1, #12]
	ldr	r0, [r5]
	str	ip, [sp, #4]
	ldr	r1, [r1, #8]
	str	r1, [sp]
	ldr	r1, .L14+12
	bl	dev_err
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r0, [r6]
	ldr	r4, [r5]
	bl	le32_to_cpu
	mov	r10, fp
	mov	r3, r0
	mov	r2, r8
	mov	r0, r4
	ldr	r1, .L14+16
	bl	dev_err
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r0, [r9, r4]
	ldr	r5, [r5]
	bl	le32_to_cpu
	mov	r3, r7
	mov	r2, r0
	ldr	r1, .L14+20
	mov	r0, r5
	mov	r10, fp
	bl	dev_err
	b	.L1
.L15:
	.align	2
.L14:
	.word	SMEM_PART_MAGIC
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.word	.LC4
	.size	qcom_smem_partition_header, .-qcom_smem_partition_header
	.comm	SMEM_PART_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
