	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C_GetSessionInfo               ## -- Begin function C_GetSessionInfo
	.p2align	4, 0x90
_C_GetSessionInfo:                      ## @C_GetSessionInfo
	.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	%rsi, %rbx
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_st_logf
	xorl	%eax, %eax
	callq	_INIT_CONTEXT
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_VERIFY_SESSION_HANDLE
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$24, %edx
	callq	_memset
	movl	$1, (%rbx)
	movq	_soft_token@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_CKS_RO_PUBLIC_SESSION@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CKS_RO_USER_FUNCTIONS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_CKF_SERIAL_SESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_CKR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetSessionInfo\n"

	.comm	_soft_token,8,3                 ## @soft_token
	.comm	_CKS_RO_USER_FUNCTIONS,4,2      ## @CKS_RO_USER_FUNCTIONS
	.comm	_CKS_RO_PUBLIC_SESSION,4,2      ## @CKS_RO_PUBLIC_SESSION
	.comm	_CKF_SERIAL_SESSION,4,2         ## @CKF_SERIAL_SESSION
	.comm	_CKR_OK,4,2                     ## @CKR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C_GetSessionInfo               ; -- Begin function C_GetSessionInfo
	.p2align	2
_C_GetSessionInfo:                      ; @C_GetSessionInfo
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_st_logf
	bl	_INIT_CONTEXT
	mov	x0, x20
	mov	x1, #0
	bl	_VERIFY_SESSION_HANDLE
	mov	x0, x19
	mov	w1, #20
	mov	w2, #24
	bl	_memset
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x8, _soft_token@GOTPAGE
Lloh3:
	ldr	x8, [x8, _soft_token@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _CKS_RO_PUBLIC_SESSION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CKS_RO_PUBLIC_SESSION@GOTPAGEOFF]
Lloh7:
	adrp	x10, _CKS_RO_USER_FUNCTIONS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CKS_RO_USER_FUNCTIONS@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CKF_SERIAL_SESSION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CKF_SERIAL_SESSION@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	str	xzr, [x19, #8]
Lloh12:
	adrp	x8, _CKR_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CKR_OK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetSessionInfo\n"

	.comm	_soft_token,8,3                 ; @soft_token
	.comm	_CKS_RO_USER_FUNCTIONS,4,2      ; @CKS_RO_USER_FUNCTIONS
	.comm	_CKS_RO_PUBLIC_SESSION,4,2      ; @CKS_RO_PUBLIC_SESSION
	.comm	_CKF_SERIAL_SESSION,4,2         ; @CKF_SERIAL_SESSION
	.comm	_CKR_OK,4,2                     ; @CKR_OK
.subsections_via_symbols
