	.file	"extr_battery.c_extract_package.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	extract_package, @function
extract_package:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR ACPI_TYPE_PACKAGE[rip]
	cmp	QWORD PTR [rsi], rax
	jne	.L2
	test	ecx, ecx
	jle	.L21
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14d, -1[rcx]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	QWORD PTR ACPI_TYPE_STRING[rip], r8
	je	.L7
	cmp	QWORD PTR ACPI_TYPE_BUFFER[rip], r8
	je	.L7
	cmp	QWORD PTR ACPI_TYPE_INTEGER[rip], r8
	je	.L22
	mov	QWORD PTR [rdi], 0
.L9:
	lea	rax, 1[rbx]
	add	rbp, 16
	cmp	r14, rbx
	je	.L23
.L15:
	mov	rbx, rax
.L12:
	cmp	DWORD PTR [r12], ebx
	jle	.L24
	movsx	rax, DWORD PTR 0[rbp]
	mov	rsi, rbx
	sal	rsi, 4
	add	rsi, QWORD PTR 8[r12]
	cmp	QWORD PTR 8[rbp], 0
	mov	r8, QWORD PTR [rsi]
	lea	rdi, 0[r13+rax*8]
	jne	.L25
	cmp	QWORD PTR ACPI_TYPE_INTEGER[rip], r8
	mov	eax, -1
	je	.L26
	mov	DWORD PTR [rdi], eax
.L27:
	lea	rax, 1[rbx]
	add	rbp, 16
	cmp	r14, rbx
	jne	.L15
.L23:
	add	rsp, 16
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	eax, DWORD PTR [rsi]
	mov	DWORD PTR [rdi], eax
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, 32
	mov	rsi, r8
	call	strncpy@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	eax, DWORD PTR EFAULT[rip]
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	eax
	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
.L22:
	.cfi_restore_state
	mov	edx, 4
	mov	QWORD PTR 8[rsp], rdi
	call	strncpy@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 32[rdi], 0
	jmp	.L9
.L21:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	extract_package, .-extract_package
	.comm	EFAULT,4,4
	.comm	ACPI_TYPE_STRING,8,8
	.comm	ACPI_TYPE_PACKAGE,8,8
	.comm	ACPI_TYPE_INTEGER,8,8
	.comm	ACPI_TYPE_BUFFER,8,8
	.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_battery.c_extract_package.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_package, %function
extract_package:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L21
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, [ip]
	mov	r5, r1
	ldr	r1, [r1]
	cmp	r1, ip
	bne	.L16
	cmp	r3, #0
	mov	r8, r3
	ble	.L4
	mov	r7, r0
	mov	r6, r2
	mov	r4, #0
	ldr	r9, .L21+4
	ldr	r10, .L21+8
	ldr	fp, .L21+12
	b	.L3
.L19:
	ldr	ip, [r10]
	cmp	ip, r1
	beq	.L8
	ldr	ip, [fp]
	cmp	ip, r1
	beq	.L8
	ldr	ip, [r9]
	cmp	ip, r1
	movne	r3, #0
	strne	r3, [r7, r2, lsl #2]
	beq	.L18
.L10:
	add	r4, r4, #1
	cmp	r8, r4
	beq	.L4
.L20:
	ldr	r1, [r5]
.L3:
	cmp	r1, r4
	ble	.L16
	add	r3, r6, #4
	ldr	r3, [r3, r4, lsl #3]
	ldr	ip, [r5, #4]
	ldr	r2, [r6, r4, lsl #3]
	cmp	r3, #0
	ldr	r1, [ip, r4, lsl #3]
	add	r0, ip, r4, lsl #3
	add	r3, r7, r2, lsl #2
	bne	.L19
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r1
	mvnne	r3, #0
	cmp	r8, r4
	str	r3, [r7, r2, lsl #2]
	bne	.L20
.L4:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L21+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, r3
	mov	r2, #32
	bl	strncpy
	b	.L10
.L18:
	mov	r1, r0
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	mov	r2, #0
	str	r2, [r0, #16]
	b	.L10
.L22:
	.align	2
.L21:
	.word	ACPI_TYPE_PACKAGE
	.word	ACPI_TYPE_INTEGER
	.word	ACPI_TYPE_STRING
	.word	ACPI_TYPE_BUFFER
	.word	EFAULT
	.size	extract_package, .-extract_package
	.comm	EFAULT,4,4
	.comm	ACPI_TYPE_STRING,4,4
	.comm	ACPI_TYPE_PACKAGE,4,4
	.comm	ACPI_TYPE_INTEGER,4,4
	.comm	ACPI_TYPE_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
