	.file	"extr_dswstate.c_acpi_ds_obj_stack_pop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_ds_obj_stack_pop
	.type	acpi_ds_obj_stack_pop, @function
acpi_ds_obj_stack_pop:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR ds_obj_stack_pop[rip]
	call	ACPI_FUNCTION_NAME@PLT
	test	rbp, rbp
	jle	.L2
	mov	rax, QWORD PTR [rbx]
	mov	rdi, rax
	sub	rdi, rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR 8[rbx]
	sub	rax, 1
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR [rdx+rax*8], 0
	cmp	rax, rdi
	je	.L6
.L5:
	test	rax, rax
	jne	.L3
	xor	edi, edi
	call	ACPI_ERROR@PLT
	mov	eax, DWORD PTR AE_STACK_UNDERFLOW[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
.L6:
	call	ACPI_DEBUG_PRINT@PLT
	mov	eax, DWORD PTR AE_OK[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	acpi_ds_obj_stack_pop, .-acpi_ds_obj_stack_pop
	.comm	ds_obj_stack_pop,4,4
	.comm	AE_STACK_UNDERFLOW,4,4
	.comm	AE_OK,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_DB_EXEC,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_dswstate.c_acpi_ds_obj_stack_pop.c"
	.text
	.align	2
	.global	acpi_ds_obj_stack_pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ds_obj_stack_pop, %function
acpi_ds_obj_stack_pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L10
	mov	r4, r1
	ldr	r0, [r3]
	bl	ACPI_FUNCTION_NAME
	cmp	r5, #0
	ble	.L2
	ldr	r3, [r4]
	mov	r1, #0
	sub	r0, r3, r5
	b	.L5
.L3:
	sub	r3, r3, #1
	ldr	r2, [r4, #4]
	cmp	r3, r0
	str	r3, [r4]
	str	r1, [r2, r3, lsl #2]
	beq	.L6
.L5:
	cmp	r3, #0
	bne	.L3
	mov	r0, r3
	bl	ACPI_ERROR
	ldr	r3, .L10+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r4]
.L6:
	bl	ACPI_DEBUG_PRINT
	ldr	r3, .L10+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	ds_obj_stack_pop
	.word	AE_STACK_UNDERFLOW
	.word	AE_OK
	.size	acpi_ds_obj_stack_pop, .-acpi_ds_obj_stack_pop
	.comm	ds_obj_stack_pop,4,4
	.comm	AE_STACK_UNDERFLOW,4,4
	.comm	AE_OK,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_DB_EXEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
