	.file	"extr_dsutils.c_acpi_ds_create_operands.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_ds_create_operands
	.type	acpi_ds_create_operands, @function
acpi_ds_create_operands:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -80[rbp], rsi
	mov	r13d, DWORD PTR AE_OK[rip]
	mov	rsi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ACPI_OBJ_NUM_OPERANDS[rip]
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	mov	r14, QWORD PTR -80[rbp]
	mov	edi, DWORD PTR ds_create_operands[rip]
	mov	rbx, rsp
	movsx	r12, DWORD PTR [r15]
	mov	rsi, r14
	call	ACPI_FUNCTION_TRACE_PTR@PLT
	test	r14, r14
	je	.L5
	mov	r13, r14
	xor	edx, edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[r15]
	lea	ecx, 1[rdx]
	mov	QWORD PTR [rbx+r12*8], r13
	mov	DWORD PTR -68[rbp], ecx
	mov	QWORD PTR [rax+r12*8], 0
	mov	rax, QWORD PTR 0[r13]
	add	r12, 1
	test	rax, rax
	je	.L20
	movsx	rdx, DWORD PTR -68[rbp]
	mov	r13, rax
.L7:
	cmp	DWORD PTR ACPI_OBJ_NUM_OPERANDS[rip], r12d
	movsx	r14, r12d
	jg	.L6
	mov	edi, DWORD PTR AE_BAD_DATA[rip]
	mov	DWORD PTR -68[rbp], edx
	call	return_ACPI_STATUS@PLT
	movsx	rdx, DWORD PTR -68[rbp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, r14
	sub	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR -80[rbp]
	lea	r12d, -1[r14]
	call	ACPI_DEBUG_PRINT@PLT
	cmp	r14, QWORD PTR -88[rbp]
	je	.L9
	mov	r13, QWORD PTR -8[rbx+r14*8]
	sub	r14, 1
.L8:
	mov	QWORD PTR 8[r15], r14
	mov	rsi, r13
	mov	rdi, r15
	mov	edx, r14d
	mov	r12d, r14d
	call	acpi_ds_create_operand@PLT
	mov	edi, eax
	mov	r13d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L21
.L10:
	mov	edi, DWORD PTR -68[rbp]
	mov	rsi, r15
	call	acpi_ds_obj_stack_pop_and_delete@PLT
	mov	edi, r12d
	call	ACPI_EXCEPTION@PLT
	mov	edi, r13d
	call	return_ACPI_STATUS@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L5:
	.cfi_restore_state
	mov	DWORD PTR -68[rbp], 0
	sub	r12d, 1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, r13d
	call	return_ACPI_STATUS@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_ds_create_operands, .-acpi_ds_create_operands
	.comm	ds_create_operands,4,4
	.comm	AE_OK,4,4
	.comm	AE_INFO,4,4
	.comm	AE_BAD_DATA,4,4
	.comm	ACPI_OBJ_NUM_OPERANDS,4,4
	.comm	ACPI_DB_DISPATCH,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_dsutils.c_acpi_ds_create_operands.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acpi_ds_create_operands
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ds_create_operands, %function
acpi_ds_create_operands:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r6, r0
	ldr	r3, .L15
	ldr	r0, .L15+4
	ldr	r2, [r3]
	ldr	ip, .L15+8
	lsl	r2, r2, #2
	add	r2, r2, #7
	ldr	r3, .L15+12
	bic	r2, r2, #7
	mov	r10, r1
	sub	sp, sp, r2
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r4, [r6]
	ldr	r5, [ip]
	bl	ACPI_FUNCTION_TRACE_PTR
	mov	r3, sp
	cmp	r10, #0
	str	r3, [fp, #-52]
	beq	.L2
	mov	r2, #0
	add	r9, r3, r4, lsl #2
	mov	r7, r2
	mov	r5, r10
	ldr	r3, .L15
	sub	r9, r9, #4
	b	.L4
.L3:
	ldr	r0, [r5]
	ldr	ip, [r6, #8]
	cmp	r0, #0
	str	r7, [ip, r4, lsl #2]
	str	r5, [r9, #4]!
	add	r8, r2, #1
	add	ip, r4, #1
	beq	.L12
	mov	r5, r0
	mov	r2, r8
	mov	r4, ip
.L4:
	ldr	r0, [r3]
	cmp	r0, r4
	bgt	.L3
	ldr	r3, .L15+16
	str	r2, [fp, #-48]
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	ldr	r3, .L15
	ldr	r2, [fp, #-48]
	b	.L3
.L12:
	ldr	r1, [fp, #-52]
	sub	r3, r4, #-1073741823
	sub	r9, r4, #1
	add	r7, r1, r3, lsl #2
	sub	r9, r9, r2
	b	.L5
.L13:
	mov	r0, r10
	sub	r4, r4, #1
	bl	ACPI_DEBUG_PRINT
	cmp	r4, r9
	beq	.L6
	ldr	r5, [r7], #-4
.L5:
	mov	r1, r5
	mov	r2, r4
	mov	r0, r6
	str	r4, [r6, #4]
	bl	acpi_ds_create_operand
	mov	r5, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	beq	.L13
.L7:
	mov	r1, r6
	mov	r0, r8
	bl	acpi_ds_obj_stack_pop_and_delete
	mov	r0, r4
	bl	ACPI_EXCEPTION
	mov	r0, r5
	bl	return_ACPI_STATUS
	ldr	r3, .L15+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, #0
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r8, r10
	sub	r9, r4, #1
.L6:
	mov	r0, r5
	mov	r4, r9
	bl	return_ACPI_STATUS
	b	.L7
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	ACPI_OBJ_NUM_OPERANDS
	.word	ds_create_operands
	.word	AE_OK
	.word	.LC0
	.word	AE_BAD_DATA
	.size	acpi_ds_create_operands, .-acpi_ds_create_operands
	.comm	ds_create_operands,4,4
	.comm	AE_OK,4,4
	.comm	AE_INFO,4,4
	.comm	AE_BAD_DATA,4,4
	.comm	ACPI_OBJ_NUM_OPERANDS,4,4
	.comm	ACPI_DB_DISPATCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
