	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_name_expand              ## -- Begin function hx509_name_expand
	.p2align	4, 0x90
_hx509_name_expand:                     ## @hx509_name_expand
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	(%rsi), %rcx
	movq	_choice_Name_rdnSequence@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_24
## %bb.2:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.3:
	movq	16(%rbx), %rcx
	movq	_choice_DirectoryString_utf8String@GOTPCREL(%rip), %r8
	xorl	%esi, %esi
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	movq	%rsi, %rdi
	shlq	$4, %rdi
	cmpq	$0, (%rcx,%rdi)
	je	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	movq	8(%rcx,%rdi), %r15
	movq	%rdx, %r14
	shlq	$4, %r14
	movq	(%r15,%r14), %rax
	cmpq	(%r8), %rax
	jne	LBB0_32
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r15,%r14), %r13
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strstr
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r12d, %edx
	subl	%r13d, %edx
	xorl	%edi, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_rk_strpoolprintf
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_33
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r13d, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%r15,%r14), %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=3
	movl	%r12d, %edx
	subl	%r15d, %edx
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_rk_strpoolprintf
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=3
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_25
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%r12, %r12
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	%r12, %rdi
	movl	$125, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	%rax, %r15
	addq	$2, %r12
	movq	%rax, %rbx
	subq	%r12, %rbx
	movl	%r14d, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_hx509_env_lfind
	testq	%rax, %rax
	je	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_rk_strpoolprintf
	testq	%rax, %rax
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	%rax, %rbx
	incq	%r15
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strstr
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_rk_strpoolprintf
	jmp	LBB0_12
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	testq	%r13, %r13
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_rk_strpoolcollect
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_25
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	(%rcx,%rdi), %rdx
	movq	_choice_DirectoryString_utf8String@GOTPCREL(%rip), %r8
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jb	LBB0_6
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdx
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	xorl	%eax, %eax
	cmpq	%rdx, %rsi
	jb	LBB0_4
	jmp	LBB0_29
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_26
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rcx
LBB0_26:
	movl	%r14d, %edi
