	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_get_ctx
_ucma_get_ctx:                          ## @ucma_get_ctx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	__ucma_find_context
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_atomic_inc
LBB0_4:
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mut,4,2                        ## @mut
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ucma_get_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_get_ctx
_ucma_get_ctx:                          ; @ucma_get_ctx
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _mut@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	__ucma_find_context
	mov	x19, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_atomic_inc
LBB0_4:
Lloh5:
	adrp	x0, _mut@GOTPAGE
Lloh6:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_mut,4,2                        ; @mut
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ucma_get_ctx
.subsections_via_symbols
