	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_new_lock_ctx
_handle_new_lock_ctx:                   ## @handle_new_lock_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	%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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GIT_MAX_RAWSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.2:
	movq	16(%r15), %rbx
	movl	8(%r15), %edi
	movq	_DAV_ACTIVELOCK_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	8(%r15), %edi
	movq	_DAV_ACTIVELOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movl	8(%r15), %edi
	movq	_DAV_ACTIVELOCK_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r15), %rdi
	callq	_xstrdup
	movq	%rax, 8(%rbx)
	movq	_the_hash_algo@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	leaq	-56(%rbp), %rdi
	callq	*24(%rax)
	movq	(%r15), %rax
	movq	16(%rax), %r15
	movq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_strlen
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	*%r15
	movq	_the_hash_algo@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	callq	*8(%rax)
	movq	(%rbx), %rax
	movb	$95, (%rax)
	movq	(%rbx), %rbx
	incq	%rbx
	movq	%r14, %rdi
	callq	_hash_to_hex
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_memcpy
	jmp	LBB0_9
LBB0_3:
	movq	(%r15), %rdi
	callq	_xstrdup
	movq	%rax, 24(%rbx)
	jmp	LBB0_9
LBB0_5:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, 16(%rbx)
LBB0_9:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GIT_MAX_RAWSZ,4,2              ## @GIT_MAX_RAWSZ
	.comm	_DAV_ACTIVELOCK_OWNER,4,2       ## @DAV_ACTIVELOCK_OWNER
	.comm	_DAV_ACTIVELOCK_TIMEOUT,4,2     ## @DAV_ACTIVELOCK_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Second-"

	.comm	_DAV_ACTIVELOCK_TOKEN,4,2       ## @DAV_ACTIVELOCK_TOKEN
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.no_dead_strip	_handle_new_lock_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_new_lock_ctx
_handle_new_lock_ctx:                   ; @handle_new_lock_ctx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x22, [x0, #16]
Lloh3:
	adrp	x8, _GIT_MAX_RAWSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIT_MAX_RAWSZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	cbz	w1, LBB0_9
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w0, [x20, #8]
Lloh8:
	adrp	x8, _DAV_ACTIVELOCK_OWNER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DAV_ACTIVELOCK_OWNER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x20, #8]
Lloh11:
	adrp	x8, _DAV_ACTIVELOCK_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DAV_ACTIVELOCK_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x20, #8]
Lloh14:
	adrp	x8, _DAV_ACTIVELOCK_TOKEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DAV_ACTIVELOCK_TOKEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_strcmp
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x0, [x20]
	bl	_xstrdup
	str	x0, [x22, #8]
Lloh17:
	adrp	x23, _the_hash_algo@GOTPAGE
Lloh18:
	ldr	x23, [x23, _the_hash_algo@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8, #24]
	sub	x0, x29, #64
	blr	x8
	ldr	x8, [x23]
	ldr	x24, [x8, #16]
	ldr	x20, [x22, #8]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #64
	mov	x1, x20
	blr	x24
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	sub	x1, x29, #64
	mov	x0, x19
	blr	x8
	ldr	x8, [x22]
	mov	w9, #95
	strb	w9, [x8]
	ldr	x8, [x22]
	add	x20, x8, #1
	mov	x0, x19
	bl	_hash_to_hex
	mov	x1, x0
	ldr	x8, [x23]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_memcpy
	b	LBB0_9
LBB0_6:
	ldr	x0, [x20]
	bl	_xstrdup
	str	x0, [x22, #24]
	b	LBB0_9
LBB0_7:
	ldr	x0, [x20]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #64
	bl	_skip_prefix
	cbz	x0, LBB0_9
; %bb.8:
	ldur	x0, [x29, #-64]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	str	w0, [x22, #16]
LBB0_9:
	mov	sp, x21
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GIT_MAX_RAWSZ,4,2              ; @GIT_MAX_RAWSZ
	.comm	_DAV_ACTIVELOCK_OWNER,4,2       ; @DAV_ACTIVELOCK_OWNER
	.comm	_DAV_ACTIVELOCK_TIMEOUT,4,2     ; @DAV_ACTIVELOCK_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Second-"

	.comm	_DAV_ACTIVELOCK_TOKEN,4,2       ; @DAV_ACTIVELOCK_TOKEN
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.no_dead_strip	_handle_new_lock_ctx
.subsections_via_symbols
