	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2a_ASN1_STRING                ## -- Begin function i2a_ASN1_STRING
	.p2align	4, 0x90
_i2a_ASN1_STRING:                       ## @i2a_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$0, (%rsi)
	je	LBB0_10
## %bb.2:
	jle	LBB0_12
## %bb.3:
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %eax
	movl	$3558687189, %ecx               ## imm = 0xD41D41D5
	imulq	%rcx, %rax
	shrq	$32, %rax
	movl	%r12d, %ecx
	subl	%eax, %ecx
	shrl	%ecx
	addl	%eax, %ecx
	shrl	$5, %ecx
	imull	$-35, %ecx, %eax
	addl	%r12d, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_BIO_write
	cmpl	$2, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	movzbl	(%rcx,%r13), %ecx
	movb	%cl, -42(%rbp)
	andl	$15, %eax
	movzbl	(%rax,%r13), %eax
	movb	%al, -41(%rbp)
	movq	%r14, %rdi
	leaq	-42(%rbp), %rsi
	movl	$2, %edx
	callq	_BIO_write
	cmpl	$2, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %ebx
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_4
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %ebx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_BIO_write
	cmpl	$1, %eax
	je	LBB0_12
LBB0_11:
	movl	$-1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789ABCDEF"

L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.asciz	"\\\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2a_ASN1_STRING                ; -- Begin function i2a_ASN1_STRING
	.p2align	2
_i2a_ASN1_STRING:                       ; @i2a_ASN1_STRING
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x1, LBB0_10
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_11
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x23, #0
	mov	w19, #0
	mov	w24, #16853
	movk	w24, #54301, lsl #16
	mov	w25, #-35
Lloh0:
	adrp	x22, l_.str.2@PAGE
Lloh1:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh2:
	adrp	x26, l_.str@PAGE
Lloh3:
	add	x26, x26, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x23, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x8, x23, #0xffffffff
	mul	x8, x8, x24
	lsr	x8, x8, #32
	sub	w9, w23, w8
	add	w8, w8, w9, lsr #1
	lsr	w8, w8, #5
	madd	w8, w8, w25, w23
	cbnz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #2
	bl	_BIO_write
	cmp	w0, #2
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x23, lsl #3]
	ubfx	x9, x8, #4, #4
	ldrb	w9, [x26, x9]
	strb	w9, [sp, #14]
	and	x8, x8, #0xf
	ldrb	w8, [x26, x8]
	strb	w8, [sp, #15]
	add	x1, sp, #14
	mov	x0, x20
	mov	w2, #2
	bl	_BIO_write
	cmp	w0, #2
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #2
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_4
	b	LBB0_13
LBB0_10:
	mov	w19, #0
	b	LBB0_13
LBB0_11:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w19, #1
	mov	x0, x20
	mov	w2, #1
	bl	_BIO_write
	cmp	w0, #1
	b.eq	LBB0_13
LBB0_12:
	mov	w19, #-1
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789ABCDEF"

l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.asciz	"\\\n"

.subsections_via_symbols
