	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C_GetAttributeValue            ## -- Begin function C_GetAttributeValue
	.p2align	4, 0x90
_C_GetAttributeValue:                   ## @C_GetAttributeValue
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_INIT_CONTEXT
	movl	%r15d, %edi
	callq	_HANDLE_OBJECT_ID
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_st_logf
	leaq	-72(%rbp), %rsi
	movl	%r12d, %edi
	callq	_VERIFY_SESSION_HANDLE
	leaq	-56(%rbp), %rsi
	movl	%r15d, %edi
	callq	_object_handle_to_object
	movl	%eax, %r12d
	movq	_CKR_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_20
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.2:
	xorl	%r13d, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_st_logf
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	$-1, 8(%rsi,%r12,8)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	leaq	(,%r13,2), %r12
	addq	%r13, %r12
	leaq	(%rsi,%r12,8), %r15
	movq	(%rsi,%r12,8), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_st_logf
	movq	-56(%rbp), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx), %rcx
	movl	$16, %ebx
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, -16(%rcx,%rbx)
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r15), %rdx
	cmpq	-8(%rcx,%rbx), %rdx
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	addq	$32, %rbx
	cmpq	%r14, %rax
	jne	LBB0_6
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%eax, %r14d
	je	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	$-1, %rcx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rsi,%r12,8), %rdi
	movq	_NULL_PTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx,%rbx), %rdx
	cmpq	%rdx, 8(%rsi,%r12,8)
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rcx,%rbx), %esi
	callq	_memcpy
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rax
	movq	8(%rax), %rcx
	movl	(%rax), %eax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx,%rbx), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, 8(%rsi,%r12,8)
	cmpl	%eax, %r14d
	je	LBB0_16
	jmp	LBB0_17
LBB0_20:
	movl	%r15d, %edi
	callq	_HANDLE_OBJECT_ID
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_st_logf
	jmp	LBB0_19
LBB0_18:
	movq	_CKR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %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	"GetAttributeValue: %lx\n"

	.comm	_CKR_OK,4,2                     ## @CKR_OK
L_.str.1:                               ## @.str.1
	.asciz	"object not found: %lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"\tgetting 0x%08lx\n"

	.comm	_NULL_PTR,8,3                   ## @NULL_PTR
L_.str.3:                               ## @.str.3
	.asciz	"key type: 0x%08lx not found\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C_GetAttributeValue            ; -- Begin function C_GetAttributeValue
	.p2align	2
_C_GetAttributeValue:                   ; @C_GetAttributeValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_INIT_CONTEXT
	mov	x0, x21
	bl	_HANDLE_OBJECT_ID
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_st_logf
	add	x1, sp, #8
	mov	x0, x22
	bl	_VERIFY_SESSION_HANDLE
	mov	x1, sp
	mov	x0, x21
	bl	_object_handle_to_object
	mov	x22, x0
Lloh2:
	adrp	x8, _CKR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CKR_OK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.1:
	cbz	x19, LBB0_19
; %bb.2:
	mov	x24, #0
Lloh5:
	adrp	x21, l_.str.2@PAGE
Lloh6:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	w25, #24
	mov	x27, #-1
Lloh7:
	adrp	x22, l_.str.3@PAGE
Lloh8:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x28]
	mov	x0, x22
	bl	_st_logf
	madd	x8, x24, x25, x20
	str	x27, [x8, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x24, x19
	b.eq	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	madd	x28, x24, x25, x20
	ldr	x1, [x28]
	mov	x0, x21
	bl	_st_logf
	ldr	x9, [sp]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
	mov	x23, #0
	ldr	x9, [x9, #8]
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9, x26]
	cbnz	x10, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x28]
	add	x11, x9, x26
	ldr	x11, [x11, #8]
	cmp	x10, x11
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	add	x26, x26, #32
	cmp	x8, x23
	b.ne	LBB0_7
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #0
	cmp	w23, w8
	b.eq	LBB0_3
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, #-1
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x24, x25, x20
	ldr	x0, [x10, #16]
Lloh9:
	adrp	x10, _NULL_PTR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NULL_PTR@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x0, x10
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x24, x25, x20
	ldr	x11, [x10, #8]
	add	x10, x9, x26
	ldr	x2, [x10, #16]
	cmp	x11, x2
	b.lo	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x10, #24]
	bl	_memcpy
	ldr	x8, [sp]
	ldr	x9, [x8, #8]
	ldr	w8, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, x26
	ldr	x9, [x9, #16]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x24, x25, x20
	str	x9, [x10, #8]
	cmp	w23, w8
	b.eq	LBB0_3
	b	LBB0_4
LBB0_17:
	mov	x0, x21
	bl	_HANDLE_OBJECT_ID
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_st_logf
	b	LBB0_19
LBB0_18:
Lloh14:
	adrp	x8, _CKR_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CKR_OK@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetAttributeValue: %lx\n"

	.comm	_CKR_OK,4,2                     ; @CKR_OK
l_.str.1:                               ; @.str.1
	.asciz	"object not found: %lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"\tgetting 0x%08lx\n"

	.comm	_NULL_PTR,8,3                   ; @NULL_PTR
l_.str.3:                               ; @.str.3
	.asciz	"key type: 0x%08lx not found\n"

.subsections_via_symbols
