	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BecomeLockGroupMember          ## -- Begin function BecomeLockGroupMember
	.p2align	4, 0x90
_BecomeLockGroupMember:                 ## @BecomeLockGroupMember
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MyProc@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	%rbx, (%r13)
	setne	%dil
	callq	_Assert
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	$0, 16(%rax)
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setne	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_LockHashPartitionLockByProc
	movq	%rax, %r15
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LWLockAcquire
	xorl	%r12d, %r12d
	cmpl	%r14d, (%rbx)
	jne	LBB0_3
## %bb.1:
	cmpq	%rbx, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	(%r13), %rsi
	movq	%rbx, 16(%rsi)
	addq	$8, %rbx
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_dlist_push_tail
	movl	$1, %r12d
LBB0_3:
	movq	%r15, %rdi
	callq	_LWLockRelease
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BecomeLockGroupMember          ; -- Begin function BecomeLockGroupMember
	.p2align	2
_BecomeLockGroupMember:                 ; @BecomeLockGroupMember
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MyProc@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MyProc@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	cmp	w21, #0
	cset	w0, ne
	bl	_Assert
	mov	x0, x19
	bl	_LockHashPartitionLockByProc
	mov	x20, x0
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, x19
	b.eq	LBB0_3
LBB0_2:
	mov	w19, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x22]
	str	x19, [x8, #16]
	add	x0, x19, #8
	add	x1, x8, #4
	bl	_dlist_push_tail
	mov	w19, #1
LBB0_4:
	mov	x0, x20
	bl	_LWLockRelease
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
.subsections_via_symbols
