	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asn1_string_canon
_asn1_string_canon:                     ## @asn1_string_canon
	.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, %rbx
	movq	%rdi, %r15
	movl	16(%rsi), %edi
	callq	_ASN1_tag2bit
	movq	_ASN1_MASK_CANON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_V_ASN1_UTF8STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	leaq	8(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_ASN1_STRING_to_UTF8
	movl	%eax, (%r15)
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movl	%r12d, %r13d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	callq	_ossl_isspace
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	leal	-1(%r13), %eax
	cmpl	$1, %r13d
	movl	%eax, %r13d
	jg	LBB0_6
	jmp	LBB0_11
LBB0_1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ASN1_STRING_copy
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	jmp	LBB0_23
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_8:
	movl	%r12d, %eax
	addq	%rax, %r14
	decq	%r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %edi
	callq	_ossl_isspace
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	-1(%r13), %eax
	decq	%r14
	cmpl	$1, %r13d
	movl	%eax, %r13d
	jg	LBB0_9
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, %r12
LBB0_22:
	subl	%eax, %r12d
	movl	%r12d, (%r15)
	movl	$1, %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	movb	(%rbx), %al
	incq	%rbx
	movb	%al, (%r12)
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r14d
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r12
	cmpl	%r13d, %r14d
	jge	LBB0_21
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movzbl	(%rbx), %edi
	callq	_ossl_isascii
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	(%rbx), %edi
	callq	_ossl_isspace
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	$32, (%r12)
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r14d
	movzbl	1(%rbx), %edi
	incq	%rbx
	callq	_ossl_isspace
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movzbl	(%rbx), %edi
	callq	_ossl_tolower
	movb	%al, (%r12)
	incq	%rbx
	jmp	LBB0_19
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_MASK_CANON,4,2            ## @ASN1_MASK_CANON
	.comm	_V_ASN1_UTF8STRING,4,2          ## @V_ASN1_UTF8STRING
	.no_dead_strip	_asn1_string_canon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asn1_string_canon
_asn1_string_canon:                     ; @asn1_string_canon
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	bl	_ASN1_tag2bit
Lloh0:
	adrp	x8, _ASN1_MASK_CANON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_MASK_CANON@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _V_ASN1_UTF8STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V_ASN1_UTF8STRING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	add	x20, x19, #8
	mov	x0, x20
	mov	x1, x21
	bl	_ASN1_STRING_to_UTF8
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:
	ldr	x24, [x20]
	mov	x22, x21
	mov	x23, x24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x23]
	bl	_ossl_isspace
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	subs	w22, w22, #1
	b.gt	LBB0_4
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_ASN1_STRING_copy
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_13
LBB0_7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
	add	x8, x24, w21, uxtw
	sub	x21, x8, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21]
	bl	_ossl_isspace
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x21, x21, #1
	subs	w22, w22, #1
	b.gt	LBB0_9
LBB0_11:
	ldr	x8, [x20]
	mov	x21, x8
LBB0_12:
	sub	w8, w21, w8
	str	w8, [x19]
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w24, #0
	ldr	x21, [x20]
	mov	w25, #32
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w8, [x23], #1
	strb	w8, [x21]
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w24, w24, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #1
	cmp	w24, w22
	b.ge	LBB0_23
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldrb	w0, [x23]
	bl	_ossl_isascii
	cbz	w0, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w0, [x23]
	bl	_ossl_isspace
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	strb	w25, [x21]
LBB0_21:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w0, [x23, #1]!
	add	w24, w24, #1
	bl	_ossl_isspace
	cbnz	x0, LBB0_21
	b	LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w0, [x23], #1
	bl	_ossl_tolower
	strb	w0, [x21]
	b	LBB0_16
LBB0_23:
	ldr	x8, [x20]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_MASK_CANON,4,2            ; @ASN1_MASK_CANON
	.comm	_V_ASN1_UTF8STRING,4,2          ; @V_ASN1_UTF8STRING
	.no_dead_strip	_asn1_string_canon
.subsections_via_symbols
