	.file	"extr_cmd.c_ibv_cmd_query_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ibv_cmd_query_device
	.type	ibv_cmd_query_device, @function
ibv_cmd_query_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	mov	rdi, rbp
	mov	r8d, 4
	mov	rsi, rbx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR QUERY_DEVICE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r15, 4[rsp]
	mov	rcx, r15
	call	IBV_INIT_CMD_RESP@PLT
	mov	edi, DWORD PTR [r14]
	mov	rdx, rbx
	mov	rsi, rbp
	call	write@PLT
	cmp	rax, rbx
	je	.L2
	mov	eax, DWORD PTR errno[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, 4
	mov	rdi, r15
	call	VALGRIND_MAKE_MEM_DEFINED@PLT
	mov	edi, DWORD PTR [r12]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r12
	call	copy_query_dev_fields@PLT
	xor	eax, eax
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ibv_cmd_query_device, .-ibv_cmd_query_device
	.comm	errno,4,4
	.comm	QUERY_DEVICE,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_cmd.c_ibv_cmd_query_device.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ibv_cmd_query_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	ibv_cmd_query_device, %function
ibv_cmd_query_device:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r9, #4
	mov	r4, r3
	mov	r6, r0
	sub	sp, sp, #20
	ldr	r5, [sp, #48]
	ldr	r3, .L8
	ldr	ip, .L8+4
	str	r9, [sp]
	mov	r7, r1
	mov	r8, r2
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	add	r3, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	IBV_INIT_CMD_RESP
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r6]
	bl	write
	cmp	r0, r5
	beq	.L2
	ldr	r3, .L8+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r1, r9
	add	r0, sp, #8
	bl	VALGRIND_MAKE_MEM_DEFINED
	mov	r2, r9
	mov	r1, #0
	ldr	r0, [r7]
	bl	memset
	mov	r2, r8
	mov	r0, r7
	add	r1, sp, #8
	bl	copy_query_dev_fields
	mov	r0, #0
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	QUERY_DEVICE
	.word	.LC0
	.word	errno
	.size	ibv_cmd_query_device, .-ibv_cmd_query_device
	.comm	errno,4,4
	.comm	QUERY_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
