	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.4(%rip), %r13
	leaq	_main.long_options(%rip), %r14
	movq	_verbose@GOTPCREL(%rip), %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r15)
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_getopt_long
	cmpl	$118, %eax
	je	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$104, %eax
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$100, %eax
	jne	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strdup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$105, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jg	LBB0_2
## %bb.9:
	movq	(%r12), %rdi
	callq	_usage
	movl	$1, %r13d
	jmp	LBB0_36
LBB0_10:
	cmpl	$108, %eax
	jne	LBB0_22
## %bb.11:
	leaq	-48(%rbp), %rdi
	callq	_ibv_get_device_list
	testq	%rax, %rax
	je	LBB0_34
## %bb.12:
	movq	%rax, %r14
	movl	-48(%rbp), %esi
	cmpl	$1, %esi
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.7(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.6(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_printf
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	movq	%r14, %rbx
	addq	$8, %rbx
	leaq	L_.str.9(%rip), %r15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	callq	_ibv_get_device_name
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_14
LBB0_15:
	movl	$10, %edi
	callq	_putchar
	movq	%r14, %rdi
	jmp	LBB0_29
LBB0_16:
	xorl	%edi, %edi
	callq	_ibv_get_device_list
	testq	%rax, %rax
	je	LBB0_34
## %bb.17:
	movq	%rax, %r12
	movq	(%rax), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_23
## %bb.18:
	testq	%rdi, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_32
## %bb.19:
	movq	%r12, %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	callq	_ibv_get_device_name
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_20
	jmp	LBB0_32
LBB0_22:
	movq	(%r12), %rdi
	callq	_usage
	jmp	LBB0_35
LBB0_23:
	testq	%rdi, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_33
## %bb.24:
	movq	%r12, %rbx
	addq	$8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %esi
	callq	_print_hca_cap
	orl	%eax, %r13d
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_25
## %bb.26:
	testq	%r14, %r14
	je	LBB0_28
LBB0_27:
	movq	%r14, %rdi
	callq	_free
LBB0_28:
	movq	%r12, %rdi
LBB0_29:
	callq	_ibv_free_device_list
	jmp	LBB0_36
LBB0_30:
	movq	-8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	movl	%r15d, %esi
	callq	_print_hca_cap
	movl	%eax, %r13d
	testq	%r14, %r14
	jne	LBB0_27
	jmp	LBB0_28
LBB0_32:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_35
LBB0_33:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_35
LBB0_34:
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
LBB0_35:
	movl	$-1, %r13d
LBB0_36:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @main.long_options
_main.long_options:
	.quad	L_.str
	.long	1                               ## 0x1
	.byte	100                             ## 0x64
	.space	3
	.quad	L_.str.1
	.long	1                               ## 0x1
	.byte	105                             ## 0x69
	.space	3
	.quad	L_.str.2
	.long	0                               ## 0x0
	.byte	108                             ## 0x6c
	.space	3
	.quad	L_.str.3
	.long	0                               ## 0x0
	.byte	118                             ## 0x76
	.space	3
	.space	16

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib-dev"

L_.str.1:                               ## @.str.1
	.asciz	"ib-port"

L_.str.2:                               ## @.str.2
	.asciz	"list"

L_.str.3:                               ## @.str.3
	.asciz	"verbose"

L_.str.4:                               ## @.str.4
	.asciz	"d:i:lv"

	.comm	_optarg,4,2                     ## @optarg
	.comm	_verbose,4,2                    ## @verbose
L_.str.5:                               ## @.str.5
	.asciz	"Failed to get IB devices list"

L_.str.6:                               ## @.str.6
	.asciz	"%d HCA%s found:\n"

L_.str.7:                               ## @.str.7
	.asciz	"s"

L_.str.8:                               ## @.str.8
	.space	1

L_.str.9:                               ## @.str.9
	.asciz	"\t%s\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.11:                              ## @.str.11
	.asciz	"IB device '%s' wasn't found\n"

L_.str.12:                              ## @.str.12
	.asciz	"No IB devices found\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x22, x0
	mov	x19, #0
	mov	w20, #0
Lloh0:
	adrp	x23, l_.str.4@PAGE
Lloh1:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh2:
	adrp	x25, _verbose@GOTPAGE
Lloh3:
	ldr	x25, [x25, _verbose@GOTPAGEOFF]
	mov	w26, #1
Lloh4:
	adrp	x27, _optarg@GOTPAGE
Lloh5:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
Lloh6:
	adrp	x24, _main.long_options@PAGE
Lloh7:
	add	x24, x24, _main.long_options@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w26, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	mov	x4, #0
	bl	_getopt_long
	cmp	w0, #118
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #104
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #100
	b.ne	LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_strdup
	mov	x19, x0
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #105
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.9:
	ldr	x0, [x21]
	bl	_usage
	mov	w22, #1
	b	LBB0_35
LBB0_10:
	cmp	w0, #108
	b.ne	LBB0_22
; %bb.11:
	add	x0, sp, #28
	bl	_ibv_get_device_list
	cbz	x0, LBB0_36
; %bb.12:
	mov	x19, x0
	ldr	w8, [sp, #28]
Lloh8:
	adrp	x9, l_.str.7@PAGE
Lloh9:
	add	x9, x9, l_.str.7@PAGEOFF
Lloh10:
	adrp	x10, l_.str.8@PAGE
Lloh11:
	add	x10, x10, l_.str.8@PAGEOFF
	cmp	w8, #1
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldr	x0, [x19]
	cbz	x0, LBB0_15
; %bb.13:
	add	x21, x19, #8
Lloh14:
	adrp	x20, l_.str.9@PAGE
Lloh15:
	add	x20, x20, l_.str.9@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	bl	_ibv_get_device_name
	str	x0, [sp]
	mov	x0, x20
	bl	_printf
	ldr	x0, [x21], #8
	cbnz	x0, LBB0_14
LBB0_15:
	mov	w0, #10
	bl	_putchar
	mov	x0, x19
	bl	_ibv_free_device_list
	mov	w22, #0
	b	LBB0_35
LBB0_16:
	mov	x0, #0
	bl	_ibv_get_device_list
	cbz	x0, LBB0_36
; %bb.17:
	mov	x21, x0
	ldr	x0, [x0]
	cbz	x19, LBB0_23
; %bb.18:
	cbz	x0, LBB0_31
; %bb.19:
	add	x22, x21, #8
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	bl	_ibv_get_device_name
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x0, [x22], #8
	cbnz	x0, LBB0_20
	b	LBB0_31
LBB0_22:
	ldr	x0, [x21]
	bl	_usage
	b	LBB0_34
LBB0_23:
	cbz	x0, LBB0_32
; %bb.24:
	mov	w22, #0
	add	x23, x21, #8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_print_hca_cap
	orr	w22, w0, w22
	ldr	x0, [x23], #8
	cbnz	x0, LBB0_25
; %bb.26:
	cbz	x19, LBB0_28
LBB0_27:
	mov	x0, x19
	bl	_free
LBB0_28:
	mov	x0, x21
	bl	_ibv_free_device_list
	b	LBB0_35
LBB0_29:
	ldur	x0, [x22, #-8]
	cbz	x0, LBB0_31
; %bb.30:
	mov	x1, x20
	bl	_print_hca_cap
	mov	x22, x0
	cbnz	x19, LBB0_27
	b	LBB0_28
LBB0_31:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh19:
	adrp	x1, l_.str.11@PAGE
Lloh20:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.12@PAGE
Lloh25:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_33:
	bl	_fprintf
LBB0_34:
	mov	w22, #-1
LBB0_35:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_36:
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	b	LBB0_34
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @main.long_options
_main.long_options:
	.quad	l_.str
	.long	1                               ; 0x1
	.byte	100                             ; 0x64
	.space	3
	.quad	l_.str.1
	.long	1                               ; 0x1
	.byte	105                             ; 0x69
	.space	3
	.quad	l_.str.2
	.long	0                               ; 0x0
	.byte	108                             ; 0x6c
	.space	3
	.quad	l_.str.3
	.long	0                               ; 0x0
	.byte	118                             ; 0x76
	.space	3
	.space	16

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib-dev"

l_.str.1:                               ; @.str.1
	.asciz	"ib-port"

l_.str.2:                               ; @.str.2
	.asciz	"list"

l_.str.3:                               ; @.str.3
	.asciz	"verbose"

l_.str.4:                               ; @.str.4
	.asciz	"d:i:lv"

	.comm	_optarg,4,2                     ; @optarg
	.comm	_verbose,4,2                    ; @verbose
l_.str.5:                               ; @.str.5
	.asciz	"Failed to get IB devices list"

l_.str.6:                               ; @.str.6
	.asciz	"%d HCA%s found:\n"

l_.str.7:                               ; @.str.7
	.asciz	"s"

l_.str.8:                               ; @.str.8
	.space	1

l_.str.9:                               ; @.str.9
	.asciz	"\t%s\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.11:                              ; @.str.11
	.asciz	"IB device '%s' wasn't found\n"

l_.str.12:                              ; @.str.12
	.asciz	"No IB devices found\n"

.subsections_via_symbols
