	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_heim_integer           ## -- Begin function der_get_heim_integer
	.p2align	4, 0x90
_der_get_heim_integer:                  ## @der_get_heim_integer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	$0, (%rdx)
	movl	$0, 8(%rdx)
	movq	$0, 16(%rdx)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmpb	$0, (%rdi)
	js	LBB0_4
## %bb.17:
	movq	%r15, (%r12)
	cmpb	$0, (%r13)
	je	LBB0_19
## %bb.18:
	movq	%r15, %rbx
	jmp	LBB0_20
LBB0_1:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_25
## %bb.2:
	movq	$0, (%r14)
	jmp	LBB0_25
LBB0_4:
	movl	$1, 8(%r12)
	movq	%r15, (%r12)
	cmpb	$-1, (%r13)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rbx
	jmp	LBB0_7
LBB0_19:
	incq	%r13
	leaq	-1(%r15), %rbx
	movq	%rbx, (%r12)
LBB0_20:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, 16(%r12)
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.21:
	testq	%rax, %rax
	je	LBB0_8
LBB0_22:
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	jmp	LBB0_23
LBB0_6:
	incq	%r13
	leaq	-1(%r15), %rbx
	movq	%rbx, (%r12)
LBB0_7:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	decq	%rbx
	js	LBB0_23
## %bb.12:
	addq	%rbx, %r13
	addq	%rax, %rbx
	movl	$1, %esi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%esi, %esi
	negb	%cl
	movb	%cl, (%rbx)
	setae	%sil
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	decq	%r13
	decq	%rbx
	cmpq	%rax, %rbx
	jb	LBB0_23
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %ecx
	movl	%ecx, %edx
	notb	%dl
	movb	%dl, (%rbx)
	testl	%esi, %esi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_16
LBB0_23:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_25
## %bb.24:
	movq	%r15, (%r14)
	jmp	LBB0_25
LBB0_8:
	movq	$0, (%r12)
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	$0, (%r14)
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_heim_integer           ; -- Begin function der_get_heim_integer
	.p2align	2
_der_get_heim_integer:                  ; @der_get_heim_integer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [x2]
	str	wzr, [x2, #8]
	str	xzr, [x2, #16]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldrsb	w8, [x0]
	tbnz	w8, #31, LBB0_6
; %bb.2:
	str	x20, [x22]
	ldrb	w8, [x21]
	cbz	w8, LBB0_8
; %bb.3:
	mov	x23, x20
	b	LBB0_9
LBB0_4:
	mov	w0, #0
	cbz	x19, LBB0_24
; %bb.5:
	str	xzr, [x19]
	b	LBB0_24
LBB0_6:
	mov	w8, #1
	str	w8, [x22, #8]
	str	x20, [x22]
	ldrb	w8, [x21]
	cmp	w8, #255
	b.eq	LBB0_12
; %bb.7:
	mov	x23, x20
	b	LBB0_13
LBB0_8:
	add	x21, x21, #1
	sub	x23, x20, #1
	str	x23, [x22]
LBB0_9:
	mov	x0, x23
	bl	_malloc
	str	x0, [x22, #16]
	cbz	x23, LBB0_11
; %bb.10:
	cbz	x0, LBB0_21
LBB0_11:
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	b	LBB0_19
LBB0_12:
	add	x21, x21, #1
	sub	x23, x20, #1
	str	x23, [x22]
LBB0_13:
	mov	x0, x23
	bl	_malloc
	str	x0, [x22, #16]
	cbz	x0, LBB0_21
; %bb.14:
	subs	x9, x23, #1
	b.mi	LBB0_19
; %bb.15:
	add	x8, x21, x9
	add	x9, x0, x9
	mov	w10, #1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	sub	x8, x8, #1
	sub	x9, x9, #1
	cmp	x9, x0
	b.lo	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8]
	mvn	w12, w11
	strb	w12, [x9]
	cbz	w10, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	neg	w10, w11
	strb	w10, [x9]
	cmp	w11, #0
	cset	w10, eq
	b	LBB0_16
LBB0_19:
	mov	w0, #0
	cbz	x19, LBB0_24
; %bb.20:
	str	x20, [x19]
	b	LBB0_24
LBB0_21:
	str	xzr, [x22]
	cbz	x19, LBB0_23
; %bb.22:
	str	xzr, [x19]
LBB0_23:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_24:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
