	.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
	pushq	%rax
	.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
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__IOLBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setvbuf
	leaq	L_.str.2(%rip), %r14
	leaq	_main.long_options(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_getopt_long
	cmpl	$100, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strdupa
	movq	%rax, %r15
	jmp	LBB0_1
LBB0_3:
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$104, %eax
	jne	LBB0_12
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_6:
	xorl	%edi, %edi
	callq	_ibv_get_device_list
	testq	%rax, %rax
	je	LBB0_25
## %bb.7:
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_14
## %bb.8:
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	callq	_ibv_get_device_name
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14,%rbx,8), %rdi
	incq	%rbx
	testq	%rdi, %rdi
	jne	LBB0_9
LBB0_11:
	movl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	movl	$1, %r14d
LBB0_13:
	movq	(%r12), %rdi
	callq	_usage
	jmp	LBB0_24
LBB0_14:
	leaq	L_.str.5(%rip), %r15
	xorl	%ebx, %ebx
LBB0_15:
	movq	(%r14,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.16:
	callq	_ibv_open_device
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	%rax, %r12
	movq	(%r14,%rbx,8), %rdi
	callq	_ibv_get_device_name
	movl	(%r12), %edx
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ibv_get_async_event
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_24
## %bb.18:
	leaq	L_.str.8(%rip), %r15
	leaq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %edi
	callq	_event_name_str
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_ibv_ack_async_event
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ibv_get_async_event
	testq	%rax, %rax
	je	LBB0_19
	jmp	LBB0_24
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	jmp	LBB0_22
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14,%rbx,8), %rdi
	callq	_ibv_get_device_name
	leaq	L_.str.6(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
LBB0_22:
	callq	_fprintf
LBB0_23:
	movl	$1, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	__IOLBF,4,2                     ## @_IOLBF
	.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	0                               ## 0x0
	.byte	104                             ## 0x68
	.space	3
	.space	16

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

L_.str.1:                               ## @.str.1
	.asciz	"help"

L_.str.2:                               ## @.str.2
	.asciz	"d:h"

	.comm	_optarg,4,2                     ## @optarg
	.comm	_SWITCH_FALLTHROUGH,4,2         ## @SWITCH_FALLTHROUGH
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get IB devices list"

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

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

L_.str.6:                               ## @.str.6
	.asciz	"Couldn't get context for %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s: async event FD %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"  event_type %s (%d), port %d\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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, __IOLBF@GOTPAGE
Lloh4:
	ldr	x8, [x8, __IOLBF@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, #0
	mov	w3, #0
	bl	_setvbuf
	mov	x19, #0
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x24, _optarg@GOTPAGE
Lloh9:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
Lloh10:
	adrp	x23, _main.long_options@PAGE
Lloh11:
	add	x23, x23, _main.long_options@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	bl	_getopt_long
	cmp	w0, #100
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	bl	_strdupa
	mov	x19, x0
	b	LBB0_1
LBB0_3:
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	cmp	w0, #104
	csel	w19, wzr, w8, eq
	ldr	x0, [x20]
	bl	_usage
	b	LBB0_23
LBB0_5:
	mov	x0, #0
	bl	_ibv_get_device_list
	cbz	x0, LBB0_21
; %bb.6:
	mov	x20, x0
	cbz	x19, LBB0_11
; %bb.7:
	ldr	x0, [x20]
	cbz	x0, LBB0_12
; %bb.8:
	mov	x21, #0
	add	x22, x20, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ibv_get_device_name
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x21, #1
	ldr	x0, [x22, x21, lsl #3]
	mov	x21, x8
	cbnz	x0, LBB0_9
	b	LBB0_15
LBB0_11:
	mov	x21, #0
Lloh12:
	adrp	x19, l_.str.5@PAGE
Lloh13:
	add	x19, x19, l_.str.5@PAGEOFF
	ldr	x0, [x20, x21, lsl #3]
	cbnz	x0, LBB0_16
	b	LBB0_13
LBB0_12:
	mov	x21, #0
	ldr	x0, [x20, x21, lsl #3]
	cbnz	x0, LBB0_16
LBB0_13:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	b	LBB0_22
LBB0_14:
	mov	x8, x21
LBB0_15:
	and	x21, x8, #0xffffffff
	ldr	x0, [x20, x21, lsl #3]
	cbz	x0, LBB0_13
LBB0_16:
	bl	_ibv_open_device
	cbz	x0, LBB0_20
; %bb.17:
	mov	x19, x0
	ldr	x0, [x20, x21, lsl #3]
	bl	_ibv_get_device_name
	mov	x1, x0
	ldr	w2, [x19]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibv_get_async_event
	cbnz	x0, LBB0_22
; %bb.18:
Lloh21:
	adrp	x20, l_.str.8@PAGE
Lloh22:
	add	x20, x20, l_.str.8@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #8]
	bl	_event_name_str
	mov	x1, x0
	ldp	w2, w8, [sp, #8]
	str	x8, [sp]
	mov	x0, x20
	bl	_printf
	add	x0, sp, #8
	bl	_ibv_ack_async_event
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibv_get_async_event
	cbz	x0, LBB0_19
	b	LBB0_22
LBB0_20:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
	ldr	x0, [x20, x21, lsl #3]
	bl	_ibv_get_device_name
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	b	LBB0_22
LBB0_21:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
LBB0_22:
	mov	w19, #1
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	__IOLBF,4,2                     ; @_IOLBF
	.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	0                               ; 0x0
	.byte	104                             ; 0x68
	.space	3
	.space	16

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

l_.str.1:                               ; @.str.1
	.asciz	"help"

l_.str.2:                               ; @.str.2
	.asciz	"d:h"

	.comm	_optarg,4,2                     ; @optarg
	.comm	_SWITCH_FALLTHROUGH,4,2         ; @SWITCH_FALLTHROUGH
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get IB devices list"

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

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

l_.str.6:                               ; @.str.6
	.asciz	"Couldn't get context for %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s: async event FD %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"  event_type %s (%d), port %d\n"

.subsections_via_symbols
