	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_uverbs_remove_one
_ib_uverbs_remove_one:                  ## @ib_uverbs_remove_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_uverbs_client@GOTPCREL(%rip), %rsi
	callq	_ib_get_client_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	20(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	_uverbs_class@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r14
	movl	16(%rbx), %esi
	callq	_device_destroy
	movq	%r14, %rdi
	callq	_cdev_del
	movq	(%rbx), %rdi
	movq	_IB_UVERBS_MAX_DEVICES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	movq	_overflow_map@GOTPCREL(%rip), %rcx
	cmovlq	_dev_map@GOTPCREL(%rip), %rcx
	cmovlq	%r15, %rax
	subq	%rax, %rdi
	movl	(%rcx), %esi
	callq	_clear_bit
	leaq	12(%rbx), %rdi
	movq	_ib_uverbs_release_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_wait_for_completion
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uverbs_client,4,2              ## @uverbs_client
	.comm	_uverbs_class,4,2               ## @uverbs_class
	.comm	_IB_UVERBS_MAX_DEVICES,8,3      ## @IB_UVERBS_MAX_DEVICES
	.comm	_dev_map,4,2                    ## @dev_map
	.comm	_overflow_map,4,2               ## @overflow_map
	.comm	_ib_uverbs_release_dev,4,2      ## @ib_uverbs_release_dev
	.no_dead_strip	_ib_uverbs_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_uverbs_remove_one
_ib_uverbs_remove_one:                  ; @ib_uverbs_remove_one
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x1, _uverbs_client@GOTPAGE
Lloh1:
	ldr	x1, [x1, _uverbs_client@GOTPAGEOFF]
	bl	_ib_get_client_data
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #20]
	mov	x1, #0
	bl	_dev_set_drvdata
Lloh2:
	adrp	x8, _uverbs_class@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uverbs_class@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x20, x19
	ldr	w1, [x20, #16]!
	bl	_device_destroy
	mov	x0, x20
	bl	_cdev_del
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _IB_UVERBS_MAX_DEVICES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_UVERBS_MAX_DEVICES@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _dev_map@GOTPAGE
Lloh9:
	ldr	x10, [x10, _dev_map@GOTPAGEOFF]
	cmp	x8, x9
	csel	x9, xzr, x9, lt
Lloh10:
	adrp	x11, _overflow_map@GOTPAGE
Lloh11:
	ldr	x11, [x11, _overflow_map@GOTPAGEOFF]
	csel	x10, x10, x11, lt
	sub	x0, x8, x9
	ldr	w1, [x10]
	bl	_clear_bit
	add	x0, x19, #12
Lloh12:
	adrp	x8, _ib_uverbs_release_dev@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ib_uverbs_release_dev@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_kref_put
	add	x0, x19, #8
	bl	_wait_for_completion
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_uverbs_client,4,2              ; @uverbs_client
	.comm	_uverbs_class,4,2               ; @uverbs_class
	.comm	_IB_UVERBS_MAX_DEVICES,8,3      ; @IB_UVERBS_MAX_DEVICES
	.comm	_dev_map,4,2                    ; @dev_map
	.comm	_overflow_map,4,2               ; @overflow_map
	.comm	_ib_uverbs_release_dev,4,2      ; @ib_uverbs_release_dev
	.no_dead_strip	_ib_uverbs_remove_one
.subsections_via_symbols
