	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_Name_to_string          ## -- Begin function _hx509_Name_to_string
	.p2align	4, 0x90
__hx509_Name_to_string:                 ## @_hx509_Name_to_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -72(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_31
## %bb.2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	decq	%r14
	movq	8(%rbx), %rax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	shlq	$4, %r14
	cmpq	$0, (%rax,%r14)
	je	LBB0_28
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	addq	$96, %r15
	cmpq	%rcx, %r12
	jae	LBB0_28
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax,%r14), %rbx
	leaq	(%rbx,%r15), %r14
	movq	%r14, %rdi
	callq	_oidtostring
	movq	%rax, %r13
	movl	8(%rbx,%r15), %esi
	leal	-128(%rsi), %eax
	cmpl	$5, %eax
	ja	LBB0_36
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%rbx,%r15), %r12
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	32(%rbx,%r15), %rsi
	movq	40(%rbx,%r15), %r12
	movq	%r12, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdx
	callq	_wind_ucs4utf8_length
	testl	%eax, %eax
	jne	LBB0_34
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rdi
	incq	%rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	__hx509_abort
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_wind_ucs4utf8
	jmp	LBB0_22
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	24(%rbx,%r15), %r12
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %eax
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	64(%rbx,%r15), %r12
	movq	72(%rbx,%r15), %rax
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	80(%rbx,%r15), %r12
	movq	88(%rbx,%r15), %rax
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	48(%rbx,%r15), %rsi
	movq	56(%rbx,%r15), %r12
	movq	%r12, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdx
	callq	_wind_ucs2utf8_length
	testl	%eax, %eax
	jne	LBB0_34
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rdi
	incq	%rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	__hx509_abort
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_wind_ucs2utf8
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %r12
	testl	%eax, %eax
	jne	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movb	$0, (%r12,%rax)
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r13, %rdi
	callq	_strlen
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-72(%rbp), %r14
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_append_string
	movq	%r13, %rdi
	callq	_free
	movq	%rbx, %rdi
	movq	%r14, %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_append_string
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$1, %r8d
	callq	_append_string
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	orl	$4, %eax
	cmpl	$133, %eax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	callq	_free
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-112(%rbp), %r12                ## 8-byte Reload
	incq	%r12
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14), %rcx
	cmpq	%rcx, %r12
	jae	LBB0_5
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_append_string
	movq	8(%rbx), %rax
	movq	(%rax,%r14), %rcx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_append_string
	jmp	LBB0_3
LBB0_30:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_35
LBB0_31:
	xorl	%ebx, %ebx
	jmp	LBB0_35
LBB0_34:
	movl	%eax, %ebx
	jmp	LBB0_35
LBB0_32:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
LBB0_35:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	__hx509_abort
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"allocation failure"

L_.str.2:                               ## @.str.2
	.asciz	"unknown directory type: %d"

L_.str.3:                               ## @.str.3
	.asciz	"="

L_.str.4:                               ## @.str.4
	.asciz	"+"

L_.str.5:                               ## @.str.5
	.asciz	","

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_Name_to_string          ; -- Begin function _hx509_Name_to_string
	.p2align	2
__hx509_Name_to_string:                 ; @_hx509_Name_to_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	x19, x1
	mov	x24, x0
	str	xzr, [sp, #40]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	str	x0, [x19]
	cbz	x0, LBB0_28
; %bb.1:
	ldr	x8, [x24]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_29
; %bb.2:
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sub	x9, x9, #1
	ldr	x8, [x24, #8]
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	lsl	x22, x9, #4
	ldr	x9, [x8, x22]
	cbz	x9, LBB0_26
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	mov	x20, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x23, #96
	cmp	x20, x9
	b.hs	LBB0_26
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #4
	ldr	x21, [x8, #8]
	add	x25, x21, x23
	mov	x0, x25
	bl	_oidtostring
	ldr	w8, [x25, #8]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_33
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x26, x0
Lloh2:
	adrp	x11, lJTI0_0@PAGE
Lloh3:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x8, LBB0_8
	ldrb	w10, [x11, x9]
	add	x8, x8, x10, lsl #2
	br	x8
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x21, x23
	ldr	x27, [x8, #16]
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x21, x23
	ldp	x24, x21, [x8, #32]
	add	x2, sp, #32
	mov	x0, x21
	mov	x1, x24
	bl	_wind_ucs4utf8_length
	cbnz	w0, LBB0_30
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #32]
	add	x0, x8, #1
	bl	_malloc
	mov	x27, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__hx509_abort
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x27
	mov	x3, #0
	bl	_wind_ucs4utf8
	cbz	w0, LBB0_21
	b	LBB0_31
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x21, x23
	ldr	x27, [x8, #24]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x27
	bl	_strlen
	mov	w28, w0
	b	LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x21, x23
	ldp	x27, x28, [x8, #64]
	b	LBB0_22
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x21, x23
	ldp	x27, x28, [x8, #80]
	b	LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x21, x23
	ldp	x24, x21, [x8, #48]
	add	x2, sp, #32
	mov	x0, x21
	mov	x1, x24
	bl	_wind_ucs2utf8_length
	cbnz	w0, LBB0_30
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #32]
	add	x0, x8, #1
	bl	_malloc
	mov	x27, x0
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=2
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__hx509_abort
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x27
	mov	x3, #0
	bl	_wind_ucs2utf8
	cbnz	w0, LBB0_31
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x28, [sp, #32]
	strb	wzr, [x27, x28]
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x26
	bl	_strlen
	mov	x3, x0
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, x26
	mov	w4, #0
	bl	_append_string
	mov	x0, x26
	bl	_free
	add	x1, sp, #40
	mov	x0, x19
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w3, #1
	mov	w4, #0
	bl	_append_string
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, x27
	mov	x3, x28
	mov	w4, #1
	bl	_append_string
	ldr	w8, [x25, #8]
	orr	w8, w8, #0x4
	cmp	w8, #133
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x27
	bl	_free
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x20, x20, #1
	ldr	x8, [x24, #8]
	ldr	x9, [x8, x22]
	cmp	x20, x9
	b.hs	LBB0_5
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=2
	add	x1, sp, #40
	mov	x0, x19
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w3, #1
	mov	w4, #0
	bl	_append_string
	ldr	x8, [x24, #8]
	ldr	x9, [x8, x22]
	b	LBB0_5
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #40
	mov	x0, x19
Lloh12:
	adrp	x2, l_.str.5@PAGE
Lloh13:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w3, #1
	mov	w4, #0
	bl	_append_string
	b	LBB0_3
LBB0_28:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w28, [x8]
	b	LBB0_32
LBB0_29:
	mov	w28, #0
	b	LBB0_32
LBB0_30:
	mov	x28, x0
	b	LBB0_32
LBB0_31:
	mov	x28, x0
	mov	x0, x27
	bl	_free
LBB0_32:
	mov	x0, x28
	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
LBB0_33:
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__hx509_abort
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"allocation failure"

l_.str.2:                               ; @.str.2
	.asciz	"unknown directory type: %d"

l_.str.3:                               ; @.str.3
	.asciz	"="

l_.str.4:                               ; @.str.4
	.asciz	"+"

l_.str.5:                               ; @.str.5
	.asciz	","

.subsections_via_symbols
