	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_ucm_add_one
_ib_ucm_add_one:                        ## @ib_ucm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 4(%rdi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_rdma_cap_ib_cm
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, 40(%rax)
	movq	_dev_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IB_UCM_MAX_DEVICES@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_find_first_zero_bit
	cmpl	(%r12), %eax
	jge	LBB0_4
## %bb.6:
	movl	%eax, %r15d
	movl	%eax, (%r14)
	movslq	%eax, %r13
	movq	_dev_map@GOTPCREL(%rip), %rax
	movq	_IB_UCM_BASE_DEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_find_overflow_devnum
	testl	%eax, %eax
	js	LBB0_15
## %bb.5:
	movl	%eax, %r15d
	movq	_IB_UCM_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	movl	%eax, (%r14)
	movl	%r15d, %r13d
	movq	_overflow_map@GOTPCREL(%rip), %rax
	movq	_overflow_maj@GOTPCREL(%rip), %rcx
LBB0_7:
	addq	(%rcx), %r13
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_set_bit
	leaq	4(%r14), %r12
	movq	_ucm_fops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	leaq	8(%r14), %rdi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_kobject_set_name
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_cdev_add
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	%r14, %r13
	addq	$16, %r13
	movq	_cm_class@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movl	(%rbx), %eax
	movl	%eax, 24(%r14)
	movl	(%r14), %edx
	movl	4(%r14), %eax
	movl	%eax, 20(%r14)
	movq	_ib_ucm_release_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_set_name
	movq	%r13, %rdi
	callq	_device_register
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	_dev_attr_ibdev@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%r13, %rdi
	callq	_device_unregister
LBB0_11:
	movq	%r12, %rdi
	callq	_cdev_del
	movl	(%r14), %eax
	movq	_IB_UCM_MAX_DEVICES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_12
## %bb.13:
	movq	_dev_map@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_overflow_map@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_clear_bit
LBB0_15:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_17:
	movq	_ucm_client@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_set_client_data             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dev_map,4,2                    ## @dev_map
	.comm	_IB_UCM_MAX_DEVICES,4,2         ## @IB_UCM_MAX_DEVICES
	.comm	_overflow_maj,8,3               ## @overflow_maj
	.comm	_overflow_map,4,2               ## @overflow_map
	.comm	_IB_UCM_BASE_DEV,8,3            ## @IB_UCM_BASE_DEV
	.comm	_ucm_fops,4,2                   ## @ucm_fops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucm%d"

	.comm	_cm_class,4,2                   ## @cm_class
	.comm	_ib_ucm_release_dev,4,2         ## @ib_ucm_release_dev
	.comm	_dev_attr_ibdev,4,2             ## @dev_attr_ibdev
	.comm	_ucm_client,4,2                 ## @ucm_client
	.no_dead_strip	_ib_ucm_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_ucm_add_one
_ib_ucm_add_one:                        ; @ib_ucm_add_one
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w1, #1
	bl	_rdma_cap_ib_cm
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	str	x20, [x0, #40]
Lloh3:
	adrp	x24, _dev_map@GOTPAGE
Lloh4:
	ldr	x24, [x24, _dev_map@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x25, _IB_UCM_MAX_DEVICES@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IB_UCM_MAX_DEVICES@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_find_first_zero_bit
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.4:
	mov	x21, x0
	str	w0, [x19]
	sxtw	x8, w21
Lloh7:
	adrp	x9, _dev_map@GOTPAGE
Lloh8:
	ldr	x9, [x9, _dev_map@GOTPAGEOFF]
Lloh9:
	adrp	x10, _IB_UCM_BASE_DEV@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IB_UCM_BASE_DEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_find_overflow_devnum
	tbnz	w0, #31, LBB0_13
; %bb.7:
	mov	x21, x0
	ldr	w8, [x25]
	add	w8, w8, w0
	str	w8, [x19]
	mov	w8, w0
Lloh11:
	adrp	x9, _overflow_map@GOTPAGE
Lloh12:
	ldr	x9, [x9, _overflow_map@GOTPAGEOFF]
Lloh13:
	adrp	x10, _overflow_maj@GOTPAGE
Lloh14:
	ldr	x10, [x10, _overflow_maj@GOTPAGEOFF]
LBB0_8:
	ldr	x10, [x10]
	add	x23, x10, x8
	ldr	w1, [x9]
	mov	x0, x21
	bl	_set_bit
	add	x22, x19, #4
Lloh15:
	adrp	x1, _ucm_fops@GOTPAGE
Lloh16:
	ldr	x1, [x1, _ucm_fops@GOTPAGEOFF]
	mov	x0, x22
	bl	_cdev_init
Lloh17:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	add	x0, x19, #8
	ldr	w2, [x19]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_kobject_set_name
	mov	x0, x22
	mov	x1, x23
	mov	w2, #1
	bl	_cdev_add
	cbnz	x0, LBB0_13
; %bb.9:
Lloh22:
	adrp	x8, _ib_ucm_release_dev@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ib_ucm_release_dev@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	mov	x23, x19
	str	w8, [x23, #16]!
Lloh25:
	adrp	x8, _cm_class@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cm_class@GOTPAGEOFF]
	str	x8, [x19, #32]
	ldr	w8, [x20]
	ldp	w2, w9, [x19]
	stp	w9, w8, [x19, #20]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_set_name
	mov	x0, x23
	bl	_device_register
	cbnz	x0, LBB0_12
; %bb.10:
Lloh29:
	adrp	x1, _dev_attr_ibdev@GOTPAGE
Lloh30:
	ldr	x1, [x1, _dev_attr_ibdev@GOTPAGEOFF]
	mov	x0, x23
	bl	_device_create_file
	cbz	x0, LBB0_14
; %bb.11:
	mov	x0, x23
	bl	_device_unregister
LBB0_12:
	mov	x0, x22
	bl	_cdev_del
	ldr	w8, [x19]
	ldr	w9, [x25]
Lloh31:
	adrp	x10, _overflow_map@GOTPAGE
Lloh32:
	ldr	x10, [x10, _overflow_map@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x24, x10, lt
	ldr	w1, [x8]
	mov	x0, x21
	bl	_clear_bit
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree
LBB0_14:
Lloh33:
	adrp	x1, _ucm_client@GOTPAGE
Lloh34:
	ldr	x1, [x1, _ucm_client@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ib_set_client_data
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dev_map,4,2                    ; @dev_map
	.comm	_IB_UCM_MAX_DEVICES,4,2         ; @IB_UCM_MAX_DEVICES
	.comm	_overflow_maj,8,3               ; @overflow_maj
	.comm	_overflow_map,4,2               ; @overflow_map
	.comm	_IB_UCM_BASE_DEV,8,3            ; @IB_UCM_BASE_DEV
	.comm	_ucm_fops,4,2                   ; @ucm_fops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucm%d"

	.comm	_cm_class,4,2                   ; @cm_class
	.comm	_ib_ucm_release_dev,4,2         ; @ib_ucm_release_dev
	.comm	_dev_attr_ibdev,4,2             ; @dev_attr_ibdev
	.comm	_ucm_client,4,2                 ; @ucm_client
	.no_dead_strip	_ib_ucm_add_one
.subsections_via_symbols
