	.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, %rbx
	callq	_rdma_start_port
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_rdma_end_port
	movl	%eax, %r15d
	subl	%r14d, %eax
	leal	20(,%rax,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	_ib_umad_dev_ktype@GOTPCREL(%rip), %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_kobject_init
	cmpl	%r14d, %r15d
	jge	LBB0_2
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kobject_put                    ## TAILCALL
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r12
	incl	%r15d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	shlq	$32, %r12
	xorl	%r13d, %r13d
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r15d
	incl	%ebx
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	addq	%rax, %r12
	addq	$8, %r13
	cmpl	%ebx, %r14d
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rdma_cap_ib_mad
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	%rdx, (%rcx,%r13)
	addq	%r13, %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ib_umad_init_port
	testq	%rax, %rax
	jne	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_10
## %bb.14:
	movq	_umad_client@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_set_client_data             ## TAILCALL
LBB0_5:
	cmpl	%ebx, -68(%rbp)                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_10
## %bb.6:
	sarq	$32, %r12
	movslq	%ebx, %rax
	decl	%ebx
	subq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	leaq	-8(,%rax,8), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	decl	%ebx
	addq	$-8, %r14
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	jle	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	decq	%r12
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_rdma_cap_ib_mad
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	addq	%r14, %rdi
	callq	_ib_umad_kill_port
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ib_umad_dev_ktype,4,2          ## @ib_umad_dev_ktype
	.comm	_umad_client,4,2                ## @umad_client
	.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
	bl	_rdma_start_port
	mov	x21, x0
	mov	x0, x19
	bl	_rdma_end_port
	mov	x22, x0
	sub	w8, w0, w21
	lsl	w8, w8, #2
	add	w0, w8, #20
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, _ib_umad_dev_ktype@GOTPAGE
Lloh4:
	ldr	x1, [x1, _ib_umad_dev_ktype@GOTPAGEOFF]
	bl	_kobject_init
	cmp	w22, w21
	b.ge	LBB0_4
LBB0_2:
	mov	x0, 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	_kobject_put
LBB0_3:
	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_4:
	mov	x26, #0
	mov	w25, #0
	sxtw	x23, w21
	add	w27, w22, #1
	sbfiz	x24, x21, #32, #32
	mov	x28, #4294967296
	mov	x22, x21
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	add	x24, x24, x28
	add	x26, x26, #8
	cmp	w27, w22
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_rdma_cap_ib_mad
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	add	x3, x8, x26
	str	x20, [x3]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_ib_umad_init_port
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w25, #1
	b	LBB0_5
LBB0_9:
	cbz	w25, LBB0_2
; %bb.10:
Lloh5:
	adrp	x1, _umad_client@GOTPAGE
Lloh6:
	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_11:
	cmp	w21, w22
	b.ge	LBB0_2
; %bb.12:
	sub	w21, w22, #1
	asr	x24, x24, #32
	sxtw	x8, w22
	sub	x8, x8, x23
	lsl	x8, x8, #3
	sub	x22, x8, #8
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w21, w21, #1
	sub	x22, x22, #8
	cmp	x24, x23
	b.le	LBB0_2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sub	x24, x24, #1
	mov	x0, x19
	mov	x1, x21
	bl	_rdma_cap_ib_mad
	cbz	w0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_ib_umad_kill_port
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ib_umad_dev_ktype,4,2          ; @ib_umad_dev_ktype
	.comm	_umad_client,4,2                ; @umad_client
	.no_dead_strip	_ib_umad_add_one
.subsections_via_symbols
