	.file	"extr_pci_root.c_acpi_pci_query_osc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	acpi_pci_query_osc, @function
acpi_pci_query_osc:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR OSC_QUERY_ENABLE[rip]
	and	esi, DWORD PTR OSC_PCI_SUPPORT_MASKS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR OSC_QUERY_DWORD[rip]
	or	esi, DWORD PTR [rdi]
	mov	rcx, QWORD PTR 8[rdi]
	mov	ebp, esi
	mov	DWORD PTR 12[rsp+rax*4], edx
	mov	rax, QWORD PTR OSC_SUPPORT_DWORD[rip]
	mov	rdx, QWORD PTR OSC_CONTROL_DWORD[rip]
	mov	DWORD PTR 12[rsp+rax*4], esi
	test	r13, r13
	je	.L2
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR OSC_PCI_CONTROL_MASKS[rip]
	lea	rsi, 12[rsp]
	mov	DWORD PTR 0[r13], eax
	or	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR 12[rsp+rdx*4], eax
	mov	edi, DWORD PTR [rcx]
	lea	rdx, 8[rsp]
	call	acpi_pci_run_osc@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_SUCCESS@PLT
	test	rax, rax
	jne	.L3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR [rbx], ebp
	mov	DWORD PTR 0[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR 4[rdi]
	lea	rsi, 12[rsp]
	mov	DWORD PTR 12[rsp+rdx*4], eax
	mov	edi, DWORD PTR [rcx]
	lea	rdx, 8[rsp]
	call	acpi_pci_run_osc@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_SUCCESS@PLT
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rbx], ebp
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_pci_query_osc, .-acpi_pci_query_osc
	.comm	OSC_SUPPORT_DWORD,8,8
	.comm	OSC_QUERY_ENABLE,4,4
	.comm	OSC_QUERY_DWORD,8,8
	.comm	OSC_PCI_SUPPORT_MASKS,4,4
	.comm	OSC_PCI_CONTROL_MASKS,4,4
	.comm	OSC_CONTROL_DWORD,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_pci_root.c_acpi_pci_query_osc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_pci_query_osc, %function
acpi_pci_query_osc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	ip, .L12
	ldr	r0, .L12+4
	ldr	r5, [ip]
	ldr	r3, .L12+8
	and	r1, r1, r5
	ldr	r5, [r4]
	ldr	ip, .L12+12
	sub	sp, sp, #28
	ldr	r0, [r0]
	ldr	r3, [r3]
	orr	r5, r1, r5
	add	r1, sp, #24
	add	r3, r1, r3, lsl #2
	add	r0, r1, r0, lsl #2
	subs	r6, r2, #0
	ldr	r1, .L12+16
	ldr	r2, [ip]
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	str	r2, [r0, #-16]
	ldr	r2, .L12+20
	str	r5, [r3, #-16]
	ldr	ip, [r4, #8]
	ldr	r3, [r2]
	beq	.L2
	ldr	r2, .L12+24
	ldr	r1, [r6]
	ldr	r2, [r2]
	add	r0, sp, #24
	and	r1, r1, r2
	str	r1, [r6]
	add	r3, r0, r3, lsl #2
	ldr	r0, [r4, #4]
	add	r2, sp, #4
	orr	r1, r0, r1
	str	r1, [r3, #-16]
	ldr	r0, [ip]
	add	r1, sp, #8
	bl	acpi_pci_run_osc
	mov	r7, r0
	bl	ACPI_SUCCESS
	cmp	r0, #0
	bne	.L3
.L1:
	ldr	r3, .L12+16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r3, [sp, #4]
	str	r5, [r4]
	str	r3, [r6]
	b	.L1
.L2:
	ldr	r2, [r4, #4]
	add	r1, sp, #24
	add	r3, r1, r3, lsl #2
	str	r2, [r3, #-16]
	ldr	r0, [ip]
	add	r2, sp, #4
	add	r1, sp, #8
	bl	acpi_pci_run_osc
	mov	r7, r0
	bl	ACPI_SUCCESS
	cmp	r0, #0
	strne	r5, [r4]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	OSC_PCI_SUPPORT_MASKS
	.word	OSC_QUERY_DWORD
	.word	OSC_SUPPORT_DWORD
	.word	OSC_QUERY_ENABLE
	.word	.LC0
	.word	OSC_CONTROL_DWORD
	.word	OSC_PCI_CONTROL_MASKS
	.size	acpi_pci_query_osc, .-acpi_pci_query_osc
	.comm	OSC_SUPPORT_DWORD,4,4
	.comm	OSC_QUERY_ENABLE,4,4
	.comm	OSC_QUERY_DWORD,4,4
	.comm	OSC_PCI_SUPPORT_MASKS,4,4
	.comm	OSC_PCI_CONTROL_MASKS,4,4
	.comm	OSC_CONTROL_DWORD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
