	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_add_master_key             ## -- Begin function hdb_add_master_key
	.p2align	4, 0x90
_hdb_add_master_key:                    ## @hdb_add_master_key
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	(%rdx), %rbx
	movq	%rbx, -40(%rbp)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movl	%eax, %edi
	callq	_max
	movq	(%rbx), %rbx
	movq	%rbx, -40(%rbp)
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.4:
	incl	%eax
	jmp	LBB0_5
LBB0_1:
	movl	$1, %eax
LBB0_5:
	leaq	-40(%rbp), %r8
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_hdb_process_master_key
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%r12), %rcx
	movq	-40(%rbp), %rdx
	movq	%rcx, (%rdx)
	movq	-40(%rbp), %rcx
	movq	%rcx, (%r12)
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_add_master_key             ; -- Begin function hdb_add_master_key
	.p2align	2
_hdb_add_master_key:                    ; @hdb_add_master_key
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x2]
	str	x22, [sp, #8]
	cbz	x22, LBB0_4
; %bb.1:
	mov	w0, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #8]
	bl	_max
	ldr	x22, [x22]
	str	x22, [sp, #8]
	cbnz	x22, LBB0_2
; %bb.3:
	add	w1, w0, #1
	b	LBB0_5
LBB0_4:
	mov	w1, #1
LBB0_5:
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	w3, #0
	bl	_hdb_process_master_key
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	str	x8, [x9]
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
