	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_extension
_add_extension:                         ## @add_extension
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r14
	movl	%edi, %r12d
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_5:
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	callq	_der_copy_oid
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_der_copy_octet_string
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movl	(%r14), %edi
	leaq	-56(%rbp), %rsi
	callq	_add_Extensions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	leaq	L_.str(%rip), %rcx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_hx509_set_error_string
LBB0_9:
	leaq	-56(%rbp), %rdi
	callq	_free_Extension
	movl	%ebx, %eax
	addq	$24, %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	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_add_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_extension
_add_extension:                         ; @add_extension
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x24, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	cbz	w23, LBB0_3
; %bb.1:
	mov	w0, #4
	bl	_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_3:
	orr	x1, x24, #0x4
	mov	x0, x22
	bl	_der_copy_oid
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x1, sp
	mov	x0, x21
	bl	_der_copy_octet_string
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x20]
	mov	x1, sp
	bl	_add_Extensions
	mov	x22, x0
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_7:
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_hx509_set_error_string
LBB0_8:
	mov	x0, sp
	bl	_free_Extension
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_add_extension
.subsections_via_symbols
