	.file	"extr_property.c___acpi_node_get_property_reference.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__acpi_node_get_property_reference
	.type	__acpi_node_get_property_reference, @function
__acpi_node_get_property_reference:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR 16[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	acpi_device_data_of_node@PLT
	test	rax, rax
	je	.L10
	mov	edx, DWORD PTR ACPI_TYPE_ANY[rip]
	mov	rdi, rax
	lea	rcx, 40[rsp]
	mov	rsi, r12
	call	acpi_data_get_property@PLT
	test	eax, eax
	jne	.L45
	mov	rax, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR ACPI_TYPE_LOCAL_REFERENCE[rip]
	movsx	r8, DWORD PTR [rax]
	cmp	r8d, edi
	je	.L46
	cmp	r8, QWORD PTR ACPI_TYPE_PACKAGE[rip]
	jne	.L26
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, rbp
	jbe	.L10
	mov	rbx, QWORD PTR 8[rax]
	sal	rdx, 4
	lea	r13, [rbx+rdx]
	cmp	rbx, r13
	jnb	.L10
	lea	rax, 48[rsp]
	xor	r14d, r14d
	mov	QWORD PTR 24[rsp], rax
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	eax, DWORD PTR ACPI_TYPE_INTEGER[rip]
	jne	.L26
	cmp	r14, rbp
	je	.L10
	add	rbx, 16
.L22:
	add	r14, 1
	cmp	rbx, r13
	jnb	.L10
	mov	edi, DWORD PTR ACPI_TYPE_LOCAL_REFERENCE[rip]
.L28:
	mov	eax, DWORD PTR [rbx]
	cmp	eax, edi
	jne	.L11
	mov	rsi, QWORD PTR 24[rsp]
	call	acpi_bus_get_device@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L26
	mov	rdi, QWORD PTR 48[rsp]
	lea	r15, 16[rbx]
	call	acpi_fwnode_handle@PLT
	mov	rdi, rax
	cmp	r13, r15
	ja	.L13
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	call	acpi_fwnode_get_named_child_node@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L26
	add	r15, 16
	cmp	r13, r15
	jbe	.L14
.L13:
	mov	esi, DWORD PTR [r15]
	cmp	esi, DWORD PTR ACPI_TYPE_STRING[rip]
	je	.L16
	cmp	r13, r15
	jbe	.L14
	cmp	QWORD PTR 8[rsp], 0
	je	.L14
	mov	r10d, DWORD PTR ACPI_TYPE_INTEGER[rip]
	lea	rax, 16[r15]
	mov	rbx, r15
	xor	esi, esi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L47:
	mov	rbx, rax
	add	rsi, 1
	add	rax, 16
	cmp	rbx, r13
	jnb	.L20
	cmp	QWORD PTR 8[rsp], rsi
	jbe	.L20
.L18:
	mov	r9d, DWORD PTR [rbx]
	cmp	r10d, r9d
	je	.L47
	cmp	DWORD PTR ACPI_TYPE_LOCAL_REFERENCE[rip], r9d
	jne	.L26
.L20:
	cmp	QWORD PTR NR_FWNODE_REFERENCE_ARGS[rip], rsi
	jb	.L26
.L29:
	cmp	r14, rbp
	jne	.L22
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rcx], rdi
	mov	QWORD PTR [rcx], rsi
	test	rsi, rsi
	je	.L1
	mov	rdx, rsi
	mov	rcx, QWORD PTR 8[rcx]
	mov	rax, r15
	sal	rdx, 4
	add	rdx, r15
