	.file	"extr_psobject.c_AcpiPsCreateOp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AcpiPsCreateOp
	.type	AcpiPsCreateOp, @function
AcpiPsCreateOp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	mov	rsi, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR PsCreateOp[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	call	ACPI_FUNCTION_TRACE_PTR@PLT
	mov	rdi, rbp
	call	AcpiPsGetAmlOpcode@PLT
	cmp	QWORD PTR AE_CTRL_PARSE_CONTINUE[rip], rax
	mov	r12, rax
	je	.L33
.L2:
	mov	rdi, r12
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L34
.L3:
	mov	rdi, QWORD PTR 0[rbp]
	call	AcpiPsGetOpcodeInfo@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, rbx
	mov	QWORD PTR 32[rbp], rax
	call	AcpiPsAllocOp@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L35
.L4:
	mov	rax, QWORD PTR 32[rbp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR AML_NAMED[rip], eax
	jne	.L36
.L5:
	test	DWORD PTR AML_CREATE[rip], eax
	je	.L7
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[rax], rbx
	mov	QWORD PTR 32[rax], 0
.L7:
	mov	rax, QWORD PTR AML_BANK_FIELD_OP[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L8
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[rax], rbx
	mov	QWORD PTR 32[rax], 0
.L8:
	lea	rdi, 24[rbp]
	call	AcpiPsGetParentScope@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rbx, rax
	mov	rdi, rax
	call	AcpiPsAppendArg@PLT
	test	rbx, rbx
	je	.L10
	mov	rdi, QWORD PTR [rbx]
	call	AcpiPsGetOpcodeInfo@PLT
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR AML_HAS_TARGET[rip], edx
	jne	.L37
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR AML_INCREMENT_OP[rip]
	je	.L13
	cmp	rax, QWORD PTR AML_DECREMENT_OP[rip]
	je	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L14
	mov	rdx, QWORD PTR 8[rsp]
	lea	rsi, 8[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 0[r13], rdx
	mov	QWORD PTR 16[rbp], rdx
	call	rax
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	mov	rdx, rax
	call	AcpiPsNextParseState@PLT
	cmp	QWORD PTR AE_CTRL_PENDING[rip], rax
	mov	r12, rax
	je	.L38
.L14:
	mov	rdi, r12
	call	return_ACPI_STATUS@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	mov	r12, QWORD PTR AE_CTRL_PARSE_PENDING[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L37:
	mov	edi, DWORD PTR 4[rax]
	call	AcpiPsGetArgumentCount@PLT
	cmp	QWORD PTR 8[rbx], rax
	jle	.L10
.L13:
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR ACPI_PARSEOP_TARGET[rip]
	or	DWORD PTR 16[rax], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdx, QWORD PTR 8[rsp]
	lea	rcx, 16[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	AcpiPsBuildNamedOp@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12, rax
	call	AcpiPsFreeOp@PLT
	mov	rdi, r12
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L40
.L6:
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR AE_OK[rip]
	mov	QWORD PTR 0[r13], rax
	call	return_ACPI_STATUS@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, r12
	call	return_ACPI_STATUS@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, rax
	call	return_ACPI_STATUS@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, QWORD PTR AE_NO_MEMORY[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r12
	call	return_ACPI_STATUS@PLT
	jmp	.L6
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	AcpiPsCreateOp, .-AcpiPsCreateOp
	.comm	PsCreateOp,4,4
	.comm	AcpiGbl_DisasmFlag,8,8
	.comm	AML_NAMED,4,4
	.comm	AML_INCREMENT_OP,8,8
	.comm	AML_HAS_TARGET,4,4
	.comm	AML_EXTERNAL_OP,8,8
	.comm	AML_DECREMENT_OP,8,8
	.comm	AML_CREATE,4,4
	.comm	AML_BANK_FIELD_OP,8,8
	.comm	AE_OK,8,8
	.comm	AE_NO_MEMORY,8,8
	.comm	AE_NOT_FOUND,8,8
	.comm	AE_CTRL_PENDING,8,8
	.comm	AE_CTRL_PARSE_PENDING,8,8
	.comm	AE_CTRL_PARSE_CONTINUE,8,8
	.comm	ACPI_PARSEOP_TARGET,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_psobject.c_AcpiPsCreateOp.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AcpiPsCreateOp
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiPsCreateOp, %function
AcpiPsCreateOp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r3, #0
	ldr	r0, .L40
	mov	r7, r2
	ldr	r2, .L40+4
	sub	sp, sp, #20
	mov	r6, r1
	ldr	r0, [r0]
	mov	r1, r4
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #8]
	bl	ACPI_FUNCTION_TRACE_PTR
	mov	r0, r4
	bl	AcpiPsGetAmlOpcode
	ldr	r3, .L40+8
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L33
.L2:
	mov	r0, r5
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L34
.L3:
	ldr	r0, [r4]
	bl	AcpiPsGetOpcodeInfo
	mov	r1, r6
	str	r0, [r4, #16]
	ldr	r0, [r4]
	bl	AcpiPsAllocOp
	cmp	r0, #0
	str	r0, [sp, #4]
	beq	.L35
.L4:
	ldr	r3, [r4, #16]
	ldr	r2, .L40+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L36
.L5:
	ldr	r2, .L40+16
	add	r0, r4, #12
	ldr	r2, [r2]
	tst	r3, r2
	movne	r2, #0
	ldrne	r3, [sp, #4]
	strne	r2, [r3, #16]
	strne	r6, [r3, #12]
	ldr	r3, .L40+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r2, #0
	ldreq	r3, [sp, #4]
	streq	r6, [r3, #12]
	streq	r2, [r3, #16]
	bl	AcpiPsGetParentScope
	mov	r6, r0
	ldr	r1, [sp, #4]
	bl	AcpiPsAppendArg
	cmp	r6, #0
	beq	.L10
	ldr	r0, [r6]
	bl	AcpiPsGetOpcodeInfo
	ldr	r3, .L40+24
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L37
	ldr	r2, .L40+28
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L13
	ldr	r2, .L40+32
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L13
.L10:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L14
	ldr	r2, [sp, #4]
	add	r1, sp, #4
	str	r2, [r7]
	mov	r0, r4
	str	r2, [r4, #8]
	blx	r3
	ldr	r1, [sp, #4]
	mov	r2, r0
	mov	r0, r4
	bl	AcpiPsNextParseState
	ldr	r3, .L40+36
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	ldreq	r3, .L40+40
	ldreq	r5, [r3]
.L14:
	mov	r0, r5
	bl	return_ACPI_STATUS
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L37:
	ldr	r0, [r0, #4]
	bl	AcpiPsGetArgumentCount
	ldr	r3, [r6, #4]
	cmp	r3, r0
	ble	.L10
.L13:
	ldr	r2, [sp, #4]
	ldr	r1, .L40+44
	ldr	r3, [r2, #8]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2, #8]
	b	.L10
.L36:
	mov	r1, r6
	ldr	r2, [sp, #4]
	add	r3, sp, #8
	mov	r0, r4
	bl	AcpiPsBuildNamedOp
	mov	r5, r0
	ldr	r0, [sp, #4]
	bl	AcpiPsFreeOp
	mov	r0, r5
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L39
.L6:
	ldr	r3, .L40+48
	ldr	r2, [sp, #8]
	ldr	r0, [r3]
	str	r2, [r7]
	bl	return_ACPI_STATUS
	ldr	r3, [r4, #16]
	ldr	r3, [r3]
	b	.L5
.L34:
	mov	r0, r5
	bl	return_ACPI_STATUS
	b	.L3
.L33:
	bl	return_ACPI_STATUS
	b	.L2
.L35:
	ldr	r3, .L40+52
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L4
.L39:
	mov	r0, r5
	bl	return_ACPI_STATUS
	b	.L6
.L38:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	PsCreateOp
	.word	.LC0
	.word	AE_CTRL_PARSE_CONTINUE
	.word	AML_NAMED
	.word	AML_CREATE
	.word	AML_BANK_FIELD_OP
	.word	AML_HAS_TARGET
	.word	AML_INCREMENT_OP
	.word	AML_DECREMENT_OP
	.word	AE_CTRL_PENDING
	.word	AE_CTRL_PARSE_PENDING
	.word	ACPI_PARSEOP_TARGET
	.word	AE_OK
	.word	AE_NO_MEMORY
	.size	AcpiPsCreateOp, .-AcpiPsCreateOp
	.comm	PsCreateOp,4,4
	.comm	AcpiGbl_DisasmFlag,4,4
	.comm	AML_NAMED,4,4
	.comm	AML_INCREMENT_OP,4,4
	.comm	AML_HAS_TARGET,4,4
	.comm	AML_EXTERNAL_OP,4,4
	.comm	AML_DECREMENT_OP,4,4
	.comm	AML_CREATE,4,4
	.comm	AML_BANK_FIELD_OP,4,4
	.comm	AE_OK,4,4
	.comm	AE_NO_MEMORY,4,4
	.comm	AE_NOT_FOUND,4,4
	.comm	AE_CTRL_PENDING,4,4
	.comm	AE_CTRL_PARSE_PENDING,4,4
	.comm	AE_CTRL_PARSE_CONTINUE,4,4
	.comm	ACPI_PARSEOP_TARGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
