	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_gctx_mutex_choose
_prof_gctx_mutex_choose:                ## @prof_gctx_mutex_choose
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cum_gctxs@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_fetch_add_u
	decl	%eax
	movq	_PROF_NCTX_LOCKS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
                                        ## kill: def $edx killed $edx def $rdx
	movq	_gctx_locks@GOTPCREL(%rip), %rcx
	leaq	(,%rdx,4), %rax
	addq	(%rcx), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cum_gctxs,4,2                  ## @cum_gctxs
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
	.comm	_gctx_locks,8,3                 ## @gctx_locks
	.comm	_PROF_NCTX_LOCKS,4,2            ## @PROF_NCTX_LOCKS
	.no_dead_strip	_prof_gctx_mutex_choose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_gctx_mutex_choose
_prof_gctx_mutex_choose:                ; @prof_gctx_mutex_choose
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ATOMIC_RELAXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATOMIC_RELAXED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, _cum_gctxs@GOTPAGE
Lloh4:
	ldr	x0, [x0, _cum_gctxs@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_fetch_add_u
Lloh5:
	adrp	x8, _gctx_locks@GOTPAGE
Lloh6:
	ldr	x8, [x8, _gctx_locks@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _PROF_NCTX_LOCKS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PROF_NCTX_LOCKS@GOTPAGEOFF]
	sub	w10, w0, #1
Lloh10:
	ldr	w9, [x9]
	udiv	w11, w10, w9
	msub	w9, w11, w9, w10
	add	x0, x8, w9, uxtw #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cum_gctxs,4,2                  ; @cum_gctxs
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
	.comm	_gctx_locks,8,3                 ; @gctx_locks
	.comm	_PROF_NCTX_LOCKS,4,2            ; @PROF_NCTX_LOCKS
	.no_dead_strip	_prof_gctx_mutex_choose
.subsections_via_symbols
