	.file	"extr_ibaddr.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gid_show"
.LC1:
	.string	"show gid address only"
.LC2:
	.string	"lid_show"
.LC3:
	.string	"show lid range only"
.LC4:
	.string	"Lid_show"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"show lid range (in decimal) only"
	.section	.rodata.str1.1
.LC6:
	.string	"\t\t# local port's address"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"32\t\t# show lid range and gid of lid 32"
	.align 8
.LC8:
	.string	"-G 0x8f1040023\t# same but using guid address"
	.section	.rodata.str1.1
.LC9:
	.string	"-l 32\t\t# show lid range only"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"-L 32\t\t# show decimal lid range only"
	.align 8
.LC11:
	.string	"-g 32\t\t# show gid address only"
	.section	.rodata.str1.1
.LC12:
	.string	"KL"
.LC13:
	.string	"Failed to open '%s' port '%d'"
	.section	.rodata.str1.8
	.align 8
.LC14:
	.string	"can't resolve destination port %s"
	.section	.rodata.str1.1
.LC15:
	.string	"can't resolve self port %s"
	.section	.rodata.str1.8
	.align 8
.LC16:
	.string	"can't resolve requested address"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, 19
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	sub	rsp, 288
	.cfi_def_cfa_offset 320
	movdqa	xmm0, XMMWORD PTR .LC17[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 280[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR IB_SMI_CLASS[rip]
	lea	rdi, 104[rsp]
	mov	DWORD PTR 12[rsp], 0
	movaps	XMMWORD PTR 256[rsp], xmm0
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR IB_SMI_DIRECT_CLASS[rip]
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR IB_SA_CLASS[rip]
	mov	DWORD PTR 272[rsp], 1564370025
	mov	DWORD PTR 28[rsp], eax
	xor	eax, eax
	rep stosq
	lea	rax, .LC0[rip]
	mov	BYTE PTR 104[rsp], 103
	mov	edi, ebx
	mov	QWORD PTR 96[rsp], rax
	lea	rax, .LC1[rip]
	lea	rcx, .LC12[rip]
	mov	DWORD PTR 128[rsp], eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR 136[rsp], rax
	lea	rax, .LC3[rip]
	mov	DWORD PTR 168[rsp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR 176[rsp], rax
	lea	rax, .LC5[rip]
	mov	DWORD PTR 208[rsp], eax
	lea	rax, .LC6[rip]
	mov	QWORD PTR 32[rsp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR 40[rsp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR 48[rsp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR 56[rsp], rax
	lea	rax, .LC10[rip]
	mov	BYTE PTR 144[rsp], 108
	mov	BYTE PTR 184[rsp], 76
	mov	BYTE PTR 276[rsp], 0
	mov	QWORD PTR 64[rsp], rax
	lea	rax, .LC11[rip]
	mov	r9d, DWORD PTR process_opt[rip]
	mov	QWORD PTR 72[rsp], rax
	lea	rax, 32[rsp]
	mov	QWORD PTR 80[rsp], 0
	push	rax
	.cfi_def_cfa_offset 328
	lea	rax, 264[rsp]
	push	rax
	.cfi_def_cfa_offset 336
	lea	r8, 112[rsp]
	call	ibdiag_process_opts@PLT
	mov	rax, QWORD PTR optind[rip]
	pop	rsi
	.cfi_def_cfa_offset 328
	pop	rdi
	.cfi_def_cfa_offset 320
	sub	ebx, eax
	lea	r12, 0[rbp+rax*8]
	cmp	ebx, 1
	jle	.L2
	mov	rdi, QWORD PTR 8[r12]
	xor	edx, edx
	xor	esi, esi
	call	strtoul@PLT
	mov	DWORD PTR 16[rsp], eax
.L2:
	mov	eax, DWORD PTR show_lid[rip]
	or	eax, DWORD PTR show_gid[rip]
	jne	.L3
	mov	DWORD PTR show_gid[rip], 1
	mov	DWORD PTR show_lid[rip], 1
.L3:
	mov	edi, DWORD PTR ibd_ca[rip]
	mov	esi, DWORD PTR ibd_ca_port[rip]
	lea	rdx, 20[rsp]
	mov	ecx, 3
	call	mad_rpc_open_port@PLT
	mov	DWORD PTR srcport[rip], eax
	mov	edi, eax
	test	eax, eax
	je	.L13
.L4:
	mov	esi, DWORD PTR ibd_mkey[rip]
	call	smp_mkey_set@PLT
	test	ebx, ebx
	je	.L5
	lea	rbp, 12[rsp]
	push	rax
	.cfi_def_cfa_offset 328
	mov	rcx, QWORD PTR [r12]
	mov	eax, DWORD PTR srcport[rip]
	mov	r9d, DWORD PTR ibd_sm_id[rip]
	mov	rdx, rbp
	mov	r8d, DWORD PTR ibd_dest_type[rip]
	mov	esi, DWORD PTR ibd_ca_port[rip]
	push	rax
	.cfi_def_cfa_offset 336
	mov	edi, DWORD PTR ibd_ca[rip]
	call	resolve_portid_str@PLT
	pop	rdx
	.cfi_def_cfa_offset 328
	pop	rcx
	.cfi_def_cfa_offset 320
	test	rax, rax
	js	.L14
.L7:
	mov	ecx, DWORD PTR show_gid[rip]
	mov	edx, DWORD PTR show_lid[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR 16[rsp]
	call	ib_resolve_addr@PLT
	test	rax, rax
	js	.L15
.L9:
	mov	edi, DWORD PTR srcport[rip]
	call	mad_rpc_close_port@PLT
	xor	edi, edi
	call	exit@PLT
	mov	rax, QWORD PTR 280[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 288
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	lea	rbp, 12[rsp]
	mov	esi, DWORD PTR ibd_ca_port[rip]
	xor	r8d, r8d
	lea	rcx, 16[rsp]
	mov	edi, DWORD PTR ibd_ca[rip]
	mov	rdx, rbp
	call	resolve_self@PLT
	test	rax, rax
	jns	.L7
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC15[rip]
	xor	eax, eax
	call	IBEXIT@PLT
	jmp	.L7
.L13:
	mov	edx, DWORD PTR ibd_ca_port[rip]
	mov	esi, DWORD PTR ibd_ca[rip]
	lea	rdi, .LC13[rip]
	xor	eax, eax
	call	IBEXIT@PLT
	mov	edi, DWORD PTR srcport[rip]
	jmp	.L4
.L15:
	lea	rdi, .LC16[rip]
	xor	eax, eax
	call	IBEXIT@PLT
	jmp	.L9
.L14:
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC14[rip]
	xor	eax, eax
	call	IBEXIT@PLT
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	srcport,4,4
	.comm	show_lid,4,4
	.comm	show_gid,4,4
	.comm	process_opt,4,4
	.comm	optind,8,8
	.comm	ibd_sm_id,4,4
	.comm	ibd_mkey,4,4
	.comm	ibd_dest_type,4,4
	.comm	ibd_ca_port,4,4
	.comm	ibd_ca,4,4
	.comm	IB_SMI_DIRECT_CLASS,4,4
	.comm	IB_SMI_CLASS,4,4
	.comm	IB_SA_CLASS,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC17:
	.quad	8242849988702125147
	.quad	8459867213109751903
	.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_ibaddr.c_main.c"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\011\011# local port's address\000"
	.align	2
.LC1:
	.ascii	"32\011\011# show lid range and gid of lid 32\000"
	.align	2
.LC2:
	.ascii	"-G 0x8f1040023\011# same but using guid address\000"
	.align	2
.LC3:
	.ascii	"-l 32\011\011# show lid range only\000"
	.align	2
.LC4:
	.ascii	"-L 32\011\011# show decimal lid range only\000"
	.align	2
.LC5:
	.ascii	"-g 32\011\011# show gid address only\000"
	.text
	.section	.rodata.str1.4
	.align	2
.LC7:
	.ascii	"gid_show\000"
	.align	2
.LC8:
	.ascii	"show gid address only\000"
	.align	2
.LC9:
	.ascii	"lid_show\000"
	.align	2
.LC10:
	.ascii	"show lid range only\000"
	.align	2
.LC11:
	.ascii	"Lid_show\000"
	.align	2
.LC12:
	.ascii	"show lid range (in decimal) only\000"
	.align	2
.LC15:
	.ascii	"KL\000"
	.align	2
.LC16:
	.ascii	"Failed to open '%s' port '%d'\000"
	.align	2
.LC17:
	.ascii	"can't resolve destination port %s\000"
	.align	2
.LC18:
	.ascii	"can't resolve self port %s\000"
	.align	2
.LC19:
	.ascii	"can't resolve requested address\000"
	.align	2
.LC13:
	.ascii	"[<lid|dr_path|guid>]\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC20:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #0
	mov	r7, #76
	mov	r10, #103
	mov	r9, #108
	mov	r4, r0
	mov	r5, r1
	ldr	r2, .L17
	ldr	r1, .L17+4
	ldr	r3, .L17+8
	sub	sp, sp, #180
	ldr	lr, [r1]
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r6, .L17+12
	mov	r2, r7
	mov	r1, r8
	add	r0, sp, #72
	ldr	r6, [r6]
	str	r6, [sp, #172]
	mov	r6,#0
	str	lr, [sp, #28]
	str	ip, [sp, #32]
	str	r3, [sp, #36]
	str	r8, [sp, #20]
	str	r8, [sp, #24]
	bl	memset
	ldr	ip, .L17+16
	add	r6, sp, #148
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	r6!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	ldr	lr, .L17+20
	str	r0, [r6], #4
	add	ip, sp, #40
	strb	r1, [r6]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	ldr	r3, .L17+24
	ldr	r6, .L17+28
	ldr	lr, .L17+32
	str	r3, [sp, #68]
	ldr	r3, .L17+36
	str	r6, [sp, #84]
	str	lr, [sp, #88]
	str	r3, [sp, #104]
	ldr	lr, .L17+40
	ldr	r3, .L17+44
	ldr	r6, .L17+48
	strb	r7, [sp, #112]
	str	lr, [sp, #124]
	strb	r10, [sp, #72]
	strb	r9, [sp, #92]
	str	r6, [sp, #108]
	stm	ip, {r0, r1, r2}
	ldr	r2, [r3]
	add	lr, sp, #40
	add	ip, sp, #148
	add	r3, sp, #68
	mov	r0, r4
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r1, r5
	ldr	r3, .L17+52
	mov	r2, r8
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	bl	ibdiag_process_opts
	ldr	r3, .L17+56
	ldr	r7, [r3]
	sub	r4, r4, r7
	cmp	r4, #1
	add	r3, r5, r7, lsl #2
	ble	.L2
	mov	r2, r8
	mov	r1, r8
	ldr	r0, [r3, #4]
	bl	strtoul
	str	r0, [sp, #24]
.L2:
	ldr	r9, .L17+60
	ldr	r10, .L17+64
	ldr	r2, [r9]
	ldr	r3, [r10]
	ldr	r8, .L17+68
	orrs	r3, r2, r3
	moveq	r3, #1
	streq	r3, [r10]
	streq	r3, [r9]
	ldr	r3, .L17+72
	ldr	r1, [r8]
	ldr	r0, [r3]
	add	r2, sp, #28
	mov	r3, #3
	bl	mad_rpc_open_port
	ldr	r6, .L17+76
	cmp	r0, #0
	str	r0, [r6]
	beq	.L13
.L4:
	ldr	r3, .L17+80
	ldr	r1, [r3]
	bl	smp_mkey_set
	cmp	r4, #0
	beq	.L5
	ldr	r2, .L17+84
	ldr	r3, .L17+88
	ldr	ip, [r2]
	ldr	r0, .L17+72
	ldr	r2, [r3]
	ldr	r1, [r8]
	ldr	r3, [r6]
	ldr	r0, [r0]
	stm	sp, {r2, ip}
	str	r3, [sp, #8]
	add	fp, sp, #20
	mov	r2, fp
	ldr	r3, [r5, r7, lsl #2]
	bl	resolve_portid_str
	cmp	r0, #0
	blt	.L14
.L7:
	mov	r0, fp
	ldr	r3, [r10]
	ldr	r2, [r9]
	ldr	r1, [sp, #24]
	bl	ib_resolve_addr
	cmp	r0, #0
	blt	.L15
.L9:
	ldr	r0, [r6]
	bl	mad_rpc_close_port
	mov	r0, #0
	bl	exit
	ldr	r3, .L17+12
	ldr	r2, [r3]
	ldr	r3, [sp, #172]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, #0
	add	sp, sp, #180
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L17+72
	str	r4, [sp]
	add	fp, sp, #20
	ldr	r0, [r3]
	mov	r2, fp
	ldr	r1, [r8]
	add	r3, sp, #24
	bl	resolve_self
	cmp	r0, #0
	bge	.L7
	ldr	r1, [r5, r7, lsl #2]
	ldr	r0, .L17+92
	bl	IBEXIT
	b	.L7
.L13:
	ldr	r3, .L17+72
	ldr	r2, [r8]
	ldr	r1, [r3]
	ldr	r0, .L17+96
	bl	IBEXIT
	ldr	r0, [r6]
	b	.L4
.L15:
	ldr	r0, .L17+100
	bl	IBEXIT
	b	.L9
.L14:
	ldr	r1, [r5, r7, lsl #2]
	ldr	r0, .L17+104
	bl	IBEXIT
	b	.L7
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	IB_SMI_DIRECT_CLASS
	.word	IB_SMI_CLASS
	.word	IB_SA_CLASS
	.word	.LC20
	.word	.LC13
	.word	.LANCHOR0
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC12
	.word	process_opt
	.word	.LC11
	.word	.LC15
	.word	optind
	.word	show_lid
	.word	show_gid
	.word	ibd_ca_port
	.word	ibd_ca
	.word	srcport
	.word	ibd_mkey
	.word	ibd_sm_id
	.word	ibd_dest_type
	.word	.LC18
	.word	.LC16
	.word	.LC19
	.word	.LC17
	.size	main, .-main
	.comm	srcport,4,4
	.comm	show_lid,4,4
	.comm	show_gid,4,4
	.comm	process_opt,4,4
	.comm	optind,4,4
	.comm	ibd_sm_id,4,4
	.comm	ibd_mkey,4,4
	.comm	ibd_dest_type,4,4
	.comm	ibd_ca_port,4,4
	.comm	ibd_ca,4,4
	.comm	IB_SMI_DIRECT_CLASS,4,4
	.comm	IB_SMI_CLASS,4,4
	.comm	IB_SA_CLASS,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC14:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
