	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rsi), %rdi
	callq	_cdev_device_del
	movl	12(%rbx), %esi
	movq	_uverbs_ida@GOTPCREL(%rip), %rdi
	callq	_ida_free
	movq	(%r14), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ib_uverbs_free_hw_resources
LBB0_3:
	leaq	8(%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	4(%rbx), %rdi
	callq	_wait_for_completion
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_device                     ## TAILCALL
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uverbs_ida,4,2                 ## @uverbs_ida
	.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
	add	x0, x1, #16
	bl	_cdev_device_del
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x0, _uverbs_ida@GOTPAGE
Lloh1:
	ldr	x0, [x0, _uverbs_ida@GOTPAGEOFF]
	bl	_ida_free
	ldr	x21, [x20]
	cbz	x21, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_ib_uverbs_free_hw_resources
LBB0_3:
	add	x0, x19, #8
	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, #4
	bl	_wait_for_completion
LBB0_7:
	mov	x0, x19
	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	_put_device
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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_uverbs_ida,4,2                 ; @uverbs_ida
	.no_dead_strip	_ib_uverbs_remove_one
.subsections_via_symbols
