	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_session
_close_session:                         ## @close_session
	.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
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_application_error
	movq	%rbx, %rdi
	callq	_find_object_final
LBB0_2:
	movq	_CK_INVALID_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_NULL_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_soft_token@GOTPCREL(%rip), %rcx
	movq	%rax, 8(%rcx)
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reset_crypto_state             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"application didn't do C_FindObjectsFinal\n"

	.comm	_CK_INVALID_HANDLE,4,2          ## @CK_INVALID_HANDLE
	.comm	_NULL_PTR,8,3                   ## @NULL_PTR
	.comm	_soft_token,16,3                ## @soft_token
	.no_dead_strip	_close_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_session
_close_session:                         ; @close_session
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_application_error
	mov	x0, x19
	bl	_find_object_final
LBB0_2:
Lloh2:
	adrp	x8, _CK_INVALID_HANDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CK_INVALID_HANDLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh5:
	adrp	x8, _NULL_PTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NULL_PTR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _soft_token@GOTPAGE
Lloh9:
	ldr	x9, [x9, _soft_token@GOTPAGEOFF]
	stp	x8, x8, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reset_crypto_state
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"application didn't do C_FindObjectsFinal\n"

	.comm	_CK_INVALID_HANDLE,4,2          ; @CK_INVALID_HANDLE
	.comm	_NULL_PTR,8,3                   ; @NULL_PTR
	.comm	_soft_token,16,3                ; @soft_token
	.no_dead_strip	_close_session
.subsections_via_symbols
