	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_entry
_add_entry:                             ## @add_entry
	.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, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	(%rcx), %rsi
	callq	_get_entry
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	%r15d, (%rax)
	jge	LBB0_8
## %bb.2:
	movl	%r15d, (%rax)
	movq	%r14, 16(%rax)
	jmp	LBB0_8
LBB0_3:
	movl	$32, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_krb5_errx
LBB0_5:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rdx
	addq	$24, %rdx
	movl	%ebx, %esi
	callq	_krb5_copy_principal
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_context@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_7:
	movl	%r15d, (%r13)
	movq	%r14, 16(%r13)
	movq	(%r12), %rax
	movq	%rax, 8(%r13)
	movq	%r13, (%r12)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

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

	.no_dead_strip	_add_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_entry
_add_entry:                             ; @add_entry
	.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, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x1, [x3]
	bl	_get_entry
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, w20
	b.ge	LBB0_8
; %bb.2:
	str	w20, [x0]
	str	x19, [x0, #16]
	b	LBB0_8
LBB0_3:
	mov	w0, #32
	bl	_malloc
	mov	x22, x0
Lloh0:
	adrp	x24, _context@GOTPAGE
Lloh1:
	ldr	x24, [x24, _context@GOTPAGEOFF]
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x24]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_krb5_errx
LBB0_5:
	ldr	w0, [x24]
	add	x2, x22, #24
	mov	x1, x23
	bl	_krb5_copy_principal
	cbz	x0, LBB0_7
; %bb.6:
	mov	x2, x0
	ldr	w0, [x24]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_7:
	str	w20, [x22]
	str	x19, [x22, #16]
	ldr	x8, [x21]
	str	x8, [x22, #8]
	str	x22, [x21]
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

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

	.no_dead_strip	_add_entry
.subsections_via_symbols
