	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_uverbs_close
_ib_uverbs_close:                       ## @ib_uverbs_close
	.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	(%rsi), %rbx
	movq	16(%rbx), %r14
	leaq	28(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ib_uverbs_cleanup_ucontext
	movq	$0, 32(%rbx)
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	leaq	24(%rbx), %rdi
	callq	_list_del
	movl	$1, (%rbx)
LBB0_4:
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_mutex_unlock
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_ib_uverbs_release_event_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
LBB0_6:
	addq	$4, %rbx
	movq	_ib_uverbs_release_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	movq	%r14, %rdi
	callq	_kobject_put
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_uverbs_release_event_file,4,2 ## @ib_uverbs_release_event_file
	.comm	_ib_uverbs_release_file,4,2     ## @ib_uverbs_release_file
	.no_dead_strip	_ib_uverbs_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_uverbs_close
_ib_uverbs_close:                       ; @ib_uverbs_close
	.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
	ldr	x20, [x1]
	ldr	x19, [x20, #16]
	add	x21, x20, #28
	mov	x0, x21
	bl	_mutex_lock
	ldr	x1, [x20, #32]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ib_uverbs_cleanup_ucontext
	str	xzr, [x20, #32]
LBB0_2:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_mutex_lock
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
; %bb.3:
	add	x0, x20, #24
	bl	_list_del
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_mutex_unlock
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _ib_uverbs_release_event_file@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_uverbs_release_event_file@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kref_put
LBB0_6:
	add	x0, x20, #4
Lloh3:
	adrp	x8, _ib_uverbs_release_file@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ib_uverbs_release_file@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kref_put
	mov	x0, x19
	bl	_kobject_put
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_uverbs_release_event_file,4,2 ; @ib_uverbs_release_event_file
	.comm	_ib_uverbs_release_file,4,2     ; @ib_uverbs_release_file
	.no_dead_strip	_ib_uverbs_close
.subsections_via_symbols
