	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode_heim_any                ## -- Begin function decode_heim_any
	.p2align	4, 0x90
_decode_heim_any:                       ## @decode_heim_any
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-76(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_der_get_tag
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	-48(%rbp), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_3
LBB0_2:
	movq	_ASN1_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_3:
	leaq	(%r12,%rax), %rdi
	movq	%rbx, %rsi
	subq	%rax, %rsi
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_der_get_length
	testl	%eax, %eax
	je	LBB0_4
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %rax
	movq	_ASN1_INDEFINITE@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %r13
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rax
	leaq	(%rax,%r13), %rcx
	cmpq	%rbx, %rcx
	ja	LBB0_2
## %bb.6:
	subq	%rcx, %rbx
	movq	%rbx, -56(%rbp)
	addq	%rbx, %r13
	addq	%rax, %r13
	jmp	LBB0_8
LBB0_7:
	addq	%rax, %r13
	addq	-48(%rbp), %r13
	cmpq	%rbx, %r13
	ja	LBB0_2
LBB0_8:
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r13, (%r15)
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	-64(%rbp), %rcx
	addq	-56(%rbp), %rcx
	addq	-48(%rbp), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_12
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_OVERFLOW,4,2              ## @ASN1_OVERFLOW
	.comm	_ASN1_INDEFINITE,8,3            ## @ASN1_INDEFINITE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode_heim_any                ; -- Begin function decode_heim_any
	.p2align	2
_decode_heim_any:                       ; @decode_heim_any
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #12
	add	x5, sp, #24
	mov	x0, x20
	mov	x1, x22
	bl	_der_get_tag
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #24]
	cmp	x8, x22
	b.ls	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _ASN1_OVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_OVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	add	x0, x20, x8
	sub	x1, x22, x8
	add	x2, sp, #32
	add	x3, sp, #40
	bl	_der_get_length
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
Lloh3:
	adrp	x8, _ASN1_INDEFINITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_INDEFINITE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	ldp	x9, x8, [sp, #32]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [sp, #24]
	add	x10, x9, x8
	cmp	x10, x22
	b.hi	LBB0_2
; %bb.7:
	sub	x10, x22, x10
	add	x8, x8, x10
	str	x10, [sp, #32]
	add	x23, x8, x9
	b	LBB0_9
LBB0_8:
	ldr	x10, [sp, #24]
	add	x8, x8, x9
	add	x23, x8, x10
	cmp	x23, x22
	b.hi	LBB0_2
LBB0_9:
	mov	x0, x23
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_12
; %bb.10:
	str	x23, [x21]
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	mov	w0, #0
	cbz	x19, LBB0_4
; %bb.11:
	ldp	x8, x9, [sp, #32]
	ldr	x10, [sp, #24]
	add	x8, x9, x8
	add	x8, x8, x10
	str	x8, [x19]
	b	LBB0_4
LBB0_12:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_OVERFLOW,4,2              ; @ASN1_OVERFLOW
	.comm	_ASN1_INDEFINITE,8,3            ; @ASN1_INDEFINITE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
