	.file	"extr_nvdimm.c_read_label_area_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	read_label_area_size, @function
read_label_area_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	nvdimm_root_get_acpi_handle@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	ecx, DWORD PTR INTEL_NVDIMM_DSM_GET_LABEL_SIZE[rip]
	mov	r9, rsp
	xor	r8d, r8d
	mov	eax, DWORD PTR ACPI_ALLOCATE_BUFFER[rip]
	mov	edx, DWORD PTR INTEL_NVDIMM_DSM_REV[rip]
	lea	rsi, intel_nvdimm_dsm_uuid[rip]
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR [rsp], eax
	call	acpi_EvaluateDSM@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	mov	edi, eax
	call	ACPI_SUCCESS@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L4
	test	rdi, rdi
	je	.L1
	cmp	DWORD PTR [rsp], 23
	jbe	.L6
	mov	rax, QWORD PTR ACPI_TYPE_BUFFER[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L16
.L6:
	call	AcpiOsFree@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	test	rdi, rdi
	je	.L1
	call	AcpiOsFree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	DWORD PTR 8[rdi], 11
	jle	.L6
	mov	rax, QWORD PTR 16[rdi]
	xor	r12d, r12d
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rbx], rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR [rbx], rax
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_label_area_size, .-read_label_area_size
	.comm	intel_nvdimm_dsm_uuid,4,4
	.comm	INTEL_NVDIMM_DSM_REV,4,4
	.comm	INTEL_NVDIMM_DSM_GET_LABEL_SIZE,4,4
	.comm	ENXIO,4,4
	.comm	ENODEV,4,4
	.comm	ACPI_TYPE_BUFFER,8,8
	.comm	ACPI_ALLOCATE_BUFFER,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_nvdimm.c_read_label_area_size.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_label_area_size, %function
read_label_area_size:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L20
	sub	sp, sp, #24
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	nvdimm_root_get_acpi_handle
	cmp	r0, #0
	beq	.L16
	mov	r5, #0
	ldr	r1, .L20+4
	ldr	r3, .L20+8
	ldr	r2, .L20+12
	ldr	ip, [r1]
	str	r5, [sp]
	add	r1, sp, #12
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r1, [sp, #4]
	ldr	r1, .L20+16
	str	ip, [sp, #12]
	str	r5, [sp, #16]
	bl	acpi_EvaluateDSM
	ldr	r3, .L20+20
	ldr	r6, [r3]
	bl	ACPI_SUCCESS
	cmp	r0, r5
	ldr	r0, [sp, #16]
	bne	.L17
	cmp	r0, #0
	bne	.L6
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r6
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	cmp	r0, r5
	beq	.L1
	ldr	r3, [sp, #12]
	cmp	r3, #11
	bls	.L6
	ldr	r3, .L20+24
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
.L6:
	bl	AcpiOsFree
	b	.L1
.L16:
	ldr	r3, .L20+28
	ldr	r6, [r3]
	b	.L1
.L19:
	ldr	r3, [r0, #4]
	cmp	r3, #11
	ble	.L6
	ldr	r3, [r0, #8]
	mov	r6, r5
	ldr	r2, [r3, #4]
	str	r2, [r4, #4]
	ldr	r3, [r3, #8]
	str	r3, [r4]
	b	.L6
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	ACPI_ALLOCATE_BUFFER
	.word	INTEL_NVDIMM_DSM_GET_LABEL_SIZE
	.word	INTEL_NVDIMM_DSM_REV
	.word	intel_nvdimm_dsm_uuid
	.word	ENXIO
	.word	ACPI_TYPE_BUFFER
	.word	ENODEV
	.size	read_label_area_size, .-read_label_area_size
	.comm	intel_nvdimm_dsm_uuid,4,4
	.comm	INTEL_NVDIMM_DSM_REV,4,4
	.comm	INTEL_NVDIMM_DSM_GET_LABEL_SIZE,4,4
	.comm	ENXIO,4,4
	.comm	ENODEV,4,4
	.comm	ACPI_TYPE_BUFFER,4,4
	.comm	ACPI_ALLOCATE_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
