	.file	"extr_exprep.c_AcpiExPrepFieldValue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Null RegionNode"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Null Index Object during field prep"
	.text
	.p2align 4
	.globl	AcpiExPrepFieldValue
	.type	AcpiExPrepFieldValue, @function
AcpiExPrepFieldValue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ExPrepFieldValue[rip]
	call	ACPI_FUNCTION_TRACE@PLT
	mov	edi, DWORD PTR [rbx]
	cmp	edi, 129
	je	.L2
	mov	edi, DWORD PTR 20[rbx]
	test	edi, edi
	je	.L35
.L3:
	call	AcpiNsGetType@PLT
	cmp	QWORD PTR ACPI_TYPE_REGION[rip], rax
	mov	rdi, rax
	jne	.L4
.L31:
	mov	edi, DWORD PTR [rbx]
.L2:
	call	AcpiUtCreateInternalObject@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L36
.L5:
	mov	eax, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	edx, DWORD PTR 56[rbx]
	mov	esi, DWORD PTR 60[rbx]
	mov	DWORD PTR 144[rbp], eax
	mov	r8d, DWORD PTR 52[rbx]
	call	AcpiExPrepCommonFieldObject@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L37
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 129
	je	.L7
.L39:
	cmp	eax, 130
	je	.L8
	cmp	eax, 128
	je	.L38
