	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spkm3_make_token               ## -- Begin function spkm3_make_token
	.p2align	4, 0x90
_spkm3_make_token:                      ## @spkm3_make_token
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -152(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -144(%rbp)
	movl	$0, -128(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, -120(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -112(%rbp)
	movl	$0, -100(%rbp)
	movl	$0, -108(%rbp)
	movl	8(%rdi), %esi
	cmpl	$16, %esi
	jne	LBB0_1
## %bb.2:
	movl	%ecx, %r12d
	movq	%rdi, %rbx
	addq	$28, %rdi
	movq	_hmac_md5_oid@GOTPCREL(%rip), %rsi
	callq	_g_OID_equal
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_CKSUMTYPE_HMAC_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	24(%rbx), %rdi
	movq	_cast5_cbc_oid@GOTPCREL(%rip), %rsi
	callq	_g_OID_equal
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_SPKM_MIC_TOK@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_9
## %bb.7:
	leaq	-120(%rbp), %r12
	leaq	8(%rbx), %rdi
	leaq	-104(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	callq	_asn1_bitstring_len
	movq	16(%rbx), %rdx
	movl	-104(%rbp), %ecx
	movl	-112(%rbp), %r8d
	leaq	-128(%rbp), %rsi
	movq	%r12, %rdi
	callq	_spkm3_mic_header
	leaq	4(%rbx), %rsi
	movq	-120(%rbp), %rdx
	movl	-128(%rbp), %ecx
	leaq	-152(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%r13d, %edi
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_make_spkm3_checksum
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	leaq	-152(%rbp), %r15
	leaq	-100(%rbp), %rsi
	leaq	-108(%rbp), %rdx
	movq	%r15, %rdi
	callq	_asn1_bitstring_len
	movl	-104(%rbp), %eax
	movl	-100(%rbp), %ecx
	leal	(%rax,%rcx), %r12d
	addl	$12, %r12d
	leal	(%rax,%rcx), %r13d
	addl	$14, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_g_token_size
	movl	%eax, (%r14)
	movq	8(%r14), %rax
	movq	%rax, -136(%rbp)
	leaq	-136(%rbp), %r14
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_g_make_token_header
	movl	-100(%rbp), %r8d
	movl	-108(%rbp), %r9d
	leaq	-128(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rcx
	callq	_spkm3_make_mic_token
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_9:
	movq	_SPKM_WRAP_TOK@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_10
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
LBB0_12:
	xorl	%eax, %eax
	callq	_dprintk
LBB0_13:
	movq	$0, 8(%r14)
	movl	$0, (%r14)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RPC:       spkm3_make_token BAD ctx_id.len %d\n"

	.comm	_hmac_md5_oid,4,2               ## @hmac_md5_oid
L_.str.1:                               ## @.str.1
	.asciz	"RPC:       gss_spkm3_seal: unsupported I-ALG algorithm.  only support hmac-md5 I-ALG.\n"

	.comm	_CKSUMTYPE_HMAC_MD5,4,2         ## @CKSUMTYPE_HMAC_MD5
	.comm	_cast5_cbc_oid,4,2              ## @cast5_cbc_oid
L_.str.2:                               ## @.str.2
	.asciz	"RPC:       gss_spkm3_seal: unsupported C-ALG algorithm\n"

	.comm	_SPKM_MIC_TOK,4,2               ## @SPKM_MIC_TOK
	.comm	_SPKM_WRAP_TOK,4,2              ## @SPKM_WRAP_TOK
L_.str.3:                               ## @.str.3
	.asciz	"RPC:       gss_spkm3_seal: SPKM_WRAP_TOK not supported\n"

	.comm	_GSS_S_COMPLETE,4,2             ## @GSS_S_COMPLETE
	.comm	_GSS_S_FAILURE,4,2              ## @GSS_S_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spkm3_make_token               ; -- Begin function spkm3_make_token
	.p2align	2
_spkm3_make_token:                      ; @spkm3_make_token
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	wzr, [sp, #56]
	add	x8, sp, #79
	str	x8, [sp, #64]
	str	wzr, [sp, #40]
	sub	x8, x29, #81
	str	x8, [sp, #48]
	stp	xzr, xzr, [sp, #16]
	mov	x24, x0
	ldr	w8, [x24, #8]!
	cmp	w8, #16
	b.ne	LBB0_6
; %bb.1:
	mov	x23, x3
	mov	x21, x1
	mov	x20, x0
	add	x0, x0, #28
Lloh3:
	adrp	x1, _hmac_md5_oid@GOTPAGE
Lloh4:
	ldr	x1, [x1, _hmac_md5_oid@GOTPAGEOFF]
	bl	_g_OID_equal
	cbz	w0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x8, _CKSUMTYPE_HMAC_MD5@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CKSUMTYPE_HMAC_MD5@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	add	x0, x20, #24
Lloh8:
	adrp	x1, _cast5_cbc_oid@GOTPAGE
Lloh9:
	ldr	x1, [x1, _cast5_cbc_oid@GOTPAGEOFF]
	bl	_g_OID_equal
	cbz	w0, LBB0_8
; %bb.3:
Lloh10:
	adrp	x8, _SPKM_MIC_TOK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPKM_MIC_TOK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_9
; %bb.4:
	add	x8, sp, #40
	add	x23, x8, #8
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x24
	bl	_asn1_bitstring_len
	ldr	x2, [x20, #16]
	ldp	w4, w3, [sp, #24]
	add	x1, sp, #40
	mov	x0, x23
	bl	_spkm3_mic_header
	add	x1, x20, #4
	ldr	x2, [sp, #48]
	ldr	w3, [sp, #40]
	add	x6, sp, #56
	mov	x0, x22
	mov	x4, x21
	mov	w5, #0
	bl	_make_spkm3_checksum
	cbnz	x0, LBB0_12
; %bb.5:
	add	x0, sp, #56
	add	x1, sp, #20
	add	x2, sp, #16
	bl	_asn1_bitstring_len
	ldr	w8, [sp, #28]
	ldr	w9, [sp, #20]
	add	w8, w8, w9
	add	w21, w8, #12
	add	w22, w8, #14
	mov	x0, x20
	mov	x1, x22
	bl	_g_token_size
	str	w0, [x19]
	ldr	x8, [x19, #8]
	str	x8, [sp, #32]
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x22
	bl	_g_make_token_header
	ldp	w5, w4, [sp, #16]
	add	x0, sp, #32
	add	x2, sp, #40
	add	x3, sp, #56
	mov	x1, x21
	bl	_spkm3_make_mic_token
	b	LBB0_15
LBB0_6:
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _SPKM_WRAP_TOK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPKM_WRAP_TOK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_15
; %bb.10:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_dprintk
LBB0_12:
	str	xzr, [x19, #8]
	str	wzr, [x19]
Lloh24:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_15:
Lloh29:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RPC:       spkm3_make_token BAD ctx_id.len %d\n"

	.comm	_hmac_md5_oid,4,2               ; @hmac_md5_oid
l_.str.1:                               ; @.str.1
	.asciz	"RPC:       gss_spkm3_seal: unsupported I-ALG algorithm.  only support hmac-md5 I-ALG.\n"

	.comm	_CKSUMTYPE_HMAC_MD5,4,2         ; @CKSUMTYPE_HMAC_MD5
	.comm	_cast5_cbc_oid,4,2              ; @cast5_cbc_oid
l_.str.2:                               ; @.str.2
	.asciz	"RPC:       gss_spkm3_seal: unsupported C-ALG algorithm\n"

	.comm	_SPKM_MIC_TOK,4,2               ; @SPKM_MIC_TOK
	.comm	_SPKM_WRAP_TOK,4,2              ; @SPKM_WRAP_TOK
l_.str.3:                               ; @.str.3
	.asciz	"RPC:       gss_spkm3_seal: SPKM_WRAP_TOK not supported\n"

	.comm	_GSS_S_COMPLETE,4,2             ; @GSS_S_COMPLETE
	.comm	_GSS_S_FAILURE,4,2              ; @GSS_S_FAILURE
.subsections_via_symbols
