	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_asn1_validation           ## -- Begin function ptls_asn1_validation
	.p2align	4, 0x90
_ptls_asn1_validation:                  ## @ptls_asn1_validation
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	$0, -20(%rbp)
	leaq	-20(%rbp), %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_ptls_asn1_validation_recursive
	movl	-20(%rbp), %ecx
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.1:
	cmpq	%rbx, %rax
	jae	LBB0_4
## %bb.2:
	movq	_PTLS_ERROR_BER_ELEMENT_TOO_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -20(%rbp)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	*8(%r14)
	movl	-20(%rbp), %ecx
LBB0_4:
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ERROR_BER_ELEMENT_TOO_SHORT,4,2 ## @PTLS_ERROR_BER_ELEMENT_TOO_SHORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Type too short, %d bytes only out of %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_asn1_validation           ; -- Begin function ptls_asn1_validation
	.p2align	2
_ptls_asn1_validation:                  ; @ptls_asn1_validation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	w3, #0
	mov	x4, x20
	bl	_ptls_asn1_validation_recursive
	mov	x2, x0
	ldr	w0, [sp, #12]
	cmp	w0, #0
	ccmp	x2, x19, #2, eq
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PTLS_ERROR_BER_ELEMENT_TOO_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTLS_ERROR_BER_ELEMENT_TOO_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [sp, #12]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x19
	blr	x8
	ldr	w0, [sp, #12]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ERROR_BER_ELEMENT_TOO_SHORT,4,2 ; @PTLS_ERROR_BER_ELEMENT_TOO_SHORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Type too short, %d bytes only out of %d\n"

.subsections_via_symbols
