	.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:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rsi), %rdi
	movq	_device_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_remove_group
	movq	32(%rbx), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	_uverbs_class@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %r15
	movl	24(%rbx), %esi
	callq	_device_destroy
	movq	%r15, %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	%r12, %rax
	subq	%rax, %rdi
	movl	(%rcx), %esi
	callq	_clear_bit
	movq	(%r14), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movl	20(%rbx), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ib_uverbs_free_hw_resources
LBB0_3:
	leaq	16(%rbx), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_ib_uverbs_comp_dev
LBB0_5:
	testq	%r15, %r15
	jne	LBB0_7
## %bb.6:
	leaq	12(%rbx), %rdi
	callq	_wait_for_completion
LBB0_7:
	addq	$8, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kobject_put                    ## TAILCALL
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_device_group,4,2               ## @device_group
	.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
	.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:
	cbz	x1, LBB0_8
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #32]
Lloh0:
	adrp	x1, _device_group@GOTPAGE
Lloh1:
	ldr	x1, [x1, _device_group@GOTPAGEOFF]
	bl	_sysfs_remove_group
	ldr	x0, [x19, #32]
	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	x21, x19
	ldr	w1, [x21, #24]!
	bl	_device_destroy
	mov	x0, x21
	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
	ldr	x21, [x20]
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w0, [x19, #20]
	mov	x1, #0
	bl	_rcu_assign_pointer
	mov	x0, x19
	mov	x1, x20
	bl	_ib_uverbs_free_hw_resources
LBB0_3:
	add	x0, x19, #16
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ib_uverbs_comp_dev
LBB0_5:
	cbnz	x21, LBB0_7
; %bb.6:
	add	x0, x19, #12
	bl	_wait_for_completion
LBB0_7:
	add	x0, x19, #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kobject_put
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_device_group,4,2               ; @device_group
	.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
	.no_dead_strip	_ib_uverbs_remove_one
.subsections_via_symbols
