	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scsp_slot_keyoff
_scsp_slot_keyoff:                      ## @scsp_slot_keyoff
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_SCSP_ENV_RELEASE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_scsp@GOTPCREL(%rip), %rax
	movq	%rdi, %rcx
	subq	(%rax), %rcx
	shrq	$4, %rcx
	imull	$-1431655765, %ecx, %esi        ## imm = 0xAAAAAAAB
	leaq	L_.str(%rip), %rdi
	callq	_SCSPLOG
	movq	(%rbx), %rcx
	movq	_SCSP_ENV_ATTACK@GOTPCREL(%rip), %rdx
	movq	_SCSP_ENV_DE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	%rax, %rcx
	subq	8(%rbx), %rcx
	movq	%rcx, 8(%rbx)
LBB0_3:
	leaq	32(%rbx), %rcx
	movq	%rcx, 40(%rbx)
	movq	%rax, 24(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_scsp_release_next@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCSP_ENV_RELEASE,8,3           ## @SCSP_ENV_RELEASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key off slot %d\n"

	.comm	_scsp,8,3                       ## @scsp
	.comm	_SCSP_ENV_ATTACK,8,3            ## @SCSP_ENV_ATTACK
	.comm	_SCSP_ENV_DE,8,3                ## @SCSP_ENV_DE
	.comm	_scsp_release_next,4,2          ## @scsp_release_next
	.no_dead_strip	_scsp_slot_keyoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scsp_slot_keyoff
_scsp_slot_keyoff:                      ; @scsp_slot_keyoff
	.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	x8, [x0]
Lloh0:
	adrp	x20, _SCSP_ENV_RELEASE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SCSP_ENV_RELEASE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _scsp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	x8, x0, x8
	lsr	x8, x8, #4
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w1, w8, w9
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SCSPLOG
Lloh7:
	adrp	x8, _SCSP_ENV_ATTACK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCSP_ENV_ATTACK@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh9:
	ldr	x10, [x8]
Lloh10:
	adrp	x8, _SCSP_ENV_DE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SCSP_ENV_DE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x19, #8]
	sub	x9, x8, x9
	str	x9, [x19, #8]
LBB0_3:
	add	x9, x19, #32
	str	x9, [x19, #40]
	str	x8, [x19, #24]
	ldr	x8, [x20]
	str	x8, [x19]
Lloh13:
	adrp	x8, _scsp_release_next@GOTPAGE
Lloh14:
	ldr	x8, [x8, _scsp_release_next@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SCSP_ENV_RELEASE,8,3           ; @SCSP_ENV_RELEASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key off slot %d\n"

	.comm	_scsp,8,3                       ; @scsp
	.comm	_SCSP_ENV_ATTACK,8,3            ; @SCSP_ENV_ATTACK
	.comm	_SCSP_ENV_DE,8,3                ; @SCSP_ENV_DE
	.comm	_scsp_release_next,4,2          ; @scsp_release_next
	.no_dead_strip	_scsp_slot_keyoff
.subsections_via_symbols
