	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function C_GetTokenInfo
LCPI0_0:
	.long	4711                            ## 0x1267
	.long	4712                            ## 0x1268
	.long	4713                            ## 0x1269
	.long	4714                            ## 0x126a
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_C_GetTokenInfo
	.p2align	4, 0x90
_C_GetTokenInfo:                        ## @C_GetTokenInfo
	.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
	xorl	%eax, %eax
	callq	_INIT_CONTEXT
	xorl	%eax, %eax
	callq	_has_session
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_st_logf
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$128, %edx
	callq	_memset
	movq	120(%rbx), %rdi
	leaq	L_.str.1(%rip), %r14
	movl	$8, %esi
	movl	$32, %edx
	movq	%r14, %rcx
	callq	_snprintf_fill
	movq	112(%rbx), %rdi
	movl	$8, %esi
	movl	$32, %edx
	movq	%r14, %rcx
	callq	_snprintf_fill
	movq	104(%rbx), %rdi
	movl	$8, %esi
	movl	$32, %edx
	movq	%r14, %rcx
	callq	_snprintf_fill
	movq	96(%rbx), %rdi
	leaq	L_.str.2(%rip), %rcx
	movl	$8, %esi
	movl	$32, %edx
	callq	_snprintf_fill
	movq	_CKF_TOKEN_INITIALIZED@GOTPCREL(%rip), %rax
	movq	_CKF_USER_PIN_INITIALIZED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_soft_token@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_2
## %bb.1:
	movq	_CKF_LOGIN_REQUIRED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	movq	_MAX_NUM_SESSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 88(%rbx)
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	%rcx, 72(%rbx)
	movl	%eax, 64(%rbx)
	movl	$1024, 4(%rbx)                  ## imm = 0x400
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4711,4712,4713,4714]
	movups	%xmm0, 8(%rbx)
	movl	$2, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movl	$2, 24(%rbx)
	movq	$0, 32(%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	"GetTokenInfo: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Heimdal hx509 SoftToken (token)"

L_.str.2:                               ## @.str.2
	.asciz	"4711"

	.comm	_CKF_TOKEN_INITIALIZED,4,2      ## @CKF_TOKEN_INITIALIZED
	.comm	_CKF_USER_PIN_INITIALIZED,4,2   ## @CKF_USER_PIN_INITIALIZED
	.comm	_soft_token,16,3                ## @soft_token
	.comm	_CKF_LOGIN_REQUIRED,4,2         ## @CKF_LOGIN_REQUIRED
	.comm	_MAX_NUM_SESSION,8,3            ## @MAX_NUM_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
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function C_GetTokenInfo
lCPI0_0:
	.long	4711                            ; 0x1267
	.long	4712                            ; 0x1268
	.long	4713                            ; 0x1269
	.long	4714                            ; 0x126a
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_C_GetTokenInfo
	.p2align	2
_C_GetTokenInfo:                        ; @C_GetTokenInfo
	.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
	bl	_INIT_CONTEXT
	bl	_has_session
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_st_logf
	mov	x0, x19
	mov	w1, #19
	mov	w2, #128
	bl	_memset
	ldr	x0, [x19, #120]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	w1, #8
	mov	w2, #32
	mov	x3, x20
	bl	_snprintf_fill
	ldr	x0, [x19, #112]
	mov	w1, #8
	mov	w2, #32
	mov	x3, x20
	bl	_snprintf_fill
	ldr	x0, [x19, #104]
	mov	w1, #8
	mov	w2, #32
	mov	x3, x20
	bl	_snprintf_fill
	ldr	x0, [x19, #96]
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w1, #8
	mov	w2, #32
	bl	_snprintf_fill
Lloh6:
	adrp	x8, _CKF_TOKEN_INITIALIZED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CKF_TOKEN_INITIALIZED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CKF_USER_PIN_INITIALIZED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CKF_USER_PIN_INITIALIZED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w9, w8
	str	w9, [x19]
Lloh12:
	adrp	x8, _soft_token@GOTPAGE
Lloh13:
	ldr	x8, [x8, _soft_token@GOTPAGEOFF]
	ldr	x10, [x8, #8]
	cbnz	x10, LBB0_2
; %bb.1:
Lloh14:
	adrp	x10, _CKF_LOGIN_REQUIRED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CKF_LOGIN_REQUIRED@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_2:
Lloh17:
	adrp	x9, _MAX_NUM_SESSION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MAX_NUM_SESSION@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	x9, [x19, #88]
	ldr	w8, [x8]
	str	w8, [x19, #80]
	str	x9, [x19, #72]
	str	w8, [x19, #64]
	mov	w8, #1024
	str	w8, [x19, #4]
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #8]
	mov	w8, #2
	str	w8, [x19, #40]
	stp	xzr, xzr, [x19, #48]
	str	w8, [x19, #24]
	str	xzr, [x19, #32]
Lloh22:
	adrp	x8, _CKR_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CKR_OK@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetTokenInfo: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Heimdal hx509 SoftToken (token)"

l_.str.2:                               ; @.str.2
	.asciz	"4711"

	.comm	_CKF_TOKEN_INITIALIZED,4,2      ; @CKF_TOKEN_INITIALIZED
	.comm	_CKF_USER_PIN_INITIALIZED,4,2   ; @CKF_USER_PIN_INITIALIZED
	.comm	_soft_token,16,3                ; @soft_token
	.comm	_CKF_LOGIN_REQUIRED,4,2         ; @CKF_LOGIN_REQUIRED
	.comm	_MAX_NUM_SESSION,8,3            ; @MAX_NUM_SESSION
	.comm	_CKR_OK,4,2                     ; @CKR_OK
.subsections_via_symbols
