	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a2i_ASN1_INTEGER               ## -- Begin function a2i_ASN1_INTEGER
	.p2align	4, 0x90
_a2i_ASN1_INTEGER:                      ## @a2i_ASN1_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_V_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %rsi
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	callq	_BIO_gets
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_32
## %bb.1:
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%r8d, %r8d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	leal	-1(%rax), %edx
	cmpb	$10, (%r15,%rdx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r15,%rdx)
	testl	%edx, %edx
	je	LBB0_40
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$-2, %eax
	movq	%rax, %rcx
	movl	%eax, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rcx
	movl	%edx, %esi
	movl	%eax, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$13, (%r15,%rcx)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r15,%rcx)
	testl	%esi, %esi
	je	LBB0_40
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rsi), %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %esi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %ebx
	movb	(%r15,%rcx), %al
	xorl	%r14d, %r14d
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	cmpb	$92, %al
	sete	%r14b
	negl	%r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r15,%r13), %edi
	callq	_ossl_isxdigit
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movb	$0, (%r15,%rax)
	cmpl	$2, %eax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	jl	LBB0_36
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r12b
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$48, (%r15)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	-2(%r13), %eax
	xorl	%ecx, %ecx
	cmpb	$48, 1(%r15)
	sete	%cl
	cmovnel	%r13d, %eax
	leaq	(%r15,%rcx,2), %r12
	movl	%eax, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r12
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r14d, %r13d
	testb	$1, %r13b
	jne	LBB0_37
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %r14d
	shrl	$31, %r14d
	addl	%r13d, %r14d
	sarl	%r14d
	leal	(%r14,%rdx), %eax
	cmpl	%esi, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rdx,%r14,2), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_OPENSSL_clear_realloc
	movl	%ebx, %esi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_24
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r13d
	jl	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	-88(%rbp), %rbx                 ## 4-byte Folded Reload
	movl	%r14d, %r13d
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%r14,2), %edi
	callq	_OPENSSL_hexchar2int
	testl	%eax, %eax
	js	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movzbl	(%rbx,%r14), %ecx
	shlb	$4, %cl
	orb	%cl, %al
	movb	%al, (%rbx,%r14)
	movzbl	1(%r12,%r14,2), %edi
	callq	_OPENSSL_hexchar2int
	testl	%eax, %eax
	js	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	movzbl	(%rbx,%r14), %ecx
	shlb	$4, %cl
	orb	%cl, %al
	movb	%al, (%rbx,%r14)
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_26
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$92, -41(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_38
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_BIO_gets
                                        ## kill: def $eax killed $eax def $rax
	movb	$1, %r12b
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	testl	%eax, %eax
	jg	LBB0_2
	jmp	LBB0_33
LBB0_31:
	movq	_ASN1_F_A2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_NON_HEX_CHARACTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_32:
	xorl	%ebx, %ebx
LBB0_33:
	movq	_ASN1_F_A2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_SHORT_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movq	%rbx, %rdi
LBB0_34:
	callq	_OPENSSL_free
	xorl	%eax, %eax
LBB0_35:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_40:
	movq	%r8, %rbx
	jmp	LBB0_33
LBB0_37:
	movq	_ASN1_F_A2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_ODD_NUMBER_OF_CHARS@GOTPCREL(%rip), %rax
	jmp	LBB0_42
LBB0_38:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movl	$1, %eax
	jmp	LBB0_35
LBB0_41:
	movq	_ASN1_F_A2I_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_42:
	movl	(%rax), %esi
	callq	_ASN1err
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_INTEGER,4,2             ## @V_ASN1_INTEGER
	.comm	_ASN1_F_A2I_ASN1_INTEGER,4,2    ## @ASN1_F_A2I_ASN1_INTEGER
	.comm	_ASN1_R_ODD_NUMBER_OF_CHARS,4,2 ## @ASN1_R_ODD_NUMBER_OF_CHARS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_R_NON_HEX_CHARACTERS,4,2  ## @ASN1_R_NON_HEX_CHARACTERS
	.comm	_ASN1_R_SHORT_LINE,4,2          ## @ASN1_R_SHORT_LINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a2i_ASN1_INTEGER               ; -- Begin function a2i_ASN1_INTEGER
	.p2align	2
_a2i_ASN1_INTEGER:                      ; @a2i_ASN1_INTEGER
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _V_ASN1_INTEGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_INTEGER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #16]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x1, x2
	str	w3, [sp, #28]                   ; 4-byte Folded Spill
	mov	x2, x3
	bl	_BIO_gets
	cmp	w0, #1
	b.lt	LBB0_31
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w25, #0
	mov	w24, #0
	mov	w26, #0
	mov	x19, #0
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	sub	w8, w0, #1
	mov	x9, x8
	ldrb	w10, [x22, x8]
	cmp	w10, #10
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x22, x8]
	cbz	w9, LBB0_32
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w0, #2
	mov	x10, x8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x9
	mov	x9, x0
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w11, [x22, x8]
	cmp	w11, #13
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x22, x8]
	cbz	w10, LBB0_32
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w10, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x9
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, #0
	mov	w21, w10
	ldrb	w27, [x22, x8]
	cmp	w27, #92
	csetm	w28, eq
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x22, x20]
	bl	_ossl_isxdigit
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x20, x20, #1
	cmp	x21, x20
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x21
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x22, w20, sxtw]
	subs	w8, w20, #2
	b.lt	LBB0_32
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w25, #0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x22]
	cmp	w9, #48
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x22, #1]
	cmp	w9, #48
	csel	w20, w8, w20, eq
	cset	w8, eq
	add	x21, x22, w8, uxtw #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x22
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w20, w28
	tbnz	w23, #0, LBB0_35
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w20, w8, #1
	add	w28, w20, w26
	cmp	w28, w24
	b.le	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w26, w20, lsl #1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_OPENSSL_clear_realloc
	cbz	x0, LBB0_37
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x19, x0
	mov	x24, x25
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #2
	b.lt	LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x25, w26
	add	x21, x21, #1
