	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function type_str
_type_str:                              ## @type_str
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	%rdi, %r12
	jb	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ossl_fromascii
	movq	%rax, %r12
LBB0_2:
	movq	_B_ASN1_NUMERICSTRING@GOTPCREL(%rip), %r13
	testq	%rbx, (%r13)
	je	LBB0_6
## %bb.3:
	movl	%r12d, %edi
	callq	_ossl_isdigit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	cmpl	$32, %r12d
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	notq	%rax
	andq	%rax, %rbx
LBB0_6:
	movq	_B_ASN1_PRINTABLESTRING@GOTPCREL(%rip), %r13
	testq	%rbx, (%r13)
	je	LBB0_9
## %bb.7:
	movl	%r12d, %edi
	callq	_ossl_isasn1print
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r13), %rax
	notq	%rax
	andq	%rax, %rbx
LBB0_9:
	movq	_B_ASN1_IA5STRING@GOTPCREL(%rip), %r13
	testq	%rbx, (%r13)
	je	LBB0_12
## %bb.10:
	movl	%r12d, %edi
	callq	_ossl_isascii
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	(%r13), %rax
	notq	%rax
	andq	%rax, %rbx
LBB0_12:
	movq	_B_ASN1_T61STRING@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rdx
	andq	%rbx, %rdx
	notq	%rcx
	xorl	%eax, %eax
	cmpq	$1, %rdx
	movl	$0, %edx
	sbbq	%rdx, %rdx
	orq	%rcx, %rdx
	cmpq	$256, %r15                      ## imm = 0x100
	movq	$-1, %rcx
	cmovbq	%rcx, %rdx
	andq	%rbx, %rdx
	movq	_B_ASN1_BMPSTRING@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, %rdi
	andq	%rsi, %rdi
	notq	%rsi
	cmpq	$1, %rdi
	sbbq	%rax, %rax
	orq	%rsi, %rax
	cmpq	$65536, %r15                    ## imm = 0x10000
	cmovbq	%rcx, %rax
	andq	%rdx, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, (%r14)
	movl	$1, %eax
	jmp	LBB0_15
LBB0_13:
	movl	$-1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_B_ASN1_NUMERICSTRING,8,3       ## @B_ASN1_NUMERICSTRING
	.comm	_B_ASN1_PRINTABLESTRING,8,3     ## @B_ASN1_PRINTABLESTRING
	.comm	_B_ASN1_IA5STRING,8,3           ## @B_ASN1_IA5STRING
	.comm	_B_ASN1_T61STRING,8,3           ## @B_ASN1_T61STRING
	.comm	_B_ASN1_BMPSTRING,8,3           ## @B_ASN1_BMPSTRING
	.no_dead_strip	_type_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function type_str
_type_str:                              ; @type_str
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	cmp	x21, x0
	b.lo	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ossl_fromascii
	mov	x21, x0
LBB0_2:
Lloh3:
	adrp	x23, _B_ASN1_NUMERICSTRING@GOTPAGE
Lloh4:
	ldr	x23, [x23, _B_ASN1_NUMERICSTRING@GOTPAGEOFF]
	ldr	x8, [x23]
	tst	x8, x22
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_ossl_isdigit
	cbnz	x0, LBB0_6
; %bb.4:
	cmp	w21, #32
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x23]
	bic	x22, x22, x8
LBB0_6:
Lloh5:
	adrp	x23, _B_ASN1_PRINTABLESTRING@GOTPAGE
Lloh6:
	ldr	x23, [x23, _B_ASN1_PRINTABLESTRING@GOTPAGEOFF]
	ldr	x8, [x23]
	tst	x8, x22
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_ossl_isasn1print
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x23]
	bic	x22, x22, x8
LBB0_9:
Lloh7:
	adrp	x23, _B_ASN1_IA5STRING@GOTPAGE
Lloh8:
	ldr	x23, [x23, _B_ASN1_IA5STRING@GOTPAGEOFF]
	ldr	x8, [x23]
	tst	x8, x22
	b.eq	LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_ossl_isascii
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x23]
	bic	x22, x22, x8
LBB0_12:
Lloh9:
	adrp	x8, _B_ASN1_T61STRING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B_ASN1_T61STRING@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x22
	mov	w9, #255
	ccmp	x20, x9, #0, ne
	mov	x9, #-1
	csinv	x8, x9, x8, ls
	and	x8, x8, x22
Lloh12:
	adrp	x10, _B_ASN1_BMPSTRING@GOTPAGE
Lloh13:
	ldr	x10, [x10, _B_ASN1_BMPSTRING@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	tst	x8, x10
	and	x11, x20, #0xffffffffffff0000
	ccmp	x11, #0, #4, ne
	csinv	x9, x9, x10, eq
	ands	x8, x9, x8
	b.eq	LBB0_14
; %bb.13:
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_B_ASN1_NUMERICSTRING,8,3       ; @B_ASN1_NUMERICSTRING
	.comm	_B_ASN1_PRINTABLESTRING,8,3     ; @B_ASN1_PRINTABLESTRING
	.comm	_B_ASN1_IA5STRING,8,3           ; @B_ASN1_IA5STRING
	.comm	_B_ASN1_T61STRING,8,3           ; @B_ASN1_T61STRING
	.comm	_B_ASN1_BMPSTRING,8,3           ; @B_ASN1_BMPSTRING
	.no_dead_strip	_type_str
.subsections_via_symbols
