	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_umad_add_one
_ib_umad_add_one:                       ## @ib_umad_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	(%rdi), %rdi
	callq	_rdma_node_get_transport
	movq	_RDMA_TRANSPORT_IB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.1:
	movq	(%r14), %rax
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$0, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r14), %ebx
	movl	$1, %r15d
LBB0_3:
	movl	%ebx, %eax
	subl	%r15d, %eax
	leal	28(,%rax,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_kref_init
	movl	%r15d, (%r12)
	movl	%ebx, 4(%r12)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%r15d, %ebx
	jl	LBB0_12
## %bb.5:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	shlq	$32, %r13
	xorl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdx
	movq	%r12, (%rdx,%r15)
	addq	%r15, %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ib_umad_init_port
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	addq	%rax, %r13
	addq	$8, %r15
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
LBB0_12:
	movq	_umad_client@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_set_client_data             ## TAILCALL
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_10
## %bb.8:
	sarq	$32, %r13
	movslq	%ebx, %rax
	subq	%r14, %rax
	leaq	-8(,%rax,8), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	decq	%r13
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	callq	_ib_umad_kill_port
	addq	$-8, %rbx
	cmpq	%r14, %r13
	jg	LBB0_9
LBB0_10:
	movq	_ib_umad_release_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kref_put                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_TRANSPORT_IB,8,3          ## @RDMA_TRANSPORT_IB
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ## @RDMA_NODE_IB_SWITCH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_umad_client,4,2                ## @umad_client
	.comm	_ib_umad_release_dev,4,2        ## @ib_umad_release_dev
	.no_dead_strip	_ib_umad_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_umad_add_one
_ib_umad_add_one:                       ; @ib_umad_add_one
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x0, [x0]
	bl	_rdma_node_get_transport
Lloh0:
	adrp	x8, _RDMA_TRANSPORT_IB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_TRANSPORT_IB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w23, #0
	mov	w22, #0
	b	LBB0_4
LBB0_3:
	ldr	w22, [x19, #8]
	mov	w23, #1
LBB0_4:
	sub	w8, w22, w23
	lsl	w8, w8, #2
	add	w0, w8, #28
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_kref_init
	stp	w23, w22, [x20]
	cmp	w22, w23
	b.lt	LBB0_9
; %bb.6:
	mov	x26, #0
	mov	w24, w23
	add	w27, w22, #1
	lsl	x25, x24, #32
	mov	x28, #4294967296
	mov	x22, x24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x2, x8, x26
	str	x20, [x2]
	mov	x0, x19
	mov	x1, x22
	bl	_ib_umad_init_port
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	add	x25, x25, x28
	add	x26, x26, #8
	cmp	x27, x22
	b.ne	LBB0_7
LBB0_9:
Lloh9:
	adrp	x1, _umad_client@GOTPAGE
Lloh10:
	ldr	x1, [x1, _umad_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ib_set_client_data
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	cmp	w23, w22
	b.hs	LBB0_14
; %bb.12:
	asr	x19, x25, #32
	sxtw	x8, w22
	sub	x8, x8, x24
	lsl	x8, x8, #3
	sub	x22, x8, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	x19, x19, #1
	ldr	x8, [x20, #16]
	add	x0, x8, x22
	bl	_ib_umad_kill_port
	sub	x22, x22, #8
	cmp	x19, x24
	b.gt	LBB0_13
LBB0_14:
Lloh11:
	adrp	x8, _ib_umad_release_dev@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ib_umad_release_dev@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_kref_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_TRANSPORT_IB,8,3          ; @RDMA_TRANSPORT_IB
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ; @RDMA_NODE_IB_SWITCH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_umad_client,4,2                ; @umad_client
	.comm	_ib_umad_release_dev,4,2        ; @ib_umad_release_dev
	.no_dead_strip	_ib_umad_add_one
.subsections_via_symbols
