	.file	"extr_buspdo.c_Bus_PDO_QueryDeviceRelations.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Someone above is handling TargetDeviceRelation\n"
	.text
	.p2align 4
	.globl	Bus_PDO_QueryDeviceRelations
	.type	Bus_PDO_QueryDeviceRelations, @function
Bus_PDO_QueryDeviceRelations:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	PAGED_CODE@PLT
	mov	rdi, rbx
	call	IoGetCurrentIrpStackLocation@PLT
	cmp	DWORD PTR [rax], 128
	je	.L8
	mov	eax, DWORD PTR [rbx]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jne	.L9
.L3:
	mov	edi, DWORD PTR PagedPool[rip]
	mov	edx, 65
	mov	esi, 4
	call	ExAllocatePoolWithTag@PLT
	mov	r12, rax
	mov	eax, DWORD PTR STATUS_INSUFFICIENT_RESOURCES[rip]
	test	r12, r12
	je	.L1
	mov	edx, DWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[r12]
	mov	DWORD PTR [r12], 1
	mov	DWORD PTR [rax], edx
	mov	edi, DWORD PTR 0[rbp]
	call	ObReferenceObject@PLT
	mov	DWORD PTR 4[rbx], r12d
	mov	eax, DWORD PTR STATUS_SUCCESS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	esi, esi
	lea	rdi, .LC0[rip]
	call	ASSERTMSG@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	Bus_PDO_QueryDeviceRelations, .-Bus_PDO_QueryDeviceRelations
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INSUFFICIENT_RESOURCES,4,4
	.comm	PagedPool,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_buspdo.c_Bus_PDO_QueryDeviceRelations.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Someone above is handling TargetDeviceRelation\012\000"
	.text
	.align	2
	.global	Bus_PDO_QueryDeviceRelations
	.syntax unified
	.arm
	.fpu softvfp
	.type	Bus_PDO_QueryDeviceRelations, %function
Bus_PDO_QueryDeviceRelations:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	PAGED_CODE
	mov	r0, r4
	bl	IoGetCurrentIrpStackLocation
	ldr	r3, [r0]
	cmp	r3, #128
	beq	.L11
	ldr	r0, [r4]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L12
.L3:
	ldr	r3, .L14
	mov	r2, #65
	mov	r1, #4
	ldr	r0, [r3]
	bl	ExAllocatePoolWithTag
	subs	r6, r0, #0
	beq	.L13
	mov	r1, #1
	ldr	r2, [r5]
	ldr	r3, [r6, #4]
	str	r1, [r6]
	str	r2, [r3]
	ldr	r0, [r5]
	bl	ObReferenceObject
	ldr	r3, .L14+4
	str	r6, [r4, #4]
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r1, #0
	ldr	r0, .L14+12
	bl	ASSERTMSG
	b	.L3
.L15:
	.align	2
.L14:
	.word	PagedPool
	.word	STATUS_SUCCESS
	.word	STATUS_INSUFFICIENT_RESOURCES
	.word	.LC0
	.size	Bus_PDO_QueryDeviceRelations, .-Bus_PDO_QueryDeviceRelations
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INSUFFICIENT_RESOURCES,4,4
	.comm	PagedPool,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
