	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_asn1_validation_recursive ## -- Begin function ptls_asn1_validation_recursive
	.p2align	4, 0x90
_ptls_asn1_validation_recursive:        ## @ptls_asn1_validation_recursive
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	$0, -92(%rbp)
	movl	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %r9
	pushq	%r12
	pushq	%r14
	callq	_ptls_asn1_read_type
	addq	$16, %rsp
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	cmpl	$0, (%r13)
	jne	LBB0_3
## %bb.2:
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_ptls_asn1_print_type
LBB0_3:
	subq	$8, %rsp
	leaq	-92(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movq	%r13, %r14
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	pushq	%r12
	pushq	%rbx
	pushq	%r14
	callq	_ptls_asn1_read_length
	addq	$32, %rsp
	movq	%rax, %r15
	movq	-48(%rbp), %rsi
	cmpq	%r13, %rsi
	ja	LBB0_22
## %bb.4:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, -68(%rbp)
	je	LBB0_17
## %bb.5:
	movq	%rbx, %r14
	movq	%r12, %rbx
	testq	%r12, %r12
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*8(%rbx)
	movq	-48(%rbp), %rsi
LBB0_7:
	cmpq	%r15, %rsi
	jbe	LBB0_18
## %bb.8:
	movq	%r14, %rax
	leal	1(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	*8(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rsi
	cmpq	%r15, %rsi
	movq	%r14, %rdi
	jbe	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, (%r12,%r15,8)
	je	LBB0_23
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%r12,%r15,8), %rdi
	subq	%r15, %rsi
	movq	%r13, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	callq	_ptls_asn1_validation_recursive
	cmpl	$0, (%r13)
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	-48(%rbp), %r15
	jae	LBB0_9
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	*8(%rbx)
	jmp	LBB0_9
LBB0_17:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_ptls_asn1_dump_content
	movq	-48(%rbp), %r15
	jmp	LBB0_22
LBB0_19:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rdi
LBB0_20:
	testq	%rbx, %rbx
	jne	LBB0_21
	jmp	LBB0_22
LBB0_23:
	leaq	2(%r15), %r12
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %r12
	ja	LBB0_25
## %bb.24:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx,%r15,8)
	je	LBB0_26
LBB0_25:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	callq	_ptls_asn1_error_message
	movq	_PTLS_ERROR_BER_UNEXPECTED_EOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r13, %r15
LBB0_18:
	movq	%r14, %rdi
	testq	%rbx, %rbx
	je	LBB0_22
LBB0_21:
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%rbx, %rsi
	callq	_ptls_asn1_print_indent
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	*8(%rbx)
LBB0_22:
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.27:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_ptls_asn1_print_indent
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	*8(%rbx)
	movq	%r14, %rdi
	movq	%r12, %r15
	jmp	LBB0_21
LBB0_28:
	movq	%r12, %r15
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" {\n"

L_.str.1:                               ## @.str.1
	.asciz	"EOC: unexpected end of content"

	.comm	_PTLS_ERROR_BER_UNEXPECTED_EOC,4,2 ## @PTLS_ERROR_BER_UNEXPECTED_EOC
L_.str.2:                               ## @.str.2
	.asciz	"EOC\n"

L_.str.3:                               ## @.str.3
	.asciz	","

L_.str.4:                               ## @.str.4
	.asciz	"\n"

L_.str.5:                               ## @.str.5
	.asciz	"}"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_asn1_validation_recursive ; -- Begin function ptls_asn1_validation_recursive
	.p2align	2
_ptls_asn1_validation_recursive:        ; @ptls_asn1_validation_recursive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	stp	xzr, xzr, [sp, #32]
	str	wzr, [sp, #28]
	str	xzr, [sp, #16]
	add	x2, sp, #44
	add	x3, sp, #40
	add	x4, sp, #36
	mov	x5, x22
	mov	x6, x20
	mov	x7, x19
	bl	_ptls_asn1_read_type
	mov	x24, x0
	cbz	x19, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	cbnz	w8, LBB0_3
; %bb.2:
	ldp	w1, w0, [sp, #36]
	mov	x2, x20
	mov	x3, x19
	bl	_ptls_asn1_print_type
LBB0_3:
	str	x19, [sp]
	add	x3, sp, #32
	add	x4, sp, #28
	add	x5, sp, #16
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	mov	x6, x22
	mov	x7, x20
	bl	_ptls_asn1_read_length
	mov	x24, x0
	ldr	x1, [sp, #16]
	cmp	x1, x21
	b.hi	LBB0_21
; %bb.4:
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_17
; %bb.5:
	cbz	x19, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
	ldr	x1, [sp, #16]
LBB0_7:
	cmp	x1, x24
	b.ls	LBB0_19
; %bb.8:
	add	w25, w20, #1
Lloh2:
	adrp	x26, l_.str.3@PAGE
Lloh3:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh4:
	adrp	x27, l_.str.4@PAGE
Lloh5:
	add	x27, x27, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x27
	blr	x8
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [sp, #16]
	cmp	x1, x24
	b.ls	LBB0_19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x23, x24, lsl #3]
	cbz	x8, LBB0_22
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x23, x24, lsl #3
	sub	x1, x1, x24
	mov	x2, x22
	mov	x3, x25
	mov	x4, x19
	bl	_ptls_asn1_validation_recursive
	ldr	w8, [x22]
	cbnz	w8, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x0, x24
	cbz	x19, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #16]
	cmp	x24, x8
	b.hs	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x26
	blr	x8
	b	LBB0_9
LBB0_17:
	mov	x0, x23
	mov	x2, x24
	mov	x3, x19
	bl	_ptls_asn1_dump_content
	ldr	x24, [sp, #16]
	b	LBB0_21
LBB0_18:
	mov	x24, x21
LBB0_19:
	cbz	x19, LBB0_21
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_ptls_asn1_print_indent
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	blr	x8
LBB0_21:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_22:
	add	x26, x24, #2
	cmp	x26, x21
	b.hi	LBB0_24
; %bb.23:
	add	x8, x23, x24, lsl #3
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_25
LBB0_24:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	mov	x4, x19
	bl	_ptls_asn1_error_message
Lloh10:
	adrp	x8, _PTLS_ERROR_BER_UNEXPECTED_EOC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PTLS_ERROR_BER_UNEXPECTED_EOC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x24, x21
	cbnz	x19, LBB0_20
	b	LBB0_21
LBB0_25:
	cbz	x19, LBB0_27
; %bb.26:
	mov	x0, x20
	mov	x1, x19
	bl	_ptls_asn1_print_indent
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	blr	x8
	mov	x24, x26
	b	LBB0_20
LBB0_27:
	mov	x24, x26
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" {\n"

l_.str.1:                               ; @.str.1
	.asciz	"EOC: unexpected end of content"

	.comm	_PTLS_ERROR_BER_UNEXPECTED_EOC,4,2 ; @PTLS_ERROR_BER_UNEXPECTED_EOC
l_.str.2:                               ; @.str.2
	.asciz	"EOC\n"

l_.str.3:                               ; @.str.3
	.asciz	","

l_.str.4:                               ; @.str.4
	.asciz	"\n"

l_.str.5:                               ; @.str.5
	.asciz	"}"

.subsections_via_symbols