.L9:
	mov	edi, DWORD PTR 4[rbx]
	call	AcpiNsGetType@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, rbp
	mov	rdx, rax
	call	AcpiNsAttachObject@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r12d, eax
	call	AcpiUtGetNodeName@PLT
	mov	edi, ebp
	call	ACPI_DEBUG_PRINT@PLT
	mov	rdi, rbp
	call	AcpiUtRemoveReference@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r12d
	pop	rbx
	.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
	jmp	return_ACPI_STATUS@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	AcpiUtGetTypeName@PLT
	mov	edi, eax
	call	ACPI_ERROR@PLT
	mov	edi, DWORD PTR AE_AML_OPERAND_TYPE[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rax, .LC0[rip]
	lea	edi, [rax]
	call	ACPI_ERROR@PLT
	mov	edi, DWORD PTR AE_AML_NO_OPERAND[rip]
	call	return_ACPI_STATUS@PLT
	mov	edi, DWORD PTR 20[rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, rbp
	call	AcpiUtDeleteObjectDesc@PLT
	mov	edi, r12d
	call	return_ACPI_STATUS@PLT
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 129
	jne	.L39
.L7:
	mov	edi, DWORD PTR 16[rbx]
	call	AcpiNsGetAttachedObject@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	QWORD PTR 8[rbp], rax
	call	AcpiNsGetAttachedObject@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L16
	cmp	QWORD PTR 8[rbp], 0
	je	.L16
.L17:
	call	AcpiUtAddReference@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	AcpiUtAddReference@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	r12d, DWORD PTR 32[rbp]
	call	ACPI_DIV_8@PLT
	mov	esi, r12d
	mov	edi, eax
	call	ACPI_ROUND_DOWN@PLT
	mov	edi, DWORD PTR 0[rbp]
	cdqe
	mov	QWORD PTR 16[rbp], rax
	call	ACPI_DEBUG_PRINT@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, DWORD PTR 20[rbx]
	call	AcpiNsGetAttachedObject@PLT
	mov	QWORD PTR 48[rbp], rax
	mov	rdi, rax
	mov	eax, DWORD PTR 48[rbx]
	mov	DWORD PTR 76[rbp], eax
	mov	rax, QWORD PTR 40[rbx]
	test	rax, rax
	je	.L10
	mov	r12, QWORD PTR [rax]
	mov	eax, DWORD PTR 88[r12]
	test	DWORD PTR AOPOBJ_DATA_VALID[rip], eax
	je	.L40
.L11:
	mov	eax, DWORD PTR 152[r12]
	mov	DWORD PTR 72[rbp], eax
	mov	eax, DWORD PTR 148[r12]
	mov	DWORD PTR 68[rbp], eax
.L13:
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 64[rbp], eax
	mov	eax, DWORD PTR ACPI_ADR_SPACE_EC[rip]
	cmp	DWORD PTR [rdi], eax
	je	.L41
.L14:
	call	AcpiUtAddReference@PLT
	mov	edi, DWORD PTR 48[rbp]
	call	ACPI_DEBUG_PRINT@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR 20[rbx]
	mov	DWORD PTR 128[rbp], eax
	call	AcpiNsGetAttachedObject@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	QWORD PTR 112[rbp], rax
	call	AcpiNsGetAttachedObject@PLT
	mov	rdi, QWORD PTR 112[rbp]
	mov	QWORD PTR 104[rbp], rax
	call	AcpiUtAddReference@PLT
	mov	rdi, QWORD PTR 104[rbp]
	call	AcpiUtAddReference@PLT
	mov	edi, DWORD PTR 104[rbp]
	call	ACPI_DEBUG_PRINT@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR ACPI_PARSE_OBJECT[rip]
	mov	r12, QWORD PTR 96[rbp]
	call	ACPI_CAST_PTR@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR ACPI_PARSE_OBJECT[rip]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 84[r12], eax
	call	ACPI_CAST_PTR@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 80[r12], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 36[rbx]
	test	eax, eax
	je	.L13
	mov	DWORD PTR 72[rbp], eax
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR 68[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rax, .LC1[rip]
	lea	edi, [rax]
	call	ACPI_ERROR@PLT
	mov	rdi, rbp
	call	AcpiUtDeleteObjectDesc@PLT
	mov	edi, DWORD PTR AE_AML_INTERNAL[rip]
	call	return_ACPI_STATUS@PLT
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, DWORD PTR AE_NO_MEMORY[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L41:
	mov	r8d, DWORD PTR 136[rbp]
	cmp	r8d, 8
	jle	.L14
	mov	edi, r8d
	call	ACPI_ROUND_BITS_UP_TO_BYTES@PLT
	cmp	rax, 255
	jg	.L33
	mov	DWORD PTR 140[rbp], eax
.L33:
	mov	rdi, QWORD PTR 48[rbp]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r12
	call	AcpiDsGetBufferArguments@PLT
	mov	edi, eax
	mov	r13d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L12
.L32:
	mov	rdi, QWORD PTR 48[rbp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	AcpiUtDeleteObjectDesc@PLT
	mov	edi, r13d
	call	return_ACPI_STATUS@PLT
	jmp	.L32
	.cfi_endproc
.LFE0:
	.size	AcpiExPrepFieldValue, .-AcpiExPrepFieldValue
	.comm	ExPrepFieldValue,4,4
	.comm	AOPOBJ_DATA_VALID,4,4
	.comm	AE_NO_MEMORY,4,4
	.comm	AE_INFO,4,4
	.comm	AE_AML_OPERAND_TYPE,4,4
	.comm	AE_AML_NO_OPERAND,4,4
	.comm	AE_AML_INTERNAL,4,4
	.comm	ACPI_TYPE_REGION,8,8
	.comm	ACPI_PARSE_OBJECT,4,4
	.comm	ACPI_DB_BFIELD,4,4
	.comm	ACPI_ADR_SPACE_EC,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_exprep.c_AcpiExPrepFieldValue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Null RegionNode\000"
	.align	2
.LC1:
	.ascii	"Null Index Object during field prep\000"
	.text
	.align	2
	.global	AcpiExPrepFieldValue
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiExPrepFieldValue, %function
AcpiExPrepFieldValue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L41
	sub	sp, sp, #12
	ldr	r0, [r3]
	bl	ACPI_FUNCTION_TRACE
	ldr	r0, [r4]
	cmp	r0, #129
	beq	.L2
	ldr	r0, [r4, #20]
	cmp	r0, #0
	beq	.L34
.L3:
	bl	AcpiNsGetType
	ldr	r3, .L41+4
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L4
.L31:
	ldr	r0, [r4]
.L2:
	bl	AcpiUtCreateInternalObject
	subs	r5, r0, #0
	beq	.L35
.L5:
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #48]
	str	r3, [r5, #100]
	ldr	r3, [r4, #8]
	str	r2, [sp]
	ldr	r2, [r4, #52]
	ldr	r1, [r4, #56]
	mov	r0, r5
	bl	AcpiExPrepCommonFieldObject
	mov	r6, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L36
	ldr	r3, [r4]
	cmp	r3, #129
	beq	.L7
.L38:
	cmp	r3, #130
	beq	.L8
	cmp	r3, #128
	beq	.L37
.L9:
	ldr	r6, [r4, #4]
	mov	r0, r6
	bl	AcpiNsGetType
	mov	r1, r5
	mov	r2, r0
	mov	r0, r6
	bl	AcpiNsAttachObject
	mov	r3, r0
	ldr	r0, [r4, #4]
	mov	r4, r3
	bl	AcpiUtGetNodeName
	mov	r0, r5
	bl	ACPI_DEBUG_PRINT
	mov	r0, r5
	bl	AcpiUtRemoveReference
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	return_ACPI_STATUS
.L4:
	bl	AcpiUtGetTypeName
	bl	ACPI_ERROR
	ldr	r3, .L41+8
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L31
.L34:
	ldr	r0, .L41+12
	bl	ACPI_ERROR
	ldr	r3, .L41+16
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	ldr	r0, [r4, #20]
	b	.L3
.L36:
	mov	r0, r5
	bl	AcpiUtDeleteObjectDesc
	mov	r0, r6
	bl	return_ACPI_STATUS
	ldr	r3, [r4]
	cmp	r3, #129
	bne	.L38
.L7:
	ldr	r0, [r4, #16]
	bl	AcpiNsGetAttachedObject
	mov	r3, r0
	ldr	r0, [r4, #12]
	str	r3, [r5, #4]
	bl	AcpiNsGetAttachedObject
	cmp	r0, #0
	str	r0, [r5]
	beq	.L16
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L16
.L17:
	bl	AcpiUtAddReference
	ldr	r0, [r5, #4]
	bl	AcpiUtAddReference
	ldr	r0, [r4, #8]
	bl	ACPI_DIV_8
	ldr	r1, [r5, #20]
	bl	ACPI_ROUND_DOWN
	mov	r3, r0
	ldr	r0, [r5]
	str	r3, [r5, #8]
	bl	ACPI_DEBUG_PRINT
	b	.L9
.L37:
	ldr	r0, [r4, #20]
	bl	AcpiNsGetAttachedObject
	ldr	r3, [r4, #40]
	ldr	r2, [r4, #44]
	cmp	r3, #0
	str	r0, [r5, #28]
	str	r2, [r5, #52]
	beq	.L10
	ldr	r6, [r3]
	ldr	r3, .L41+20
	ldr	r2, [r6, #64]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L39
.L11:
	ldr	r2, [r6, #108]
	ldr	r3, [r6, #104]
	str	r2, [r5, #48]
	str	r3, [r5, #44]
.L13:
	ldr	r3, .L41+24
	ldr	r1, [r0]
	ldr	r2, [r3]
	ldr	r3, [r4, #28]
	cmp	r1, r2
	str	r3, [r5, #40]
	beq	.L40
.L14:
	bl	AcpiUtAddReference
	ldr	r0, [r5, #28]
	bl	ACPI_DEBUG_PRINT
	b	.L9
.L8:
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #20]
	str	r3, [r5, #88]
	bl	AcpiNsGetAttachedObject
	mov	r3, r0
	ldr	r0, [r4, #16]
	str	r3, [r5, #76]
	bl	AcpiNsGetAttachedObject
	mov	r3, r0
	ldr	r0, [r5, #76]
	str	r3, [r5, #72]
	bl	AcpiUtAddReference
	ldr	r7, .L41+28
	ldr	r0, [r5, #72]
	bl	AcpiUtAddReference
	ldr	r0, [r5, #72]
	bl	ACPI_DEBUG_PRINT
	ldr	r1, [r4, #12]
	ldr	r0, [r7]
	ldr	r6, [r5, #68]
	bl	ACPI_CAST_PTR
	ldr	r3, [r0, #4]
	ldr	r1, [r4, #12]
	str	r3, [r6, #60]
	ldr	r0, [r7]
	bl	ACPI_CAST_PTR
	ldr	r3, [r0]
	str	r3, [r6, #56]
	b	.L9
.L10:
	ldr	r3, [r4, #36]
	cmp	r3, #0
	ldrne	r2, [r4, #32]
	strne	r3, [r5, #48]
	strne	r2, [r5, #44]
	b	.L13
.L16:
	ldr	r0, .L41+32
	bl	ACPI_ERROR
	mov	r0, r5
	bl	AcpiUtDeleteObjectDesc
	ldr	r3, .L41+36
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	ldr	r0, [r5]
	b	.L17
.L35:
	ldr	r3, .L41+40
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L5
.L40:
	ldr	r3, [r5, #92]
	cmp	r3, #8
	ble	.L14
	mov	r0, r3
	bl	ACPI_ROUND_BITS_UP_TO_BYTES
	mov	r3, r0
	cmp	r3, #255
	ldr	r0, [r5, #28]
	strle	r3, [r5, #96]
	b	.L14
.L39:
	mov	r0, r6
	bl	AcpiDsGetBufferArguments
	mov	r7, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L12
.L32:
	ldr	r0, [r5, #28]
	b	.L11
.L12:
	mov	r0, r5
	bl	AcpiUtDeleteObjectDesc
	mov	r0, r7
	bl	return_ACPI_STATUS
	b	.L32
.L42:
	.align	2
.L41:
	.word	ExPrepFieldValue
	.word	ACPI_TYPE_REGION
	.word	AE_AML_OPERAND_TYPE
	.word	.LC0
	.word	AE_AML_NO_OPERAND
	.word	AOPOBJ_DATA_VALID
	.word	ACPI_ADR_SPACE_EC
	.word	ACPI_PARSE_OBJECT
	.word	.LC1
	.word	AE_AML_INTERNAL
	.word	AE_NO_MEMORY
	.size	AcpiExPrepFieldValue, .-AcpiExPrepFieldValue
	.comm	ExPrepFieldValue,4,4
	.comm	AOPOBJ_DATA_VALID,4,4
	.comm	AE_NO_MEMORY,4,4
	.comm	AE_INFO,4,4
	.comm	AE_AML_OPERAND_TYPE,4,4
	.comm	AE_AML_NO_OPERAND,4,4
	.comm	AE_AML_INTERNAL,4,4
	.comm	ACPI_TYPE_REGION,4,4
	.comm	ACPI_PARSE_OBJECT,4,4
	.comm	ACPI_DB_BFIELD,4,4
	.comm	ACPI_ADR_SPACE_EC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
