	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uverbs_destroy_uobject
_uverbs_destroy_uobject:                ## @uverbs_destroy_uobject
	.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
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdx), %r15
	leaq	4(%r15), %rdi
	callq	_lockdep_assert_held
	movq	_UVERBS_LOOKUP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_assert_uverbs_usecnt
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_ib_is_destroy_retryable
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movl	40(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %ecx
	callq	_WARN
LBB0_4:
	movq	$0, 32(%rbx)
LBB0_5:
	movq	_RDMA_REMOVE_ABORT@GOTPCREL(%rip), %r13
	cmpl	%r14d, (%r13)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_WARN_ON
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*16(%rax)
LBB0_7:
	movq	$0, 24(%rbx)
	movq	_RDMA_REMOVE_DESTROY@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.9:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	jmp	LBB0_10
LBB0_8:
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_10:
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_list_del_init
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_uverbs_uobject_put
LBB0_12:
	xorl	%r12d, %r12d
	cmpl	%r14d, (%r13)
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_uverbs_uobject_put
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVERBS_LOOKUP_WRITE,4,2        ## @UVERBS_LOOKUP_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_uverbs: failed to remove uobject id %d, driver err=%d"

	.comm	_RDMA_REMOVE_ABORT,4,2          ## @RDMA_REMOVE_ABORT
	.comm	_RDMA_REMOVE_DESTROY,4,2        ## @RDMA_REMOVE_DESTROY
	.no_dead_strip	_uverbs_destroy_uobject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uverbs_destroy_uobject
_uverbs_destroy_uobject:                ; @uverbs_destroy_uobject
	.cfi_startproc
; %bb.0:
	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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x2]
	add	x0, x21, #4
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _UVERBS_LOOKUP_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVERBS_LOOKUP_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_assert_uverbs_usecnt
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	blr	x8
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x1, x20
	mov	x2, x19
	bl	_ib_is_destroy_retryable
	cbnz	x0, LBB0_15
; %bb.3:
	ldr	w2, [x19, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x22
	bl	_WARN
LBB0_4:
	str	xzr, [x19, #32]
LBB0_5:
Lloh5:
	adrp	x22, _RDMA_REMOVE_ABORT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _RDMA_REMOVE_ABORT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
LBB0_7:
	str	xzr, [x19, #24]
Lloh7:
	adrp	x8, _RDMA_REMOVE_DESTROY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RDMA_REMOVE_DESTROY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	b	LBB0_10
LBB0_9:
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
LBB0_10:
	mov	x0, x19
	bl	_list_empty
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_list_del_init
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_uverbs_uobject_put
LBB0_12:
	ldr	w8, [x22]
	cmp	w8, w20
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_uverbs_uobject_put
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_UVERBS_LOOKUP_WRITE,4,2        ; @UVERBS_LOOKUP_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_uverbs: failed to remove uobject id %d, driver err=%d"

	.comm	_RDMA_REMOVE_ABORT,4,2          ; @RDMA_REMOVE_ABORT
	.comm	_RDMA_REMOVE_DESTROY,4,2        ; @RDMA_REMOVE_DESTROY
	.no_dead_strip	_uverbs_destroy_uobject
.subsections_via_symbols