.L24:
	mov	esi, DWORD PTR [rax]
	add	rax, 16
	add	rcx, 4
	mov	DWORD PTR -4[rcx], esi
	cmp	rax, rdx
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L48
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L45:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	cmp	r12d, eax
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L46:
	test	rbp, rbp
	jne	.L26
	lea	rsi, 48[rsp]
	mov	edi, r8d
	call	acpi_bus_get_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	add	eax, DWORD PTR ENODEV[rip]
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 48[rsp]
	call	acpi_fwnode_handle@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR [rcx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rbx, r15
	xor	esi, esi
	jmp	.L29
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__acpi_node_get_property_reference, .-__acpi_node_get_property_reference
	.comm	NR_FWNODE_REFERENCE_ARGS,8,8
	.comm	ENOENT,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	ACPI_TYPE_STRING,4,4
	.comm	ACPI_TYPE_PACKAGE,8,8
	.comm	ACPI_TYPE_LOCAL_REFERENCE,4,4
	.comm	ACPI_TYPE_INTEGER,4,4
	.comm	ACPI_TYPE_ANY,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_property.c___acpi_node_get_property_reference.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__acpi_node_get_property_reference
	.syntax unified
	.arm
	.fpu softvfp
	.type	__acpi_node_get_property_reference, %function
__acpi_node_get_property_reference:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	ldr	r3, .L43
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [sp, #64]
	mov	r4, r1
	mov	r7, r2
	str	r3, [sp]
	bl	acpi_device_data_of_node
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L43+4
	mov	r1, r4
	ldr	r2, [r3]
	add	r3, sp, #12
	bl	acpi_data_get_property
	subs	r5, r0, #0
	bne	.L40
	ldr	r3, [sp, #12]
	ldr	r9, .L43+8
	ldr	r8, [r3]
	ldr	r0, [r9]
	cmp	r8, r0
	beq	.L41
	ldr	r2, .L43+12
	ldr	r2, [r2]
	cmp	r8, r2
	bne	.L25
	cmp	r7, r8
	bcs	.L10
	ldr	r4, [r3, #4]
	add	r8, r4, r8, lsl #3
	cmp	r4, r8
	bcs	.L10
	ldr	r10, .L43+16
	b	.L27
.L11:
	ldr	r1, [r10]
	cmp	r3, r1
	bne	.L25
	cmp	r7, r5
	beq	.L10
	add	r4, r4, #8
.L21:
	cmp	r4, r8
	add	r5, r5, #1
	bcs	.L10
	ldr	r0, [r9]
.L27:
	ldr	r3, [r4]
	cmp	r3, r0
	bne	.L11
	add	r1, sp, #16
	bl	acpi_bus_get_device
	subs	r3, r0, #0
	str	r3, [sp, #4]
	bne	.L25
	ldr	r0, [sp, #16]
	add	fp, r4, #8
	bl	acpi_fwnode_handle
	cmp	r8, fp
	bhi	.L13
	b	.L14
.L16:
	bl	acpi_fwnode_get_named_child_node
	cmp	r0, #0
	beq	.L25
	add	fp, fp, #8
	cmp	r8, fp
	bls	.L14
.L13:
	ldr	r3, .L43+20
	ldr	r1, [fp]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L16
	cmp	r6, #0
	cmpne	r8, fp
	bls	.L14
	mov	r4, fp
	mov	r3, #0
	ldr	lr, [r10]
	add	r1, fp, #8
.L18:
	ldr	ip, [r4]
	cmp	lr, ip
	bne	.L17
	cmp	r1, r8
	add	r3, r3, #1
	movcs	r2, #0
	movcc	r2, #1
	cmp	r6, r3
	movls	r2, #0
	cmp	r2, #0
	mov	r4, r1
	add	r1, r1, #8
	bne	.L18
.L19:
	ldr	r2, .L43+24
	ldr	r1, [r2]
	cmp	r1, r3
	bcc	.L25
.L28:
	cmp	r7, r5
	bne	.L21
	ldr	r1, [sp]
	cmp	r3, #0
	mov	r2, r3
	ldr	r6, [sp, #4]
	str	r0, [r1, #8]
	str	r3, [r1]
	beq	.L1
	mov	r3, #0
	ldr	r1, [r1, #4]
	sub	r1, r1, #4
.L23:
	ldr	r0, [fp, r3, lsl #3]
	add	r3, r3, #1
	cmp	r3, r2
	str	r0, [r1, #4]!
	bne	.L23
.L1:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	ldr	r3, .L43+28
	ldr	r6, [r3]
	cmn	r5, r6
	rsb	r6, r6, #0
	bne	.L1
.L10:
	ldr	r3, .L43+32
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L41:
	cmp	r7, #0
	bne	.L25
	mov	r0, r8
	add	r1, sp, #16
	bl	acpi_bus_get_device
	subs	r6, r0, #0
	beq	.L7
	ldr	r3, .L43+36
	ldr	r3, [r3]
	cmn	r6, r3
	bne	.L1
.L25:
	ldr	r3, .L43+28
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L7:
	ldr	r0, [sp, #16]
	bl	acpi_fwnode_handle
	ldr	r3, [sp]
	str	r6, [r3]
	str	r0, [r3, #8]
	b	.L1
.L17:
	ldr	r1, [r9]
	cmp	r1, ip
	beq	.L19
	b	.L25
.L14:
	mov	r4, fp
	mov	r3, #0
	b	.L28
.L42:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	.LC0
	.word	ACPI_TYPE_ANY
	.word	ACPI_TYPE_LOCAL_REFERENCE
	.word	ACPI_TYPE_PACKAGE
	.word	ACPI_TYPE_INTEGER
	.word	ACPI_TYPE_STRING
	.word	NR_FWNODE_REFERENCE_ARGS
	.word	EINVAL
	.word	ENOENT
	.word	ENODEV
	.size	__acpi_node_get_property_reference, .-__acpi_node_get_property_reference
	.comm	NR_FWNODE_REFERENCE_ARGS,4,4
	.comm	ENOENT,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	ACPI_TYPE_STRING,4,4
	.comm	ACPI_TYPE_PACKAGE,4,4
	.comm	ACPI_TYPE_LOCAL_REFERENCE,4,4
	.comm	ACPI_TYPE_INTEGER,4,4
	.comm	ACPI_TYPE_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