LBB0_25:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w0, [x21, #-1]
	bl	_OPENSSL_hexchar2int
	tbnz	w0, #31, LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldrb	w8, [x19, x25]
	orr	w8, w0, w8, lsl #4
	strb	w8, [x19, x25]
	ldrb	w0, [x21]
	bl	_OPENSSL_hexchar2int
	tbnz	w0, #31, LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=2
	ldrb	w8, [x19, x25]
	orr	w8, w0, w8, lsl #4
	strb	w8, [x19, x25]
	add	x21, x21, #2
	add	x25, x25, #1
	subs	x20, x20, #1
	b.ne	LBB0_25
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w27, #92
	b.ne	LBB0_36
; %bb.29:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x22
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_BIO_gets
	mov	w25, #1
	mov	x26, x28
	cmp	w0, #1
	b.ge	LBB0_2
	b	LBB0_32
LBB0_30:
Lloh3:
	adrp	x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ASN1_R_NON_HEX_CHARACTERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASN1_R_NON_HEX_CHARACTERS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ASN1err
	b	LBB0_32
LBB0_31:
	mov	x19, #0
LBB0_32:
Lloh9:
	adrp	x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ASN1_R_SHORT_LINE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ASN1_R_SHORT_LINE@GOTPAGEOFF]
LBB0_33:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	x0, x19
	bl	_OPENSSL_free
	mov	w0, #0
LBB0_34:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_35:
Lloh14:
	adrp	x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _ASN1_R_ODD_NUMBER_OF_CHARS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ASN1_R_ODD_NUMBER_OF_CHARS@GOTPAGEOFF]
	b	LBB0_33
LBB0_36:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w28, [x8]
	str	x19, [x8, #8]
	mov	w0, #1
	b	LBB0_34
LBB0_37:
Lloh19:
	adrp	x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_INTEGER@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_33
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_INTEGER,4,2             ; @V_ASN1_INTEGER
	.comm	_ASN1_F_A2I_ASN1_INTEGER,4,2    ; @ASN1_F_A2I_ASN1_INTEGER
	.comm	_ASN1_R_ODD_NUMBER_OF_CHARS,4,2 ; @ASN1_R_ODD_NUMBER_OF_CHARS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_R_NON_HEX_CHARACTERS,4,2  ; @ASN1_R_NON_HEX_CHARACTERS
	.comm	_ASN1_R_SHORT_LINE,4,2          ; @ASN1_R_SHORT_LINE
.subsections_via_symbols
