	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a2i_ASN1_STRING                ## -- Begin function a2i_ASN1_STRING
	.p2align	4, 0x90
_a2i_ASN1_STRING:                       ## @a2i_ASN1_STRING
	.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, %r12
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %rsi
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	callq	_BIO_gets
	testl	%eax, %eax
	jle	LBB0_30
## %bb.1:
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $eax killed $eax def $rax
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	leal	-1(%rax), %ecx
	cmpb	$10, (%r12,%rcx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r12,%rcx)
	testl	%ecx, %ecx
	je	LBB0_37
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$-2, %eax
	movq	%rax, %rbx
	movl	%eax, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rbx
	movl	%ecx, %r15d
	movl	%eax, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$13, (%r12,%rbx)
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r12,%rbx)
	testl	%r15d, %r15d
	je	LBB0_37
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r15), %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	(%r12,%rbx), %al
	xorl	%r13d, %r13d
	cmpb	$92, %al
	sete	%r14b
	cmpl	$2, %r15d
	jb	LBB0_32
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movsbl	%al, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_ossl_isxdigit
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpq	$2, %rbx
	jl	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movsbl	-1(%r12,%rbx), %edi
	decq	%rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r15d
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rax
	movb	$0, (%r12,%rax)
	cmpl	$2, %eax
	jl	LBB0_33
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	%r14b, %r13b
	negl	%r13d
	addl	%r13d, %r15d
	testb	$1, %r15b
	jne	LBB0_34
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ebx
	shrl	$31, %ebx
	addl	%r15d, %ebx
	sarl	%ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(%rbx,%rax), %ecx
	cmpl	-80(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rax,%rbx,2), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_OPENSSL_realloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_42
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r15d
	jge	LBB0_22
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	$2, %r15d
	jl	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	-88(%rbp), %r14                 ## 4-byte Folded Reload
	movl	%ebx, %r15d
	addq	%r13, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rbx,2), %edi
	callq	_OPENSSL_hexchar2int
	testl	%eax, %eax
	js	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movzbl	(%r14,%rbx), %ecx
	shlb	$4, %cl
	orb	%cl, %al
	movb	%al, (%r14,%rbx)
	movzbl	1(%r12,%rbx,2), %edi
	callq	_OPENSSL_hexchar2int
	testl	%eax, %eax
	js	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	movzbl	(%r14,%rbx), %ecx
	shlb	$4, %cl
	orb	%cl, %al
	movb	%al, (%r14,%rbx)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_23
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$92, -41(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_35
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_BIO_gets
                                        ## kill: def $eax killed $eax def $rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %esi
	movq	%r13, %rdx
	testl	%eax, %eax
	jg	LBB0_2
## %bb.28:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_38
	jmp	LBB0_31
LBB0_29:
	movq	_ASN1_F_A2I_ASN1_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_NON_HEX_CHARACTERS@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_30:
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
LBB0_31:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	%r13, 8(%rax)
	movl	$1, %eax
	jmp	LBB0_41
LBB0_37:
	movq	%rdx, %r13
	jmp	LBB0_38
LBB0_32:
	movl	%r15d, %eax
	movb	$0, (%r12,%rax)
LBB0_33:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_38:
	movq	_ASN1_F_A2I_ASN1_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_SHORT_LINE@GOTPCREL(%rip), %rax
LBB0_39:
	movl	(%rax), %esi
	callq	_ASN1err
	movq	%r13, %rdi
LBB0_40:
	callq	_OPENSSL_free
	xorl	%eax, %eax
LBB0_41:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	_ASN1_F_A2I_ASN1_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_ODD_NUMBER_OF_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_35:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_31
LBB0_42:
	movq	_ASN1_F_A2I_ASN1_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movq	%r14, %rdi
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_A2I_ASN1_STRING,4,2     ## @ASN1_F_A2I_ASN1_STRING
	.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_STRING                ; -- Begin function a2i_ASN1_STRING
	.p2align	2
_a2i_ASN1_STRING:                       ; @a2i_ASN1_STRING
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x2
	mov	x22, x1
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x1, x2
	str	w3, [sp, #44]                   ; 4-byte Folded Spill
	mov	x2, x3
	bl	_BIO_gets
	cmp	w0, #1
	b.lt	LBB0_29
; %bb.1:
	mov	w25, #0
	mov	w28, #0
	mov	x19, #0
	sub	x26, x21, #1
	add	x8, x21, #1
	stp	x22, x8, [sp, #16]              ; 16-byte Folded Spill
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	sub	w24, w0, #1
	mov	x8, x24
	ldrb	w9, [x21, x24]
	cmp	w9, #10
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x21, x24]
	cbz	w8, LBB0_32
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w24, w0, #2
	mov	x20, x24
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x8
	mov	x8, x0
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x21, x24]
	cmp	w9, #13
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x21, x24]
	cbz	w20, LBB0_32
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w24, w20, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x8
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w27, [x21, x24]
	cmp	w27, #92
	csetm	w22, eq
	cmp	w20, #2
	b.lo	LBB0_31
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w0, w27
	bl	_ossl_isxdigit
	cbz	w0, LBB0_14
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x24, #2
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	x23, x24, #1
	ldrsb	w0, [x26, x24]
	bl	_ossl_isxdigit
	mov	x24, x23
	cbnz	w0, LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x24
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x21, w20, sxtw]
	cmp	w20, #2
	b.lt	LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w20, w22
	tbnz	w22, #0, LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w24, w8, #1
	add	w20, w24, w28
	cmp	w20, w25
	b.le	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w28, w24, lsl #1
	mov	x0, x19
	mov	x1, x25
	bl	_OPENSSL_realloc
	cbz	x0, LBB0_35
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x19, x0
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #2
	b.lt	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x28, w28
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
LBB0_22:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w0, [x22, #-1]
	bl	_OPENSSL_hexchar2int
	tbnz	w0, #31, LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldrb	w8, [x19, x28]
	orr	w8, w0, w8, lsl #4
	strb	w8, [x19, x28]
	ldrb	w0, [x22]
	bl	_OPENSSL_hexchar2int
	tbnz	w0, #31, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	ldrb	w8, [x19, x28]
	orr	w8, w0, w8, lsl #4
	strb	w8, [x19, x28]
	add	x22, x22, #2
	add	x28, x28, #1
	subs	x24, x24, #1
	b.ne	LBB0_22
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w27, #92
	b.ne	LBB0_34
; %bb.26:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x21
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	bl	_BIO_gets
	mov	x28, x20
	cmp	w0, #1
	b.ge	LBB0_2
; %bb.27:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	b.ge	LBB0_32
	b	LBB0_30
LBB0_28:
Lloh0:
	adrp	x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASN1_R_NON_HEX_CHARACTERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_R_NON_HEX_CHARACTERS@GOTPAGEOFF]
	b	LBB0_36
LBB0_29:
	mov	x19, #0
	mov	w20, #0
LBB0_30:
	str	w20, [x22]
	str	x19, [x22, #8]
	mov	w0, #1
	b	LBB0_37
LBB0_31:
	strb	wzr, [x21, w20, uxtw]
LBB0_32:
Lloh5:
	adrp	x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ASN1_R_SHORT_LINE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASN1_R_SHORT_LINE@GOTPAGEOFF]
	b	LBB0_36
LBB0_33:
Lloh10:
	adrp	x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ASN1_R_ODD_NUMBER_OF_CHARS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASN1_R_ODD_NUMBER_OF_CHARS@GOTPAGEOFF]
	b	LBB0_36
LBB0_34:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_30
LBB0_35:
Lloh15:
	adrp	x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ASN1_F_A2I_ASN1_STRING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_36:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	x0, x19
	bl	_OPENSSL_free
	mov	w0, #0
LBB0_37:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_A2I_ASN1_STRING,4,2     ; @ASN1_F_A2I_ASN1_STRING
	.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
