	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvp_release_lock
_kvp_release_lock:                      ## @kvp_release_lock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	$0, -36(%rbp)
	movq	_F_UNLCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$0, -20(%rbp)
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, -40(%rbp)
	movq	_kvp_pools@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_F_SETLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_1
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, %edi
	callq	_kvp_release_lock.cold.1
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function kvp_release_lock.cold.1
_kvp_release_lock.cold.1:               ## @kvp_release_lock.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_KVP_LOG
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_F_UNLCK,4,2                    ## @F_UNLCK
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_kvp_pools,8,3                  ## @kvp_pools
	.comm	_F_SETLK,4,2                    ## @F_SETLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fcntl"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to release the lock pool: %d\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_kvp_release_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvp_release_lock
_kvp_release_lock:                      ; @kvp_release_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stur	d0, [sp, #4]
Lloh0:
	adrp	x8, _F_UNLCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_UNLCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
	stur	d0, [sp, #20]
	bl	_getpid
	str	w0, [sp]
Lloh6:
	adrp	x8, _kvp_pools@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kvp_pools@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8, w19, sxtw #2]
Lloh9:
	adrp	x8, _F_SETLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_SETLK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	mov	x0, x19
	bl	_kvp_release_lock.cold.1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function kvp_release_lock.cold.1
_kvp_release_lock.cold.1:               ; @kvp_release_lock.cold.1
	.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
	mov	x19, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh14:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_KVP_LOG
Lloh19:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_F_UNLCK,4,2                    ; @F_UNLCK
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_kvp_pools,8,3                  ; @kvp_pools
	.comm	_F_SETLK,4,2                    ; @F_SETLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fcntl"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to release the lock pool: %d\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_kvp_release_lock
.subsections_via_symbols
