	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s_unlock_sema                  ## -- Begin function s_unlock_sema
	.p2align	4, 0x90
_s_unlock_sema:                         ## @s_unlock_sema
	.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
	movslq	(%rdi), %rbx
	testq	%rbx, %rbx
	jle	LBB0_2
## %bb.1:
	movq	_NUM_SPINLOCK_SEMAPHORES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_3
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_elog
LBB0_3:
	movq	_SpinlockSemaArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-4(%rax,%rbx,4), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PGSemaphoreUnlock              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_SPINLOCK_SEMAPHORES,4,2    ## @NUM_SPINLOCK_SEMAPHORES
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid spinlock number: %d"

	.comm	_SpinlockSemaArray,8,3          ## @SpinlockSemaArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s_unlock_sema                  ; -- Begin function s_unlock_sema
	.p2align	2
_s_unlock_sema:                         ; @s_unlock_sema
	.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	w2, [x0]
Lloh0:
	adrp	x8, _NUM_SPINLOCK_SEMAPHORES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_SPINLOCK_SEMAPHORES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w19, w2, #1
	ccmp	w2, w8, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh8:
	adrp	x8, _SpinlockSemaArray@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SpinlockSemaArray@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w0, [x8, w19, sxtw #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PGSemaphoreUnlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_SPINLOCK_SEMAPHORES,4,2    ; @NUM_SPINLOCK_SEMAPHORES
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid spinlock number: %d"

	.comm	_SpinlockSemaArray,8,3          ; @SpinlockSemaArray
.subsections_via_symbols