LBB0_27:
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_hx509_set_error_string
LBB0_28:
	movl	(%rbx), %eax
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.5(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	movq	%r13, %rdi
	callq	_rk_strpoolfree
	jmp	LBB0_28
LBB0_31:
	movl	%r14d, %edi
	movq	_EINVAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.6(%rip), %rcx
	xorl	%esi, %esi
	movl	%ebx, %r8d
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	movq	%r13, %rdi
	callq	_rk_strpoolfree
	movl	(%r14), %eax
	jmp	LBB0_29
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_27
LBB0_33:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_choice_Name_rdnSequence,8,3    ## @choice_Name_rdnSequence
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDN not of supported type"

	.comm	_choice_DirectoryString_utf8String,8,3 ## @choice_DirectoryString_utf8String
L_.str.1:                               ## @.str.1
	.asciz	"unsupported type"

L_.str.2:                               ## @.str.2
	.asciz	"${"

L_.str.3:                               ## @.str.3
	.asciz	"%.*s"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"out of memory"

L_.str.5:                               ## @.str.5
	.asciz	"missing }"

L_.str.6:                               ## @.str.6
	.asciz	"variable %.*s missing"

L_.str.7:                               ## @.str.7
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_name_expand              ; -- Begin function hx509_name_expand
	.p2align	2
_hx509_name_expand:                     ; @hx509_name_expand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x2, LBB0_23
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _choice_Name_rdnSequence@GOTPAGE
Lloh1:
	ldr	x9, [x9, _choice_Name_rdnSequence@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.2:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_23
; %bb.3:
	mov	x20, x2
	mov	x24, #0
	ldr	x8, [x21, #16]
Lloh3:
	adrp	x11, _choice_DirectoryString_utf8String@GOTPAGE
Lloh4:
	ldr	x11, [x11, _choice_DirectoryString_utf8String@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	lsl	x12, x24, #4
	ldr	x10, [x8, x12]
	cbz	x10, LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	str	x12, [sp, #24]                  ; 8-byte Folded Spill
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	add	x8, x8, x24, lsl #4
	ldr	x8, [x8, #8]
	lsl	x9, x22, #4
	ldr	x9, [x8, x9]
	ldr	x10, [x11]
	cmp	x9, x10
	b.ne	LBB0_32
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x8, x22, lsl #4
	ldr	x25, [x23, #8]!
	mov	x0, x25
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strstr
	mov	x26, x0
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	sub	x8, x26, x25
	stp	x8, x25, [sp]
	mov	x0, #0
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_rk_strpoolprintf
	mov	x25, x0
	cbnz	x0, LBB0_12
	b	LBB0_25
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x25, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=3
	sub	x8, x26, x27
	stp	x8, x27, [sp]
	mov	x0, x25
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	bl	_rk_strpoolprintf
	mov	x25, x0
	cbz	x0, LBB0_25
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	x26, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	mov	x0, x26
	mov	w1, #125
	bl	_strchr
	cbz	x0, LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=3
	mov	x27, x0
	add	x26, x26, #2
	sub	x28, x0, x26
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	mov	x3, x28
	bl	_hx509_env_lfind
	cbz	x0, LBB0_30
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=3
	str	x0, [sp]
	mov	x0, x25
Lloh11:
	adrp	x1, l_.str.7@PAGE
Lloh12:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_rk_strpoolprintf
	cbz	x0, LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=3
	mov	x25, x0
	add	x27, x27, #1
	mov	x0, x27
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strstr
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=3
	str	x27, [sp]
	mov	x0, x25
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=2
	cbz	x25, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x0, [x23]
	bl	_free
	mov	x0, x25
	bl	_rk_strpoolcollect
	str	x0, [x23]
	cbz	x0, LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x22, x22, #1
	ldr	x8, [x21, #16]
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x9, [x8, x12]
	cmp	x22, x9
Lloh17:
	adrp	x11, _choice_DirectoryString_utf8String@GOTPAGE
Lloh18:
	ldr	x11, [x11, _choice_DirectoryString_utf8String@GOTPAGEOFF]
	b.lo	LBB0_6
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #8]
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	add	x24, x24, #1
	cmp	x24, x9
	b.lo	LBB0_4
	b	LBB0_28
LBB0_23:
	mov	w0, #0
	b	LBB0_28
LBB0_24:
Lloh19:
	adrp	x20, _EINVAL@GOTPAGE
Lloh20:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh23:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh25:
	adrp	x3, l_.str.4@PAGE
Lloh26:
	add	x3, x3, l_.str.4@PAGEOFF
LBB0_26:
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
LBB0_27:
	ldr	w0, [x20]
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_29:
Lloh27:
	adrp	x20, _EINVAL@GOTPAGE
Lloh28:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh29:
	adrp	x3, l_.str.5@PAGE
Lloh30:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_31
LBB0_30:
Lloh31:
	adrp	x20, _EINVAL@GOTPAGE
Lloh32:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w2, [x20]
	stp	x28, x26, [sp]
Lloh33:
	adrp	x3, l_.str.6@PAGE
Lloh34:
	add	x3, x3, l_.str.6@PAGEOFF
LBB0_31:
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	mov	x0, x25
	bl	_rk_strpoolfree
	b	LBB0_27
LBB0_32:
Lloh35:
	adrp	x20, _EINVAL@GOTPAGE
Lloh36:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh37:
	adrp	x3, l_.str.1@PAGE
Lloh38:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_choice_Name_rdnSequence,8,3    ; @choice_Name_rdnSequence
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDN not of supported type"

	.comm	_choice_DirectoryString_utf8String,8,3 ; @choice_DirectoryString_utf8String
l_.str.1:                               ; @.str.1
	.asciz	"unsupported type"

l_.str.2:                               ; @.str.2
	.asciz	"${"

l_.str.3:                               ; @.str.3
	.asciz	"%.*s"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"out of memory"

l_.str.5:                               ; @.str.5
	.asciz	"missing }"

l_.str.6:                               ; @.str.6
	.asciz	"variable %.*s missing"

l_.str.7:                               ; @.str.7
	.asciz	"%s"

.subsections_via_symbols
