	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_put_heim_integer           ## -- Begin function der_put_heim_integer
	.p2align	4, 0x90
_der_put_heim_integer:                  ## @der_put_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	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdx), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.5:
	cmpq	%r12, %r13
	ja	LBB0_2
## %bb.6:
	movq	%rdx, %r15
	movq	(%rdx), %rsi
	cmpq	$0, 16(%rdx)
	je	LBB0_22
## %bb.7:
	movl	%r13d, %r10d
	decl	%r10d
	js	LBB0_18
## %bb.8:
	je	LBB0_9
## %bb.10:
	movl	%r13d, %r9d
	andl	$-2, %r9d
	movl	$1, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$-2, %r14
	addl	$-2, %r10d
	movl	%r8d, %edi
	addl	$-2, %r9d
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r10d, %eax
	movzbl	(%rsi,%rax), %ebx
	movl	%ebx, %edx
	notb	%dl
	movb	%dl, (%r14)
	xorl	%r8d, %r8d
	movl	$0, %eax
	testl	%edi, %edi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	negb	%bl
	movb	%bl, (%r14)
	setae	%al
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	leal	-1(%r10), %edi
	movzbl	(%rsi,%rdi), %edx
	movl	%edx, %ebx
	notb	%bl
	movb	%bl, -1(%r14)
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r8d, %r8d
	negb	%dl
	movb	%dl, -1(%r14)
	setae	%r8b
	jmp	LBB0_15
LBB0_1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movb	$0, (%r14)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.4:
	movq	$1, (%rcx)
	jmp	LBB0_29
LBB0_22:
	movq	%rcx, %rbx
	subq	%r13, %r14
	leaq	1(%r14), %rdi
	movq	%r13, %rdx
	callq	_memcpy
	cmpb	$0, 1(%r14)
	js	LBB0_24
## %bb.23:
	xorl	%edx, %edx
	jmp	LBB0_26
LBB0_9:
	movl	$1, %r8d
LBB0_16:
	testb	$1, %r13b
	je	LBB0_18
## %bb.17:
	movl	%r10d, %eax
	movb	(%rsi,%rax), %al
	movl	%eax, %edx
	notb	%dl
	negb	%al
	testl	%r8d, %r8d
	movzbl	%dl, %edx
	movzbl	%al, %eax
	cmovel	%edx, %eax
	movb	%al, (%r14)
	decq	%r14
LBB0_18:
	cmpb	$0, 1(%r14)
	js	LBB0_19
## %bb.20:
	cmpq	%r12, %r13
	je	LBB0_2
## %bb.21:
	movb	$-1, (%r14)
	movl	$1, %edx
	jmp	LBB0_27
LBB0_19:
	xorl	%edx, %edx
	jmp	LBB0_27
LBB0_24:
	cmpq	%r12, %r13
	jne	LBB0_25
LBB0_2:
	movq	_ASN1_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_29
LBB0_25:
	movb	$0, (%r14)
	movl	$1, %edx
LBB0_26:
	movq	%rbx, %rcx
LBB0_27:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.28:
	addq	8(%r15), %rdx
	movq	%rdx, (%rcx)
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_OVERFLOW,4,2              ## @ASN1_OVERFLOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_put_heim_integer           ; -- Begin function der_put_heim_integer
	.p2align	2
_der_put_heim_integer:                  ; @der_put_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
	mov	x21, x1
	ldr	x22, [x2, #8]
	cbz	x22, LBB0_8
; %bb.1:
	cmp	x22, x21
	b.hi	LBB0_17
; %bb.2:
	mov	x20, x2
	ldr	x1, [x2]
	ldr	x8, [x2, #16]
	cbz	x8, LBB0_14
; %bb.3:
	subs	w8, w22, #1
	b.mi	LBB0_11
; %bb.4:
	mov	w9, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x0, x0, #1
	subs	w8, w8, #1
	b.mi	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x1, w8, uxtw]
	mvn	w11, w10
	strb	w11, [x0]
	cbz	w9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	neg	w9, w10
	strb	w9, [x0]
	cmp	w10, #0
	cset	w9, eq
	b	LBB0_5
LBB0_8:
	cbz	x21, LBB0_17
; %bb.9:
	strb	wzr, [x0]
	mov	w0, #0
	cbz	x19, LBB0_22
; %bb.10:
	mov	w8, #1
	b	LBB0_21
LBB0_11:
	ldrsb	w8, [x0, #1]
	tbnz	w8, #31, LBB0_15
; %bb.12:
	cmp	x22, x21
	b.eq	LBB0_17
; %bb.13:
	mov	w8, #255
	strb	w8, [x0]
	b	LBB0_19
LBB0_14:
	sub	x23, x0, x22
	add	x0, x23, #1
	mov	x2, x22
	bl	_memcpy
	ldrsb	w8, [x23, #1]
	tbnz	w8, #31, LBB0_16
LBB0_15:
	mov	x8, #0
	mov	w0, #0
	cbnz	x19, LBB0_20
	b	LBB0_22
LBB0_16:
	cmp	x22, x21
	b.ne	LBB0_18
LBB0_17:
Lloh0:
	adrp	x8, _ASN1_OVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_OVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_18:
	strb	wzr, [x23]
LBB0_19:
	mov	w8, #1
	mov	w0, #0
	cbz	x19, LBB0_22
LBB0_20:
	ldr	x9, [x20, #8]
	add	x8, x9, x8
LBB0_21:
	str	x8, [x19]
LBB0_22:
	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	_ASN1_OVERFLOW,4,2              ; @ASN1_OVERFLOW
.subsections_via_symbols
