	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_generate_key_set_password  ## -- Begin function hdb_generate_key_set_password
	.p2align	4, 0x90
_hdb_generate_key_set_password:         ## @hdb_generate_key_set_password
	.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, %r13
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%edi, %r14d
	movq	%rcx, %rdx
	movq	%r8, %rcx
	xorl	%r8d, %r8d
	callq	_hdb_generate_key_set
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	movq	(%rbx), %rax
	leaq	(%rax,%r12), %r9
	movq	8(%rax,%r12), %rcx
	movl	8(%rcx), %r8d
	movl	(%rax,%r12), %esi
	movq	(%rcx), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_krb5_string_to_key_salt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	addq	$16, %r12
	movq	%r15, %r13
	cmpq	(%r15), %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_4
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_1
LBB0_8:
	movq	%rax, %r13
	movq	(%r15), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_hdb_free_keys
	movq	%r13, %rax
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_generate_key_set_password  ; -- Begin function hdb_generate_key_set_password
	.p2align	2
_hdb_generate_key_set_password:         ; @hdb_generate_key_set_password
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x0
	mov	x2, x3
	mov	x3, x4
	mov	w4, #0
	bl	_hdb_generate_key_set
	mov	x24, x0
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x25, #0
	mov	x26, #0
                                        ; implicit-def: $x23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x5, x8, x25
	ldr	x8, [x5, #8]
	ldr	w9, [x8, #8]
	ldr	w1, [x5]
	ldr	x3, [x8]
	and	x8, x23, #0xffffffff00000000
	orr	x23, x8, x9
	mov	x0, x21
	mov	x2, x22
	mov	x4, x23
	bl	_krb5_string_to_key_salt
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldr	x8, [x20]
	add	x25, x25, #16
	cmp	x26, x8
	b.lo	LBB0_3
LBB0_5:
	mov	x24, #0
	b	LBB0_7
LBB0_6:
	mov	x24, x0
	ldr	x1, [x20]
	ldr	x2, [x19]
	mov	x0, x21
	bl	_hdb_free_keys
LBB0_7:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
