	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_expand
_test_expand:                           ## @test_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	$0, -40(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-40(%rbp), %rsi
	callq	_hx509_env_add
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_hx509_parse_name
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	-28(%rbp), %esi
	movq	-40(%rbp), %rdx
	movl	%ebx, %edi
	callq	_hx509_name_expand
	movl	%eax, %ebx
	leaq	-40(%rbp), %rdi
	callq	_hx509_env_free
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.2:
	movl	-28(%rbp), %edi
	leaq	-48(%rbp), %rsi
	callq	_hx509_name_to_string
	movl	%eax, %ebx
	leaq	-28(%rbp), %rdi
	callq	_hx509_name_free
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uid"

L_.str.1:                               ## @.str.1
	.asciz	"lha"

	.no_dead_strip	_test_expand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_expand
_test_expand:                           ; @test_expand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x1, sp, #24
	bl	_hx509_env_add
	add	x2, sp, #20
	mov	x0, x20
	mov	x1, x21
	bl	_hx509_parse_name
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w1, [sp, #20]
	ldr	x2, [sp, #24]
	mov	x0, x20
	bl	_hx509_name_expand
	mov	x20, x0
	add	x0, sp, #24
	bl	_hx509_env_free
	cbnz	w20, LBB0_3
; %bb.2:
	ldr	w0, [sp, #20]
	add	x1, sp, #8
	bl	_hx509_name_to_string
	mov	x20, x0
	add	x0, sp, #20
	bl	_hx509_name_free
	cbz	w20, LBB0_5
LBB0_3:
	mov	w19, #1
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_strcmp
	cmp	x0, #0
	cset	w19, ne
	ldr	x0, [sp, #8]
	bl	_free
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uid"

l_.str.1:                               ; @.str.1
	.asciz	"lha"

	.no_dead_strip	_test_expand
.subsections_via_symbols
