	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g_verify_token_header          ## -- Begin function g_verify_token_header
	.p2align	4, 0x90
_g_verify_token_header:                 ## @g_verify_token_header
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %rbx
	movq	(%rdx), %rax
	leal	-1(%rcx), %edx
	movl	%edx, -28(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	leaq	1(%rax), %rcx
	movq	%rcx, -40(%rbp)
	cmpb	$96, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_der_read_length
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	cmpl	-28(%rbp), %eax
	jne	LBB0_1
## %bb.5:
	movl	%eax, %ecx
	subl	$1, %ecx
	movl	%ecx, -28(%rbp)
	jb	LBB0_1
## %bb.6:
	movq	-40(%rbp), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, -40(%rbp)
	cmpb	$6, (%rdx)
	jne	LBB0_1
## %bb.7:
	addl	$-2, %eax
	movl	%eax, -28(%rbp)
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.8:
	leaq	2(%rdx), %rcx
	movq	%rcx, -40(%rbp)
	movzbl	1(%rdx), %edx
	movl	%edx, -56(%rbp)
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
	js	LBB0_1
## %bb.9:
	movq	%rcx, -48(%rbp)
	addq	%rcx, %rdx
	movq	%rdx, -40(%rbp)
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_g_OID_equal
	movl	%eax, %ecx
	movq	_G_WRONG_MECH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-28(%rbp), %esi
	leal	-2(%rsi), %edx
	movl	%edx, -28(%rbp)
	cmpl	$1, %esi
	jg	LBB0_10
LBB0_1:
	movq	_G_BAD_TOK_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.11:
	testl	%eax, %eax
	jne	LBB0_13
LBB0_12:
	movq	-40(%rbp), %rax
	movq	%rax, (%rbx)
	movl	%edx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_G_BAD_TOK_HEADER,4,2           ## @G_BAD_TOK_HEADER
	.comm	_G_WRONG_MECH,4,2               ## @G_WRONG_MECH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g_verify_token_header          ; -- Begin function g_verify_token_header
	.p2align	2
_g_verify_token_header:                 ; @g_verify_token_header
	.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
	ldr	x8, [x2]
	sub	w9, w3, #1
	str	w9, [sp, #28]
	cmp	w3, #0
	b.le	LBB0_9
; %bb.1:
	add	x9, x8, #1
	str	x9, [sp, #16]
	ldrb	w8, [x8]
	cmp	w8, #96
	b.ne	LBB0_9
; %bb.2:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #16
	add	x1, sp, #28
	bl	_der_read_length
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [sp, #28]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.4:
	sub	w9, w0, #1
	str	w9, [sp, #28]
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x8, [sp, #16]
	add	x10, x8, #1
	str	x10, [sp, #16]
	ldrb	w10, [x8]
	cmp	w10, #6
	b.ne	LBB0_9
; %bb.6:
	sub	w10, w0, #2
	str	w10, [sp, #28]
	cbz	w9, LBB0_9
; %bb.7:
	add	x9, x8, #2
	str	x9, [sp, #16]
	ldrb	w8, [x8, #1]
	str	w8, [sp]
	subs	w10, w10, w8
	str	w10, [sp, #28]
	b.mi	LBB0_9
; %bb.8:
	add	x8, x9, x8
	stp	x9, x8, [sp, #8]
	mov	x0, sp
	mov	x1, x21
	bl	_g_OID_equal
	mov	x8, x0
Lloh0:
	adrp	x9, _G_WRONG_MECH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _G_WRONG_MECH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldr	w10, [sp, #28]
	sub	w9, w10, #2
	str	w9, [sp, #28]
	cmp	w10, #1
	b.gt	LBB0_11
LBB0_9:
Lloh3:
	adrp	x8, _G_BAD_TOK_HEADER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_BAD_TOK_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
	cbnz	w8, LBB0_13
; %bb.12:
	cbnz	w0, LBB0_10
LBB0_13:
	mov	w0, #0
	ldr	x8, [sp, #16]
	str	x8, [x20]
	str	w9, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_G_BAD_TOK_HEADER,4,2           ; @G_BAD_TOK_HEADER
	.comm	_G_WRONG_MECH,4,2               ; @G_WRONG_MECH
.subsections_via_symbols
