	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C_Login                        ## -- Begin function C_Login
	.p2align	4, 0x90
_C_Login:                               ## @C_Login
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	$0, -48(%rbp)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_INIT_CONTEXT
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_st_logf
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_VERIFY_SESSION_HANDLE
	movq	_NULL_PTR@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_asprintf
	movq	-48(%rbp), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_st_logf
	movq	-48(%rbp), %r13
LBB0_2:
	movq	_soft_token@GOTPCREL(%rip), %r15
	movl	4(%r15), %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_read_conf_file
	movq	_CKR_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r15)
LBB0_4:
	movq	-48(%rbp), %rdi
	callq	_free
	cmpl	$0, (%r15)
	jne	LBB0_6
## %bb.5:
	movq	_CKR_PIN_INCORRECT@GOTPCREL(%rip), %rbx
LBB0_6:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Login\n"

	.comm	_NULL_PTR,4,2                   ## @NULL_PTR
L_.str.1:                               ## @.str.1
	.asciz	"%.*s"

L_.str.2:                               ## @.str.2
	.asciz	"type: %d password: %s\n"

	.comm	_soft_token,8,2                 ## @soft_token
	.comm	_CKR_OK,8,3                     ## @CKR_OK
	.comm	_CKR_PIN_INCORRECT,8,3          ## @CKR_PIN_INCORRECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C_Login                        ; -- Begin function C_Login
	.p2align	2
_C_Login:                               ; @C_Login
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	str	xzr, [sp, #24]
	bl	_INIT_CONTEXT
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_st_logf
	mov	x0, x22
	mov	x1, #0
	bl	_VERIFY_SESSION_HANDLE
	mov	x2, #0
Lloh2:
	adrp	x8, _NULL_PTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NULL_PTR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	x2, x21
	mov	x3, x20
	bl	_asprintf
	ldr	x8, [sp, #24]
	stp	x19, x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_st_logf
	ldr	x2, [sp, #24]
LBB0_2:
Lloh9:
	adrp	x20, _soft_token@GOTPAGE
Lloh10:
	ldr	x20, [x20, _soft_token@GOTPAGEOFF]
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_read_conf_file
Lloh11:
	adrp	x19, _CKR_OK@GOTPAGE
Lloh12:
	ldr	x19, [x19, _CKR_OK@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
	ldr	x0, [sp, #24]
	bl	_free
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _CKR_PIN_INCORRECT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CKR_PIN_INCORRECT@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x19, eq
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Login\n"

	.comm	_NULL_PTR,4,2                   ; @NULL_PTR
l_.str.1:                               ; @.str.1
	.asciz	"%.*s"

l_.str.2:                               ; @.str.2
	.asciz	"type: %d password: %s\n"

	.comm	_soft_token,8,2                 ; @soft_token
	.comm	_CKR_OK,8,3                     ; @CKR_OK
	.comm	_CKR_PIN_INCORRECT,8,3          ; @CKR_PIN_INCORRECT
.subsections_via_symbols
