	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_ucm_ctx_alloc
_ib_ucm_ctx_alloc:                      ## @ib_ucm_ctx_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	28(%rax), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	24(%rbx), %rdi
	callq	_init_completion
	movq	%r14, 16(%rbx)
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_ctx_id_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r12), %r8d
	movq	_ctx_id_table@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpq	$0, (%rbx)
	js	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ctx_id_mutex,4,2               ## @ctx_id_mutex
	.comm	_ctx_id_table,4,2               ## @ctx_id_table
	.no_dead_strip	_ib_ucm_ctx_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_ucm_ctx_alloc
_ib_ucm_ctx_alloc:                      ; @ib_ucm_ctx_alloc
	.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	x20, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	add	x0, x19, #28
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #24
	bl	_init_completion
	str	x20, [x19, #16]
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
Lloh2:
	adrp	x21, _ctx_id_mutex@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ctx_id_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	ldr	w4, [x22]
Lloh4:
	adrp	x0, _ctx_id_table@GOTPAGE
Lloh5:
	ldr	x0, [x0, _ctx_id_table@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_idr_alloc
	str	x0, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_3
; %bb.2:
	add	x0, x19, #8
	mov	x1, x20
	bl	_list_add_tail
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_4:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ctx_id_mutex,4,2               ; @ctx_id_mutex
	.comm	_ctx_id_table,4,2               ; @ctx_id_table
	.no_dead_strip	_ib_ucm_ctx_alloc
.subsections_via_symbols
