	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_name_modify             ## -- Begin function _hx509_name_modify
	.p2align	4, 0x90
__hx509_name_modify:                    ## @_hx509_name_modify
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	8(%rsi), %rdi
	movl	(%rsi), %esi
	shll	$4, %esi
	addl	$16, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r12)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movslq	(%r12), %rax
	shlq	$4, %rax
	addq	%rax, %rbx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %eax
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	addq	$16, %rdi
	movl	(%r12), %edx
	shll	$4, %edx
	movq	%rbx, %rsi
	callq	_memmove
	movq	8(%r12), %rbx
LBB0_5:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	$1, (%rbx)
	addq	$16, %rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_der_copy_oid
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_choice_DirectoryString_utf8String@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rbx
	movl	%eax, 8(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strdup
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	incl	(%r12)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %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_DirectoryString_utf8String,4,2 ## @choice_DirectoryString_utf8String
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_name_modify             ; -- Begin function _hx509_name_modify
	.p2align	2
__hx509_name_modify:                    ; @_hx509_name_modify
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x0, [x1, #8]
	ldr	w8, [x1]
	lsl	w8, w8, #4
	add	w1, w8, #16
	bl	_realloc
	mov	x1, x0
	cbz	x0, LBB0_3
; %bb.1:
	str	x1, [x19, #8]
	cbz	w23, LBB0_4
; %bb.2:
	ldrsw	x8, [x19]
	add	x22, x1, x8, lsl #4
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	bl	_hx509_set_error_string
	ldr	w0, [x19]
	b	LBB0_10
LBB0_4:
	add	x0, x1, #16
	ldr	w8, [x19]
	lsl	w2, w8, #4
	bl	_memmove
	ldr	x22, [x19, #8]
LBB0_5:
	mov	w0, #24
	bl	_malloc
	str	x0, [x22, #8]
	cbz	x0, LBB0_9
; %bb.6:
	mov	w8, #1
	str	w8, [x22]
	add	x1, x0, #16
	mov	x0, x21
	bl	_der_copy_oid
	cbnz	w0, LBB0_10
; %bb.7:
Lloh4:
	adrp	x8, _choice_DirectoryString_utf8String@GOTPAGE
Lloh5:
	ldr	x8, [x8, _choice_DirectoryString_utf8String@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x21, [x22, #8]
	str	w8, [x21, #8]
	mov	x0, x20
	bl	_strdup
	str	x0, [x21]
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_10:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory"

	.comm	_choice_DirectoryString_utf8String,4,2 ; @choice_DirectoryString_utf8String
.subsections_via_symbols
