	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_parse_name               ## -- Begin function hx509_parse_name
	.p2align	4, 0x90
_hx509_parse_name:                      ## @hx509_parse_name
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_choice_Name_rdnSequence@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r13
	testl	%r14d, %r14d
	movq	%rbx, %r12
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_24
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_26
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%r13)
	je	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	subq	%r13, %rbx
	movl	$1, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %rbx
	xorl	%eax, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	subq	%r13, %r14
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r15
	subq	%r14, %r15
	jb	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	-48(%rbp), %rdx
	callq	_stringtooid
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	%r15, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	leaq	(%r14,%r13), %rsi
	incq	%rsi
	leaq	-1(%r15), %rdx
	movq	%rax, %rdi
	callq	_memcpy
	movb	$0, -1(%r12,%r15)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	leaq	-48(%rbp), %r15
	movq	%r15, %rcx
	movq	%r12, %r8
	callq	__hx509_name_modify
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_der_free_oid
	testl	%r14d, %r14d
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jmp	LBB0_23
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	movl	(%rbx), %eax
	jmp	LBB0_25
LBB0_26:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_9:
	movq	_HX509_PARSING_NAME_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_10
LBB0_13:
	movq	_HX509_PARSING_NAME_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
LBB0_10:
	movl	%r15d, %edi
	jmp	LBB0_11
LBB0_15:
	movq	_HX509_PARSING_NAME_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_11:
	xorl	%esi, %esi
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	jmp	LBB0_24
LBB0_17:
	movq	_HX509_PARSING_NAME_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%r14d, %r8d
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	jmp	LBB0_24
LBB0_19:
	leaq	-48(%rbp), %rdi
	callq	_der_free_oid
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_hx509_set_error_string
LBB0_24:
	leaq	-80(%rbp), %rdi
	callq	_hx509_name_free
	movq	_HX509_NAME_MALFORMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_choice_Name_rdnSequence,4,2    ## @choice_Name_rdnSequence
	.comm	_HX509_PARSING_NAME_FAILED,4,2  ## @HX509_PARSING_NAME_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"missing = in %s"

L_.str.2:                               ## @.str.2
	.asciz	"missing name before = in %s"

L_.str.3:                               ## @.str.3
	.asciz	" = after , in %s"

L_.str.4:                               ## @.str.4
	.asciz	"unknown type: %.*s"

	.comm	_HX509_NAME_MALFORMED,4,2       ## @HX509_NAME_MALFORMED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_parse_name               ; -- Begin function hx509_parse_name
	.p2align	2
_hx509_parse_name:                      ; @hx509_parse_name
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x2]
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _choice_Name_rdnSequence@GOTPAGE
Lloh1:
	ldr	x8, [x8, _choice_Name_rdnSequence@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #44
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x23, x0, x20
	mov	w27, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x23, x0
	mov	x27, #0
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x24, x0, x20
	b.eq	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x25, x23, x24
	b.lo	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x2, sp, #20
	mov	x0, x20
	mov	x1, x24
	bl	_stringtooid
	cbnz	w0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_malloc
	cbz	x0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	add	x8, x20, x24
	add	x1, x8, #1
	sub	x24, x25, #1
	mov	x2, x24
	bl	_memcpy
	strb	wzr, [x26, x24]
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	x4, x26
	bl	__hx509_name_modify
	mov	x24, x0
	mov	x0, x26
	bl	_free
	add	x0, sp, #20
	bl	_der_free_oid
	add	x8, x27, x23
	cmp	w24, #0
	csel	x8, x8, xzr, eq
	add	x20, x20, x8
	cbz	w24, LBB0_2
	b	LBB0_21
LBB0_13:
Lloh3:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w0, [x20]
	b	LBB0_22
LBB0_14:
	mov	w0, #0
	str	x22, [x21]
	b	LBB0_22
LBB0_15:
Lloh7:
	adrp	x8, _HX509_PARSING_NAME_FAILED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HX509_PARSING_NAME_FAILED@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	str	x20, [sp]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_16:
Lloh12:
	adrp	x8, _HX509_PARSING_NAME_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HX509_PARSING_NAME_FAILED@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	str	x20, [sp]
Lloh15:
	adrp	x3, l_.str.2@PAGE
Lloh16:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_17:
Lloh17:
	adrp	x8, _HX509_PARSING_NAME_FAILED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HX509_PARSING_NAME_FAILED@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	str	x20, [sp]
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh22:
	adrp	x8, _HX509_PARSING_NAME_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HX509_PARSING_NAME_FAILED@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	stp	x24, x20, [sp]
Lloh25:
	adrp	x3, l_.str.4@PAGE
Lloh26:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_19:
	add	x0, sp, #20
	bl	_der_free_oid
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x3, l_.str@PAGE
Lloh31:
	add	x3, x3, l_.str@PAGEOFF
LBB0_20:
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
LBB0_21:
	add	x0, sp, #24
	bl	_hx509_name_free
Lloh32:
	adrp	x8, _HX509_NAME_MALFORMED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HX509_NAME_MALFORMED@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_choice_Name_rdnSequence,4,2    ; @choice_Name_rdnSequence
	.comm	_HX509_PARSING_NAME_FAILED,4,2  ; @HX509_PARSING_NAME_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"missing = in %s"

l_.str.2:                               ; @.str.2
	.asciz	"missing name before = in %s"

l_.str.3:                               ; @.str.3
	.asciz	" = after , in %s"

l_.str.4:                               ; @.str.4
	.asciz	"unknown type: %.*s"

	.comm	_HX509_NAME_MALFORMED,4,2       ; @HX509_NAME_MALFORMED
.subsections_via_symbols
