	.file	"extr_saquery.c_query_sa_cpi.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Query SA failed: %s\n"
	.text
	.p2align 4
	.type	query_sa_cpi, @function
query_sa_cpi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	xor	r8d, r8d
	xor	ecx, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 40
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR CLASS_PORT_INFO[rip]
	mov	esi, DWORD PTR IB_MAD_METHOD_GET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 32[rsp], rax
	xor	eax, eax
	lea	rbp, 8[rsp]
	mov	r9d, DWORD PTR ibd_sakey[rip]
	push	rbp
	.cfi_def_cfa_offset 80
	push	0
	.cfi_def_cfa_offset 88
	push	0
	.cfi_def_cfa_offset 96
	call	sa_query@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, QWORD PTR [rsp]
	cmp	rdi, QWORD PTR IB_SA_MAD_STATUS_SUCCESS[rip]
	jne	.L10
	mov	edi, DWORD PTR 8[rsp]
	xor	esi, esi
	call	sa_get_query_rec@PLT
	mov	edx, 4
	mov	rdi, r13
	mov	rsi, rax
	call	memcpy@PLT
.L5:
	mov	rdi, rbp
	call	sa_free_result_mad@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	call	sa_report_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, eax
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	call	fprintf@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	query_sa_cpi, .-query_sa_cpi
	.comm	stderr,4,4
	.comm	ibd_sakey,4,4
	.comm	IB_SA_MAD_STATUS_SUCCESS,8,8
	.comm	IB_MAD_METHOD_GET,4,4
	.comm	EIO,4,4
	.comm	CLASS_PORT_INFO,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_saquery.c_query_sa_cpi.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Query SA failed: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	query_sa_cpi, %function
query_sa_cpi:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, .L12
	sub	sp, sp, #40
	ldr	lr, [r1]
	ldr	r2, .L12+4
	ldr	r1, .L12+8
	str	lr, [sp, #4]
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r3, [sp]
	ldr	ip, .L12+12
	add	r6, sp, #28
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r6, [sp, #16]
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	bl	sa_query
	subs	r5, r0, #0
	bne	.L9
	ldr	r3, .L12+16
	ldr	r0, [sp, #28]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L10
	mov	r1, r5
	ldr	r0, [sp, #32]
	bl	sa_get_query_rec
	mov	r2, #4
	mov	r1, r0
	mov	r0, r4
	bl	memcpy
.L5:
	mov	r0, r6
	bl	sa_free_result_mad
.L1:
	ldr	r3, .L12+12
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	bl	sa_report_err
	b	.L5
.L9:
	ldr	r3, .L12+20
	ldr	r4, [r3]
	bl	strerror
	ldr	r1, .L12+24
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	ibd_sakey
	.word	CLASS_PORT_INFO
	.word	IB_MAD_METHOD_GET
	.word	.LC1
	.word	IB_SA_MAD_STATUS_SUCCESS
	.word	stderr
	.word	.LC0
	.size	query_sa_cpi, .-query_sa_cpi
	.comm	stderr,4,4
	.comm	ibd_sakey,4,4
	.comm	IB_SA_MAD_STATUS_SUCCESS,4,4
	.comm	IB_MAD_METHOD_GET,4,4
	.comm	EIO,4,4
	.comm	CLASS_PORT_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
