	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C_GetSlotInfo                  ## -- Begin function C_GetSlotInfo
	.p2align	4, 0x90
_C_GetSlotInfo:                         ## @C_GetSlotInfo
	.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
	xorl	%eax, %eax
	callq	_INIT_CONTEXT
	xorl	%eax, %eax
	callq	_has_session
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_st_logf
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$56, %edx
	callq	_memset
	cmpl	$1, %r14d
	jne	LBB0_1
## %bb.2:
	movq	48(%rbx), %rdi
	leaq	L_.str.1(%rip), %r14
	movl	$8, %esi
	movl	$32, %edx
	movq	%r14, %rcx
	callq	_snprintf_fill
	movq	40(%rbx), %rdi
	movl	$8, %esi
	movl	$32, %edx
	movq	%r14, %rcx
	callq	_snprintf_fill
	movq	_CKF_TOKEN_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_soft_token@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CKF_HW_SLOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 32(%rbx)
LBB0_4:
	movl	$1, 16(%rbx)
	movq	$0, 24(%rbx)
	movl	$1, (%rbx)
	movq	$0, 8(%rbx)
	movq	_CKR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_CKR_ARGUMENTS_BAD@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetSlotInfo: slot: %d : %s\n"

	.comm	_CKR_ARGUMENTS_BAD,4,2          ## @CKR_ARGUMENTS_BAD
L_.str.1:                               ## @.str.1
	.asciz	"Heimdal hx509 SoftToken (slot)"

	.comm	_CKF_TOKEN_PRESENT,4,2          ## @CKF_TOKEN_PRESENT
	.comm	_soft_token,8,3                 ## @soft_token
	.comm	_CKF_HW_SLOT,4,2                ## @CKF_HW_SLOT
	.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_GetSlotInfo                  ; -- Begin function C_GetSlotInfo
	.p2align	2
_C_GetSlotInfo:                         ; @C_GetSlotInfo
	.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
	bl	_INIT_CONTEXT
	bl	_has_session
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_st_logf
	mov	x0, x19
	mov	w1, #18
	mov	w2, #56
	bl	_memset
	cmp	w20, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [x19, #48]
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, #40]
	mov	w1, #8
	mov	w2, #32
	mov	x3, x20
	bl	_snprintf_fill
Lloh4:
	adrp	x8, _CKF_TOKEN_PRESENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CKF_TOKEN_PRESENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh7:
	adrp	x9, _soft_token@GOTPAGE
Lloh8:
	ldr	x9, [x9, _soft_token@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.2:
Lloh10:
	adrp	x9, _CKF_HW_SLOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CKF_HW_SLOT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_3:
	mov	w8, #1
	str	w8, [x19, #16]
	str	xzr, [x19, #24]
	str	w8, [x19]
	str	xzr, [x19, #8]
Lloh13:
	adrp	x8, _CKR_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CKR_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _CKR_ARGUMENTS_BAD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CKR_ARGUMENTS_BAD@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetSlotInfo: slot: %d : %s\n"

	.comm	_CKR_ARGUMENTS_BAD,4,2          ; @CKR_ARGUMENTS_BAD
l_.str.1:                               ; @.str.1
	.asciz	"Heimdal hx509 SoftToken (slot)"

	.comm	_CKF_TOKEN_PRESENT,4,2          ; @CKF_TOKEN_PRESENT
	.comm	_soft_token,8,3                 ; @soft_token
	.comm	_CKF_HW_SLOT,4,2                ; @CKF_HW_SLOT
	.comm	_CKR_OK,4,2                     ; @CKR_OK
.subsections_via_symbols
