	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_add_one
_srp_add_one:                           ## @srp_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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ib_query_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	12(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_20
LBB0_3:
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %r15
	movl	56(%r13), %edi
	callq	_ffs
	leaq	-1(%rax), %rsi
	movl	$12, %edi
	callq	_max
	movl	%eax, %r12d
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movl	%eax, (%r15)
	cltq
	negq	%rax
	movq	%rax, 48(%r15)
	movq	_SRP_FMR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	%cl, %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 40(%r15)
	movq	%r14, %rdi
	callq	_ib_alloc_pd
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_19
## %bb.5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	8(%r15), %rdi
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_ib_get_dma_mr
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.18:
	movq	8(%r15), %rdi
	callq	_ib_dealloc_pd
LBB0_19:
	movq	%r15, %rdi
	callq	_kfree
LBB0_20:
	movq	%r13, %rdi
	callq	_kfree
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_SRP_FMR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SRP_FMR_MIN_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_9
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SRP_FMR_POOL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_SRP_FMR_DIRTY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$1, -72(%rbp)
	movl	%ebx, -68(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -60(%rbp)
	movq	8(%r15), %rdi
	movq	%r12, %rsi
	callq	_ib_create_fmr_pool
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movl	4(%r15), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, 4(%r15)
	movl	%eax, %ebx
	movq	_SRP_FMR_MIN_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_7
LBB0_9:
	movq	24(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	$0, 24(%r15)
LBB0_11:
	movq	(%r14), %rax
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$0, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movl	8(%r14), %r12d
	movl	$1, %ebx
	testl	%r12d, %r12d
	jle	LBB0_17
LBB0_13:
	incl	%r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_srp_add_port
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	jmp	LBB0_16
LBB0_17:
	movq	_srp_client@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_ib_set_client_data
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Query device failed for %s\n"

	.comm	_SRP_FMR_SIZE,4,2               ## @SRP_FMR_SIZE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_SRP_FMR_MIN_SIZE,4,2           ## @SRP_FMR_MIN_SIZE
	.comm	_SRP_FMR_POOL_SIZE,4,2          ## @SRP_FMR_POOL_SIZE
	.comm	_SRP_FMR_DIRTY_SIZE,4,2         ## @SRP_FMR_DIRTY_SIZE
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ## @RDMA_NODE_IB_SWITCH
	.comm	_srp_client,4,2                 ## @srp_client
	.no_dead_strip	_srp_add_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_add_one
_srp_add_one:                           ; @srp_add_one
	.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	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #64
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_ib_query_device
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x20, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_8
LBB0_3:
	ldr	w1, [x21]
	mov	w0, #64
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19, #56]
	bl	_ffs
	sub	x1, x0, #1
	mov	w0, #12
	bl	_max
	mov	x23, x0
	mov	x8, #0
	mov	w9, #1
	lsl	w9, w9, w0
	str	w9, [x21]
	sub	x8, x8, w9, sxtw
	str	x8, [x21, #48]
Lloh4:
	adrp	x27, _SRP_FMR_SIZE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SRP_FMR_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	w8, w8, w0
	str	w8, [x21, #4]
	add	x22, x21, #16
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	str	x20, [x21, #40]
	mov	x0, x20
	bl	_ib_alloc_pd
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x21, #8]
Lloh6:
	adrp	x24, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh8:
	adrp	x25, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh10:
	adrp	x26, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w1, w8, w9
	bl	_ib_get_dma_mr
	str	x0, [x21, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x0, [x21, #8]
	bl	_ib_dealloc_pd
LBB0_7:
	mov	x0, x21
	bl	_kfree
LBB0_8:
	mov	x0, x19
	bl	_kfree
LBB0_9:
	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_10:
	ldr	w28, [x27]
Lloh12:
	adrp	x8, _SRP_FMR_MIN_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SRP_FMR_MIN_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w28, w8
	b.lt	LBB0_14
; %bb.11:
	mov	w27, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh15:
	adrp	x8, _SRP_FMR_POOL_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SRP_FMR_POOL_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SRP_FMR_DIRTY_SIZE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SRP_FMR_DIRTY_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	stp	w27, w28, [sp, #8]
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	stp	w23, w8, [sp, #16]
	ldr	x0, [x21, #8]
	add	x1, sp, #8
	bl	_ib_create_fmr_pool
	str	x0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w28, #0
	cinc	w8, w28, lt
	asr	w28, w8, #1
	ldr	w8, [x21, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x21, #4]
Lloh21:
	adrp	x8, _SRP_FMR_MIN_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SRP_FMR_MIN_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w28, w8
	b.ge	LBB0_12
LBB0_14:
	ldr	x0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	str	xzr, [x21, #24]
LBB0_16:
	ldr	x8, [x20]
Lloh24:
	adrp	x9, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	mov	w8, #0
	mov	w23, #0
	b	LBB0_20
LBB0_18:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.19:
	mov	w23, #1
LBB0_20:
	add	w24, w8, #1
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w23, w23, #1
	cmp	w24, w23
	b.eq	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_srp_add_port
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x1, x22
	bl	_list_add_tail
	b	LBB0_21
LBB0_24:
Lloh27:
	adrp	x1, _srp_client@GOTPAGE
Lloh28:
	ldr	x1, [x1, _srp_client@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x21
	bl	_ib_set_client_data
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Query device failed for %s\n"

	.comm	_SRP_FMR_SIZE,4,2               ; @SRP_FMR_SIZE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_SRP_FMR_MIN_SIZE,4,2           ; @SRP_FMR_MIN_SIZE
	.comm	_SRP_FMR_POOL_SIZE,4,2          ; @SRP_FMR_POOL_SIZE
	.comm	_SRP_FMR_DIRTY_SIZE,4,2         ; @SRP_FMR_DIRTY_SIZE
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ; @RDMA_NODE_IB_SWITCH
	.comm	_srp_client,4,2                 ; @srp_client
	.no_dead_strip	_srp_add_one
.subsections_via_symbols
