	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_asn1_read_type            ## -- Begin function ptls_asn1_read_type
	.p2align	4, 0x90
_ptls_asn1_read_type:                   ## @ptls_asn1_read_type
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %ebx
	movl	%ebx, %eax
	shrl	$5, %eax
	andl	$1, %eax
	movl	%eax, (%rdx)
	movl	%ebx, %eax
	shrl	$6, %eax
	andl	$3, %eax
	movl	%eax, (%rcx)
	andl	$31, %ebx
	movl	%ebx, (%r8)
	movl	$1, %eax
	cmpl	$31, %ebx
	jne	LBB0_6
## %bb.1:
	movq	%r9, %r14
	movq	24(%rbp), %r9
	movl	16(%rbp), %ecx
	cmpq	$2, %rsi
	movl	$1, %eax
	movl	$1, %edx
	cmovaeq	%rsi, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rdx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi,%rax,4), %r10d
	incq	%rax
	movl	%ebx, %r11d
	shll	$7, %r11d
	movl	%r10d, %ebx
	andl	$127, %ebx
	orl	%r11d, %ebx
	testb	$-128, %r10b
	jne	LBB0_2
## %bb.4:
	movl	%ebx, (%r8)
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%r9, %r8
	callq	_ptls_asn1_error_message
	movq	_PTLS_ERROR_BER_MALFORMED_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect type coding"

	.comm	_PTLS_ERROR_BER_MALFORMED_TYPE,4,2 ## @PTLS_ERROR_BER_MALFORMED_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_asn1_read_type            ; -- Begin function ptls_asn1_read_type
	.p2align	2
_ptls_asn1_read_type:                   ; @ptls_asn1_read_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	ubfx	w9, w8, #5, #1
	str	w9, [x2]
	ubfx	w9, w8, #6, #2
	str	w9, [x3]
	and	w8, w8, #0x1f
	str	w8, [x4]
	cmp	w8, #31
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x5
	mov	w9, #0
	cmp	x1, #1
	csinc	x2, x1, xzr, hi
	mov	w10, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x2, x10
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x10, #1
	ldr	w12, [x0, x10, lsl #2]
	mov	x11, x12
	bfi	w11, w9, #7, #25
	mov	x9, x11
	mov	x10, x8
	tbnz	w12, #7, LBB0_2
; %bb.4:
	str	w11, [x4]
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
	mov	x0, x8
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x6
	mov	x4, x7
	bl	_ptls_asn1_error_message
Lloh2:
	adrp	x8, _PTLS_ERROR_BER_MALFORMED_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTLS_ERROR_BER_MALFORMED_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect type coding"

	.comm	_PTLS_ERROR_BER_MALFORMED_TYPE,4,2 ; @PTLS_ERROR_BER_MALFORMED_TYPE
.subsections_via_symbols
