	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_sa_add_one
_ib_sa_add_one:                         ## @ib_sa_add_one
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rdma_start_port
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_rdma_end_port
	movl	%eax, %ebx
	subl	%r13d, %eax
	movq	%rax, %r15
	leal	28(,%rax,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	movl	%r13d, (%rax)
	movl	%ebx, 4(%rax)
	movq	%r15, %rbx
	testl	%ebx, %ebx
	js	LBB0_20
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	incl	%ebx
	movl	%r13d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$32, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %r15
	movq	%rax, %r13
	cmpq	%rax, %rbx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	%r15, %rdi
	callq	_spin_lock_init
	leaq	1(%r13), %rsi
	movq	%r14, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rdma_cap_ib_sa
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	$0, -8(%rax,%r15)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%r13), %ebx
	movl	%ebx, -32(%rax,%r15)
	leaq	(%rax,%r15), %rdi
	addq	$-16, %rdi
	callq	_spin_lock_init
	movq	8(%r12), %rax
	movl	$0, -20(%rax,%r15)
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_send_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_recv_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r12
	pushq	%rax
	callq	_ib_register_mad_agent
	addq	$32, %rsp
	movq	8(%r12), %rcx
	movl	%eax, -28(%rcx,%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	leaq	(%rax,%r15), %rdi
	addq	$-24, %rdi
	movq	_update_sm_ah@GOTPCREL(%rip), %rsi
	callq	_INIT_WORK
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
## %bb.8:
	movq	_sa_client@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ib_set_client_data
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	_ib_sa_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_INIT_IB_EVENT_HANDLER
	movq	%rbx, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	callq	_ib_register_event_handler
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$40, %rbx
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incq	%r14
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rdma_cap_ib_sa
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_update_sm_ah
	jmp	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_15:
	testl	%r13d, %r13d
	jle	LBB0_20
## %bb.16:
	movl	%r13d, %esi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rax
	incq	%rax
	movq	%rbx, %rsi
	cmpq	$1, %rax
	jbe	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rsi), %rbx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rdma_cap_ib_sa
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r12), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,4), %rcx
	movl	4(%rax,%rcx,8), %edi
	callq	_ib_unregister_mad_agent
	jmp	LBB0_19
LBB0_20:
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_QPT_GSI,4,2                 ## @IB_QPT_GSI
	.comm	_send_handler,4,2               ## @send_handler
	.comm	_recv_handler,4,2               ## @recv_handler
	.comm	_sa_client,4,2                  ## @sa_client
	.comm	_ib_sa_event,4,2                ## @ib_sa_event
	.no_dead_strip	_ib_sa_add_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_sa_add_one
_ib_sa_add_one:                         ; @ib_sa_add_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	bl	_rdma_start_port
	mov	x23, x0
	mov	x0, x19
	bl	_rdma_end_port
	mov	x21, x0
	sub	w24, w0, w23
	lsl	w8, w24, #2
	add	w0, w8, #28
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	stp	w23, w21, [x0]
	tbnz	w24, #31, LBB0_20
; %bb.2:
	mov	x22, #0
	mov	w25, #0
	add	w24, w24, #1
	mov	w28, #32
Lloh3:
	adrp	x26, _recv_handler@GOTPAGE
Lloh4:
	ldr	x26, [x26, _recv_handler@GOTPAGEOFF]
	mov	w21, w23
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #40
	mov	x22, x27
	cmp	x24, x27
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x28
	bl	_spin_lock_init
	add	x27, x22, #1
	mov	x0, x19
	mov	x1, x27
	bl	_rdma_cap_ib_sa
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x28
	stur	xzr, [x8, #-8]
	add	w23, w21, w22
	stur	w23, [x8, #-32]
	sub	x0, x8, #16
	bl	_spin_lock_init
	ldr	x8, [x20, #8]
	add	x8, x8, x28
	stur	wzr, [x8, #-20]
Lloh5:
	adrp	x8, _IB_QPT_GSI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_QPT_GSI@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _send_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _send_handler@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	ldr	w6, [x26]
	str	wzr, [sp]
	mov	x0, x19
	mov	x1, x23
	mov	x3, #0
	mov	w4, #0
	mov	x7, x20
	bl	_ib_register_mad_agent
	ldr	x8, [x20, #8]
	add	x8, x8, x28
	stur	w0, [x8, #-28]
	bl	_IS_ERR
	cbnz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x28
	sub	x0, x8, #24
Lloh11:
	adrp	x1, _update_sm_ah@GOTPAGE
Lloh12:
	ldr	x1, [x1, _update_sm_ah@GOTPAGEOFF]
	bl	_INIT_WORK
	add	w25, w25, #1
	b	LBB0_3
LBB0_7:
	cbz	w25, LBB0_20
; %bb.8:
Lloh13:
	adrp	x1, _sa_client@GOTPAGE
Lloh14:
	ldr	x1, [x1, _sa_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ib_set_client_data
	add	x21, x20, #16
Lloh15:
	adrp	x8, _ib_sa_event@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ib_sa_event@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_INIT_IB_EVENT_HANDLER
	mov	x0, x21
	bl	_ib_register_event_handler
	cbnz	x0, LBB0_15
; %bb.9:
	mov	x21, #0
	mov	w22, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #40
	cmp	x24, x21
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	mov	x0, x19
	mov	x1, x21
	bl	_rdma_cap_ib_sa
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_update_sm_ah
	b	LBB0_10
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x24, x22
LBB0_15:
	cmp	w24, #1
	b.lt	LBB0_20
; %bb.16:
	mov	w1, w24
	mov	w21, #40
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x8, x22, #1
	mov	x1, x22
	cmp	x8, #1
	b.ls	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	x22, x1, #1
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_rdma_cap_ib_sa
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20, #8]
	and	x9, x22, #0xffffffff
	madd	x8, x9, x21, x8
	ldr	w0, [x8, #4]
	bl	_ib_unregister_mad_agent
	b	LBB0_17
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_QPT_GSI,4,2                 ; @IB_QPT_GSI
	.comm	_send_handler,4,2               ; @send_handler
	.comm	_recv_handler,4,2               ; @recv_handler
	.comm	_sa_client,4,2                  ; @sa_client
	.comm	_ib_sa_event,4,2                ; @ib_sa_event
	.no_dead_strip	_ib_sa_add_one
.subsections_via_symbols
