	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_custom_der
_make_custom_der:                       ## @make_custom_der
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_V_ASN1_BOOLEAN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -51(%rbp)
	movw	$-255, -50(%rbp)
	movq	(%rdi), %rdi
	xorl	%esi, %esi
	callq	_der_encode_length
	cltq
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdi
	leaq	(%rax,%rcx), %r14
	incq	%r14
	movq	%rdi, %rcx
	movq	%rdi, %rax
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rax
	jb	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rdx
	cmpb	$0, -1(%rdx,%rcx)
	movq	%rax, %rcx
	je	LBB0_1
	jmp	LBB0_3
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_5
LBB0_3:
	xorl	%esi, %esi
	callq	_der_encode_length
	cltq
	movq	8(%rbx), %rcx
	leaq	(%rax,%rcx), %r15
	leaq	(%rax,%rcx), %rdi
	incq	%rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_der_encode_length
	cltq
	leaq	(%rax,%r15), %rcx
	addq	$2, %rcx
	jmp	LBB0_6
LBB0_5:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_6:
	leaq	(%rcx,%r14), %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r14), %r13
	addq	$3, %r13
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_der_encode_length
	cltq
	leaq	(%rax,%r12), %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_OPENSSL_malloc
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %rcx
	incq	%rcx
	movq	%rcx, -48(%rbp)
	movb	$48, (%rax)
	leaq	-48(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_der_encode_length
	movq	-48(%rbp), %rdi
	leaq	-51(%rbp), %rsi
	movl	$3, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax
	movq	_V_ASN1_INTEGER@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	leaq	4(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movb	%cl, 3(%rax)
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_der_encode_length
	movq	-48(%rbp), %rdi
	movq	24(%rbx), %rsi
	movl	(%rbx), %edx
	callq	_memcpy
	movq	-48(%rbp), %rax
	addq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.8:
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	$-96, (%rax)
	leaq	-48(%rbp), %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_der_encode_length
	movb	(%r13), %al
	movq	-48(%rbp), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, -48(%rbp)
	movb	%al, (%rcx)
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	callq	_der_encode_length
	movq	-48(%rbp), %rdi
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	callq	_memcpy
	movq	-48(%rbp), %rax
	addq	8(%rbx), %rax
	movq	%rax, -48(%rbp)
LBB0_9:
	subq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_OPENSSL_assert
	movq	%r14, %r15
LBB0_10:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_BOOLEAN,4,2             ## @V_ASN1_BOOLEAN
	.comm	_V_ASN1_INTEGER,8,3             ## @V_ASN1_INTEGER
	.no_dead_strip	_make_custom_der
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_custom_der
_make_custom_der:                       ; @make_custom_der
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _V_ASN1_BOOLEAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_BOOLEAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	strb	w8, [sp, #13]
	mov	w8, #65281
	sturh	w8, [sp, #14]
	ldr	x0, [x0]
	mov	x1, #0
	bl	_der_encode_length
	add	w8, w0, #1
	ldp	x9, x0, [x20]
	add	x23, x9, w8, sxtw
	sub	x8, x0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x8, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20, #16]
	ldrb	w9, [x9, x8]
	sub	x8, x8, #1
	cbz	w9, LBB0_1
	b	LBB0_4
LBB0_3:
	cbz	w21, LBB0_5
LBB0_4:
	mov	x1, #0
	bl	_der_encode_length
	add	w8, w0, #1
	ldr	x9, [x20, #8]
	add	x22, x9, w8, sxtw
	mov	x0, x22
	mov	x1, #0
	bl	_der_encode_length
	add	w8, w0, #1
	add	x24, x22, w8, sxtw
	b	LBB0_6
LBB0_5:
	mov	x24, #0
	mov	x22, #0
LBB0_6:
	add	x21, x24, x23
	add	x23, x21, #3
	mov	x0, x23
	mov	x1, #0
	bl	_der_encode_length
	add	x8, x21, w0, sxtw
	add	x21, x8, #4
	mov	x0, x21
	bl	_OPENSSL_malloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.7:
	add	x8, x0, #1
	str	x8, [sp]
	mov	w8, #48
	strb	w8, [x0]
	mov	x1, sp
	mov	x0, x23
	bl	_der_encode_length
	ldr	x0, [sp]
	add	x1, sp, #13
	mov	w2, #3
	bl	_memcpy
Lloh3:
	adrp	x23, _V_ASN1_INTEGER@GOTPAGE
Lloh4:
	ldr	x23, [x23, _V_ASN1_INTEGER@GOTPAGEOFF]
	ldr	x8, [sp]
	ldr	x9, [x23]
	add	x10, x8, #4
	str	x10, [sp]
	strb	w9, [x8, #3]
	ldr	x0, [x20]
	mov	x1, sp
	bl	_der_encode_length
	ldr	x0, [sp]
	ldr	x1, [x20, #24]
	ldr	w2, [x20]
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [sp]
	add	x8, x9, x8
	str	x8, [sp]
	cbz	x24, LBB0_9
; %bb.8:
	add	x9, x8, #1
	str	x9, [sp]
	mov	w9, #160
	strb	w9, [x8]
	mov	x1, sp
	mov	x0, x22
	bl	_der_encode_length
	ldr	x8, [x23]
	ldr	x9, [sp]
	add	x10, x9, #1
	str	x10, [sp]
	strb	w8, [x9]
	ldr	x0, [x20, #8]
	mov	x1, sp
	bl	_der_encode_length
	ldr	x0, [sp]
	ldr	x1, [x20, #16]
	ldr	w2, [x20, #8]
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldr	x9, [sp]
	add	x8, x9, x8
	str	x8, [sp]
LBB0_9:
	ldr	x9, [x19]
	sub	x8, x8, x9
	cmp	x21, x8
	cset	w0, eq
	bl	_OPENSSL_assert
	b	LBB0_11
LBB0_10:
	mov	x21, #0
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_BOOLEAN,4,2             ; @V_ASN1_BOOLEAN
	.comm	_V_ASN1_INTEGER,8,3             ; @V_ASN1_INTEGER
	.no_dead_strip	_make_custom_der
.subsections_via_symbols
