	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_ca_tbs_add_eku           ## -- Begin function hx509_ca_tbs_add_eku
	.p2align	4, 0x90
_hx509_ca_tbs_add_eku:                  ## @hx509_ca_tbs_add_eku
	.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	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %ebx
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movl	(%r13), %eax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jb	LBB0_4
## %bb.5:
	leal	4(,%rax,4), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_1:
	movl	$4, %esi
LBB0_6:
	movq	8(%r13), %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, 8(%r13)
	movl	(%r13), %ecx
	leaq	(%rax,%rcx,4), %rsi
	movq	%r15, %rdi
	callq	_der_copy_oid
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_hx509_set_error_string
	jmp	LBB0_11
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%r14), %r12d
	jmp	LBB0_11
LBB0_10:
	incl	(%r13)
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_ca_tbs_add_eku           ; -- Begin function hx509_ca_tbs_add_eku
	.p2align	2
_hx509_ca_tbs_add_eku:                  ; @hx509_ca_tbs_add_eku
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x22
	mov	x0, x21
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldr	w8, [x20]
	add	x22, x22, #4
	cmp	x23, x8
	b.lo	LBB0_2
; %bb.4:
	lsl	w8, w8, #2
	add	w1, w8, #4
	b	LBB0_6
LBB0_5:
	mov	w1, #4
LBB0_6:
	ldr	x0, [x20, #8]
	bl	_realloc
	cbz	x0, LBB0_10
; %bb.7:
	str	x0, [x20, #8]
	ldr	w8, [x20]
	add	x1, x0, x8, lsl #2
	mov	x0, x21
	bl	_der_copy_oid
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.8:
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_hx509_set_error_string
	b	LBB0_12
LBB0_9:
	mov	w21, #0
	b	LBB0_12
LBB0_10:
Lloh2:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w21, [x20]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_12:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

.subsections_via_symbols
