	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LockReassignOwner
_LockReassignOwner:                     ## @LockReassignOwner
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %rbx
	testq	%rbx, %rbx
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %r8
	movq	8(%rdi), %r9
	movl	%ebx, %r12d
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	cmpl	$1, %ebx
	jne	LBB0_3
## %bb.2:
	movl	$-1, %r15d
	movq	%r12, %rax
	movl	$-1, %edx
	testb	$1, %r12b
	jne	LBB0_7
	jmp	LBB0_8
LBB0_3:
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leal	-2(%rbx), %r10d
	leal	-1(%r12), %r11d
	movl	%r12d, %r8d
	andl	$-2, %r8d
	negq	%r8
	movl	$-1, %r15d
	xorl	%eax, %eax
	movl	$-1, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%rax), %edi
	decl	%edi
	leal	(%r11,%rax), %r14d
	shlq	$4, %rdi
	movq	(%r9,%rdi), %rdi
	cmpq	%rsi, %rdi
	movl	%r15d, %ebx
	cmovel	%r14d, %ebx
	cmpq	%r13, %rdi
	cmovel	%r14d, %edx
	cmovel	%r15d, %ebx
	leal	(%r12,%rax), %edi
	addl	$-2, %edi
	leal	(%r10,%rax), %ecx
	shlq	$4, %rdi
	movq	(%r9,%rdi), %rdi
	cmpq	%rsi, %rdi
	movl	%ebx, %r15d
	cmovel	%ecx, %r15d
	cmpq	%r13, %rdi
	cmovel	%ecx, %edx
	cmovel	%ebx, %r15d
	addq	$-2, %rax
	cmpq	%rax, %r8
	jne	LBB0_4
## %bb.5:
	addq	%r12, %rax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testb	$1, %r12b
	je	LBB0_8
LBB0_7:
	decq	%rax
	movl	%eax, %ecx
	shlq	$4, %rcx
	movq	(%r9,%rcx), %rcx
	cmpq	%rsi, %rcx
	movl	%r15d, %edi
	cmovel	%eax, %edi
	cmpq	%r13, %rcx
	cmovel	%eax, %edx
	cmovnel	%edi, %r15d
LBB0_8:
	testl	%edx, %edx
	js	LBB0_14
## %bb.9:
	movl	%edx, %eax
	shlq	$4, %rax
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.11:
	movq	8(%r9,%rax), %rcx
	movl	%r15d, %esi
	shlq	$4, %rsi
	addq	%rcx, 8(%r9,%rsi)
	decq	%rbx
	movl	%ebx, (%r8)
	cmpl	%ebx, %edx
	jge	LBB0_13
## %bb.12:
	shlq	$4, %rbx
	movups	(%r9,%rbx), %xmm0
	movups	%xmm0, (%r9,%rax)
	jmp	LBB0_13
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rsi, (%r9,%rax)
	movq	%rsi, %rdi
	movq	%r8, %rsi
	movq	%r8, %rbx
	callq	_ResourceOwnerRememberLock
	movq	%rbx, %r8
LBB0_13:
	movq	(%r14), %rdi
	movq	%r8, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ResourceOwnerForgetLock        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.no_dead_strip	_LockReassignOwner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LockReassignOwner
_LockReassignOwner:                     ; @LockReassignOwner
	.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
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _CurrentResourceOwner@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	x12, [x20]
	mov	w11, #-1
	mov	x13, x9
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	x14, x13, #1
	and	x15, x14, #0xffffffff
	lsl	x15, x15, #4
	ldr	x15, [x8, x15]
	cmp	x15, x1
	csel	w16, w14, w11, eq
	cmp	x15, x12
	csel	w10, w14, w10, eq
	csel	w11, w11, w16, eq
	subs	x13, x13, #1
	b.hi	LBB0_2
; %bb.3:
	tbnz	w10, #31, LBB0_7
; %bb.4:
	tbnz	w11, #31, LBB0_8
; %bb.5:
	add	x12, x8, x10, lsl #4
	ldr	x12, [x12, #8]
	add	x11, x8, w11, uxtw #4
	ldr	x13, [x11, #8]
	add	x12, x13, x12
	str	x12, [x11, #8]
	sub	w9, w9, #1
	str	w9, [x19]
	cmp	w10, w9
	b.ge	LBB0_9
; %bb.6:
	ldr	q0, [x8, w9, sxtw #4]
	str	q0, [x8, x10, lsl #4]
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	lsl	x9, x10, #4
	str	x1, [x8, x9]
	mov	x0, x1
	mov	x1, x19
	bl	_ResourceOwnerRememberLock
LBB0_9:
	ldr	x0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ResourceOwnerForgetLock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.no_dead_strip	_LockReassignOwner
.subsections_via_symbols
