	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_s_get_principals         ## -- Begin function kadm5_s_get_principals
	.p2align	4, 0x90
_kadm5_s_get_principals:                ## @kadm5_s_get_principals
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rsi
	movl	8(%rdi), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	*(%rsi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	callq	_krb5_warn
	jmp	LBB0_7
LBB0_2:
	movq	%r12, -72(%rbp)
	movl	8(%r13), %edi
	leaq	-44(%rbp), %rsi
	callq	_krb5_get_default_realm
	leaq	-52(%rbp), %rdi
	movl	-44(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_asprintf
	movl	-44(%rbp), %edi
	callq	_free
	movq	$0, -64(%rbp)
	movl	$0, -56(%rbp)
	movl	8(%r13), %edi
	movq	(%r13), %rsi
	movq	_HDB_F_ADMIN_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_foreach@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	callq	_hdb_foreach
	movq	%rax, %r12
	movq	(%r13), %rsi
	movl	8(%r13), %edi
	callq	*8(%rsi)
	testq	%r12, %r12
	jne	LBB0_5
## %bb.3:
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_add_princ
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	leaq	-56(%rbp), %rdx
	movq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_kadm5_free_name_list
LBB0_6:
	movl	-52(%rbp), %edi
	callq	_free
	movq	%r12, %rdi
	callq	__kadm5_error_code
	movq	%rax, %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-64(%rbp), %rax
	movq	%rax, (%r15)
	movl	-56(%rbp), %eax
	decl	%eax
	movl	%eax, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opening database"

L_.str.1:                               ## @.str.1
	.asciz	"%s@%s"

	.comm	_HDB_F_ADMIN_DATA,4,2           ## @HDB_F_ADMIN_DATA
	.comm	_foreach,4,2                    ## @foreach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_s_get_principals         ; -- Begin function kadm5_s_get_principals
	.p2align	2
_kadm5_s_get_principals:                ; @kadm5_s_get_principals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x1, [x0]
	ldr	x8, [x1]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	w3, #0
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x23
	bl	_krb5_warn
	b	LBB0_6
LBB0_2:
	str	x22, [sp, #8]
	ldr	w0, [x19, #8]
	add	x1, sp, #4
	bl	_krb5_get_default_realm
	add	x23, sp, #8
	add	x0, x23, #20
	ldr	w3, [sp, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_asprintf
	ldr	w0, [sp, #4]
	bl	_free
	str	xzr, [sp, #16]
	str	wzr, [sp, #24]
	ldr	w0, [x19, #8]
	ldr	x1, [x19]
Lloh7:
	adrp	x8, _HDB_F_ADMIN_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDB_F_ADMIN_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _foreach@GOTPAGE
Lloh11:
	ldr	x8, [x8, _foreach@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_hdb_foreach
	mov	x22, x0
	ldr	x1, [x19]
	ldr	x8, [x1, #8]
	ldr	w0, [x19, #8]
	blr	x8
	cbnz	x22, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	x1, #0
	bl	_add_princ
	mov	x22, x0
	cbz	x0, LBB0_7
LBB0_4:
	add	x2, x23, #16
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_kadm5_free_name_list
LBB0_5:
	ldr	w0, [sp, #28]
	bl	_free
	mov	x0, x22
	bl	__kadm5_error_code
	mov	x23, x0
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	x8, [sp, #16]
	str	x8, [x21]
	ldr	w8, [sp, #24]
	sub	w8, w8, #1
	str	w8, [x20]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opening database"

l_.str.1:                               ; @.str.1
	.asciz	"%s@%s"

	.comm	_HDB_F_ADMIN_DATA,4,2           ; @HDB_F_ADMIN_DATA
	.comm	_foreach,4,2                    ; @foreach
.subsections_via_symbols
