	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_name_constraints
_add_name_constraints:                  ## @add_name_constraints
	.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	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %rax
	movl	%edi, %r15d
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	_find_extension_name_constraints
	movl	%eax, %ebx
	movq	_HX509_EXTENSION_NOT_FOUND@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	(%rax), %ebx
	je	LBB0_11
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_hx509_set_error_string
	movl	%ebx, %r12d
	jmp	LBB0_11
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	_HX509_VERIFY_CONSTRAINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rcx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_hx509_set_error_string
LBB0_10:
	leaq	-44(%rbp), %rdi
	callq	_free_NameConstraints
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rdi
	movl	(%r14), %eax
	leal	4(,%rax,4), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, 8(%r14)
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rsi
	leaq	-44(%rbp), %rdi
	callq	_copy_NameConstraints
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_hx509_clear_error_string
	jmp	LBB0_10
LBB0_6:
	movl	%r15d, %edi
	callq	_hx509_clear_error_string
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_9:
	incl	(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_EXTENSION_NOT_FOUND,4,2  ## @HX509_EXTENSION_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed getting NameConstraints"

	.comm	_HX509_VERIFY_CONSTRAINTS,4,2   ## @HX509_VERIFY_CONSTRAINTS
L_.str.1:                               ## @.str.1
	.asciz	"Not a CA and have NameConstraints"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_name_constraints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_name_constraints
_add_name_constraints:                  ; @add_name_constraints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x8, x1
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x8
	bl	_find_extension_name_constraints
Lloh0:
	adrp	x8, _HX509_EXTENSION_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_EXTENSION_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_hx509_set_error_string
	b	LBB0_7
LBB0_4:
	cbz	w22, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _HX509_VERIFY_CONSTRAINTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HX509_VERIFY_CONSTRAINTS@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_hx509_set_error_string
LBB0_6:
	add	x0, sp, #12
	bl	_free_NameConstraints
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	x0, [x21, #8]
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w1, w8, #4
	bl	_realloc
	cbz	x0, LBB0_11
; %bb.9:
	str	x0, [x21, #8]
	ldrsw	x8, [x21]
	add	x1, x0, x8, lsl #2
	add	x0, sp, #12
	bl	_copy_NameConstraints
	mov	x19, x0
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_hx509_clear_error_string
	b	LBB0_6
LBB0_11:
	mov	x0, x20
	bl	_hx509_clear_error_string
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	b	LBB0_6
LBB0_12:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_EXTENSION_NOT_FOUND,4,2  ; @HX509_EXTENSION_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed getting NameConstraints"

	.comm	_HX509_VERIFY_CONSTRAINTS,4,2   ; @HX509_VERIFY_CONSTRAINTS
l_.str.1:                               ; @.str.1
	.asciz	"Not a CA and have NameConstraints"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_name_constraints
.subsections_via_symbols
