	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function long_c2i
_long_c2i:                              ## @long_c2i
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpl	$2, %edx
	jl	LBB0_13
## %bb.1:
	movb	(%rsi), %al
	cmpb	$-1, %al
	je	LBB0_2
## %bb.3:
	testb	%al, %al
	jne	LBB0_10
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_13:
	testl	%edx, %edx
	je	LBB0_18
## %bb.14:
	movb	(%rsi), %al
	jmp	LBB0_15
LBB0_2:
	movl	$255, %ecx
LBB0_5:
	decl	%edx
	cmpl	$8, %edx
	ja	LBB0_11
## %bb.6:
	movzbl	1(%rsi), %eax
	xorl	%ecx, %eax
	testb	$-128, %al
	jne	LBB0_7
## %bb.17:
	movq	_ASN1_F_LONG_C2I@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_ILLEGAL_PADDING@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	cmpl	$9, %edx
	jae	LBB0_11
LBB0_15:
	testb	%al, %al
	js	LBB0_16
LBB0_18:
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jg	LBB0_8
	jmp	LBB0_20
LBB0_16:
	movl	$255, %ecx
	testl	%edx, %edx
	jg	LBB0_8
LBB0_20:
	movq	$0, -24(%rbp)
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_7:
	incq	%rsi
LBB0_8:
	movl	%edx, %edx
	leaq	-1(%rdx), %rax
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_21
## %bb.9:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_21:
	andl	$-4, %edx
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rdi), %ebx
	xorq	%rcx, %rbx
	shlq	$16, %rax
	shlq	$8, %rbx
	orq	%rax, %rbx
	movzbl	1(%rsi,%rdi), %eax
	xorq	%rcx, %rax
	orq	%rbx, %rax
	movzbl	2(%rsi,%rdi), %ebx
	xorq	%rcx, %rbx
	shlq	$16, %rax
	shlq	$8, %rbx
	orq	%rax, %rbx
	movzbl	3(%rsi,%rdi), %eax
	xorq	%rcx, %rax
	orq	%rbx, %rax
	addq	$4, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_22
LBB0_23:
	testq	%r8, %r8
	je	LBB0_26
## %bb.24:
	addq	%rdi, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	shlq	$8, %rax
	movzbl	(%rsi,%rdx), %edi
	xorq	%rcx, %rdi
	orq	%rdi, %rax
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_25
LBB0_26:
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	js	LBB0_11
LBB0_27:
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.28:
	notq	%rax
	movq	%rax, -24(%rbp)
LBB0_29:
	cmpq	(%r9), %rax
	jne	LBB0_30
LBB0_11:
	movq	_ASN1_F_LONG_C2I@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_INTEGER_TOO_LARGE_FOR_LONG@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	callq	_ASN1err
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_30:
	movq	(%r14), %rdi
	movq	%rax, %rsi
	callq	_COPY_SIZE
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_memcpy
	movl	$1, %eax
LBB0_31:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_LONG_C2I,4,2            ## @ASN1_F_LONG_C2I
	.comm	_ASN1_R_INTEGER_TOO_LARGE_FOR_LONG,4,2 ## @ASN1_R_INTEGER_TOO_LARGE_FOR_LONG
	.comm	_ASN1_R_ILLEGAL_PADDING,4,2     ## @ASN1_R_ILLEGAL_PADDING
	.no_dead_strip	_long_c2i
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function long_c2i
_long_c2i:                              ; @long_c2i
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w2, #2
	b.lt	LBB0_4
; %bb.1:
	ldrb	w8, [x1]
	cmp	w8, #255
	b.eq	LBB0_6
; %bb.2:
	cbnz	w8, LBB0_10
; %bb.3:
	mov	x9, #0
	b	LBB0_7
LBB0_4:
	cbz	w2, LBB0_12
; %bb.5:
	ldrb	w8, [x1]
	b	LBB0_11
LBB0_6:
	mov	w9, #255
LBB0_7:
	sub	w2, w2, #1
	cmp	w2, #8
	b.hi	LBB0_19
; %bb.8:
	ldrb	w8, [x1, #1]!
	eor	w8, w9, w8
	tbnz	w8, #7, LBB0_13
; %bb.9:
Lloh0:
	adrp	x8, _ASN1_F_LONG_C2I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_LONG_C2I@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASN1_R_ILLEGAL_PADDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_R_ILLEGAL_PADDING@GOTPAGEOFF]
	b	LBB0_20
LBB0_10:
	cmp	w2, #9
	b.hs	LBB0_19
LBB0_11:
	tbnz	w8, #7, LBB0_23
LBB0_12:
	mov	x9, #0
	cmp	w2, #0
	b.le	LBB0_24
LBB0_13:
	mov	x8, #0
	mov	w10, w2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x11, x8
	ldrb	w8, [x1], #1
	eor	x8, x9, x8
	bfi	x8, x11, #8, #56
	subs	x10, x10, #1
	b.ne	LBB0_14
; %bb.15:
	str	x8, [sp, #8]
	tbnz	x8, #63, LBB0_19
; %bb.16:
	cbz	x9, LBB0_18
LBB0_17:
	mvn	x8, x8
	str	x8, [sp, #8]
LBB0_18:
	ldr	x9, [x5]
	cmp	x8, x9
	b.ne	LBB0_21
LBB0_19:
Lloh5:
	adrp	x8, _ASN1_F_LONG_C2I@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASN1_F_LONG_C2I@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ASN1_R_INTEGER_TOO_LARGE_FOR_LONG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASN1_R_INTEGER_TOO_LARGE_FOR_LONG@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #0
	b	LBB0_22
LBB0_21:
	ldr	x0, [x19]
	mov	x1, x8
	bl	_COPY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_memcpy
	mov	w0, #1
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_23:
	mov	w9, #255
	cmp	w2, #0
	b.gt	LBB0_13
LBB0_24:
	mov	x8, #0
	str	xzr, [sp, #8]
	cbnz	x9, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_LONG_C2I,4,2            ; @ASN1_F_LONG_C2I
	.comm	_ASN1_R_INTEGER_TOO_LARGE_FOR_LONG,4,2 ; @ASN1_R_INTEGER_TOO_LARGE_FOR_LONG
	.comm	_ASN1_R_ILLEGAL_PADDING,4,2     ; @ASN1_R_ILLEGAL_PADDING
	.no_dead_strip	_long_c2i
.subsections_via_symbols
