	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_db
_add_db:                                ## @add_db
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	8(%rsi), %rdi
	movl	(%rsi), %eax
	leal	4(,%rax,4), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 8(%rbx)
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rsi
	movl	%r15d, %edi
	movq	%r12, %rdx
	callq	_hdb_create
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movslq	(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rcx
	movl	(%rcx,%rax,4), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_hdb_set_master_keyfile
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	callq	_krb5_set_error_message
	movq	(%rbx), %rax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

	.no_dead_strip	_add_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_db
_add_db:                                ; @add_db
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x1, #8]
	ldr	w8, [x1]
	lsl	w8, w8, #2
	add	w1, w8, #4
	bl	_realloc
	cbz	x0, LBB0_5
; %bb.1:
	str	x0, [x21, #8]
	ldrsw	x8, [x21]
	add	x1, x0, x8, lsl #2
	mov	x0, x19
	mov	x2, x22
	bl	_hdb_create
	cbnz	x0, LBB0_6
; %bb.2:
	ldrsw	x8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	x9, [x21, #8]
	ldr	w1, [x9, x8, lsl #2]
	mov	x0, x19
	mov	x2, x20
	bl	_hdb_set_master_keyfile
	cbnz	x0, LBB0_6
LBB0_4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_krb5_set_error_message
	ldr	x0, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

	.no_dead_strip	_add_db
.subsections_via_symbols
