	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ## -- Begin function check
	.p2align	4, 0x90
_check:                                 ## @check
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movq	(%rdx), %rdi
	callq	_strdup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_krb5_warnx
	jmp	LBB0_29
LBB0_4:
	movq	_context@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_krb5_get_default_realm
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	jmp	LBB0_28
LBB0_6:
	movq	-48(%rbp), %rax
LBB0_7:
	movq	_KRB5_TGS_NAME@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rax, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.8:
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_get_check_entry
	movq	-40(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
LBB0_10:
	movq	%rsi, %rdi
	callq	_free
	movq	_kadm_handle@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	callq	_kadm5_free_principal_ent
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	leaq	-40(%rbp), %rdi
	xorl	%eax, %eax
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.11:
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_get_check_entry
	movq	-40(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	movq	-40(%rbp), %rdi
LBB0_15:
	callq	_free
	jmp	LBB0_29
LBB0_16:
	movq	%rsi, %rdi
	callq	_free
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	callq	_kadm5_free_principal_ent
	movq	-48(%rbp), %rdx
	leaq	L_.str.7(%rip), %rsi
	leaq	-40(%rbp), %rdi
	xorl	%eax, %eax
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.17:
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_get_check_entry
	movq	-40(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_13
LBB0_19:
	movq	%rsi, %rdi
	callq	_free
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	callq	_kadm5_free_principal_ent
	movq	-48(%rbp), %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_31
## %bb.20:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlwr
	movq	-48(%rbp), %rcx
	leaq	L_.str.9(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_32
## %bb.21:
	movq	%r14, %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_get_check_entry
	movq	%rax, %r14
	movq	-40(%rbp), %rdi
	callq	_free
	testq	%r14, %r14
	jne	LBB0_23
## %bb.22:
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	callq	_kadm5_free_principal_ent
LBB0_23:
	movq	-48(%rbp), %rdx
	leaq	L_.str.10(%rip), %rsi
	leaq	-40(%rbp), %rdi
	xorl	%eax, %eax
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.24:
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_get_check_entry
	movq	%rax, %r15
	movq	-40(%rbp), %rdi
	callq	_free
	testq	%r15, %r15
	jne	LBB0_26
## %bb.25:
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	callq	_kadm5_free_principal_ent
	testq	%r14, %r14
	je	LBB0_33
LBB0_26:
	movq	_do_check_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.12(%rip), %rdi
	leaq	L_.str.13(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_foreach_principal
	jmp	LBB0_30
LBB0_27:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdx
LBB0_28:
	callq	_krb5_warn
LBB0_29:
	movl	$1, %ebx
LBB0_30:
	movq	-48(%rbp), %rdi
	callq	_free
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_28
LBB0_32:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_krb5_warn
	movq	%r14, %rdi
	jmp	LBB0_15
LBB0_33:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"krb5_get_default_realm"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s/%s@%s"

	.comm	_KRB5_TGS_NAME,4,2              ## @KRB5_TGS_NAME
	.comm	_errno,8,3                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"asprintf"

L_.str.4:                               ## @.str.4
	.asciz	"%s doesn't exist, are you sure %s is a realm in your database"

	.comm	_kadm_handle,4,2                ## @kadm_handle
L_.str.5:                               ## @.str.5
	.asciz	"kadmin/admin@%s"

L_.str.6:                               ## @.str.6
	.asciz	"%s doesn't exist, there is no way to do remote administration"

L_.str.7:                               ## @.str.7
	.asciz	"kadmin/changepw@%s"

L_.str.8:                               ## @.str.8
	.asciz	"%s doesn't exist, there is no way to do change password"

L_.str.9:                               ## @.str.9
	.asciz	"afs/%s@%s"

L_.str.10:                              ## @.str.10
	.asciz	"afs@%s"

L_.str.11:                              ## @.str.11
	.asciz	"afs@REALM and afs/cellname@REALM both exists"

L_.str.12:                              ## @.str.12
	.asciz	"*"

	.comm	_do_check_entry,4,2             ## @do_check_entry
L_.str.13:                              ## @.str.13
	.asciz	"check"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ; -- Begin function check
	.p2align	2
_check:                                 ; @check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	str	xzr, [sp, #32]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	x0, [x2]
	bl	_strdup
	str	x0, [sp, #32]
	cbnz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _context@GOTPAGE
Lloh1:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	bl	_krb5_warnx
	b	LBB0_28
LBB0_4:
Lloh5:
	adrp	x19, _context@GOTPAGE
Lloh6:
	ldr	x19, [x19, _context@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #32
	bl	_krb5_get_default_realm
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	ldr	w0, [x19]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_27
LBB0_6:
	ldr	x0, [sp, #32]
LBB0_7:
Lloh9:
	adrp	x8, _KRB5_TGS_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KRB5_TGS_NAME@GOTPAGEOFF]
Lloh11:
	ldrsw	x2, [x8]
	stp	x0, x0, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.8:
	ldr	x0, [sp, #24]
	sub	x1, x29, #36
	bl	_get_check_entry
	ldr	x1, [sp, #24]
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_10:
	bl	_printf
	ldr	x0, [sp, #24]
LBB0_11:
	bl	_free
	b	LBB0_28
LBB0_12:
	mov	x0, x1
	bl	_free
Lloh16:
	adrp	x21, _kadm_handle@GOTPAGE
Lloh17:
	ldr	x21, [x21, _kadm_handle@GOTPAGEOFF]
	ldr	w0, [x21]
	sub	x1, x29, #36
	bl	_kadm5_free_principal_ent
	ldr	x2, [sp, #32]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #24
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.13:
	ldr	x0, [sp, #24]
	sub	x1, x29, #36
	bl	_get_check_entry
	ldr	x1, [sp, #24]
	cbz	x0, LBB0_15
; %bb.14:
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_15:
	mov	x0, x1
	bl	_free
	ldr	w0, [x21]
	sub	x1, x29, #36
	bl	_kadm5_free_principal_ent
	ldr	x2, [sp, #32]
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x0, sp, #24
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.16:
	ldr	x0, [sp, #24]
	sub	x1, x29, #36
	bl	_get_check_entry
	ldr	x1, [sp, #24]
	cbz	x0, LBB0_18
; %bb.17:
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_10
LBB0_18:
	mov	x0, x1
	bl	_free
	ldr	w0, [x21]
	sub	x1, x29, #36
	bl	_kadm5_free_principal_ent
	ldr	x0, [sp, #32]
	bl	_strdup
	cbz	x0, LBB0_30
; %bb.19:
	mov	x19, x0
	bl	_strlwr
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #24
	mov	x2, x19
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_31
; %bb.20:
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #24]
	sub	x1, x29, #36
	bl	_get_check_entry
	mov	x19, x0
	ldr	x0, [sp, #24]
	bl	_free
	cbnz	x19, LBB0_22
; %bb.21:
	ldr	w0, [x21]
	sub	x1, x29, #36
	bl	_kadm5_free_principal_ent
LBB0_22:
	ldr	x2, [sp, #32]
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #24
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.23:
	ldr	x0, [sp, #24]
	sub	x1, x29, #36
	bl	_get_check_entry
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_free
	cbnz	x20, LBB0_25
; %bb.24:
	ldr	w0, [x21]
	sub	x1, x29, #36
	bl	_kadm5_free_principal_ent
	cbz	x19, LBB0_32
LBB0_25:
Lloh30:
	adrp	x8, _do_check_entry@GOTPAGE
Lloh31:
	ldr	x8, [x8, _do_check_entry@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x0, l_.str.12@PAGE
Lloh34:
	add	x0, x0, l_.str.12@PAGEOFF
Lloh35:
	adrp	x2, l_.str.13@PAGE
Lloh36:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x3, #0
	bl	_foreach_principal
	mov	w19, #0
	b	LBB0_29
LBB0_26:
Lloh37:
	adrp	x8, _context@GOTPAGE
Lloh38:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	x1, [x8]
Lloh43:
	adrp	x2, l_.str.3@PAGE
Lloh44:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_27:
	bl	_krb5_warn
LBB0_28:
	mov	w19, #1
LBB0_29:
	ldr	x0, [sp, #32]
	bl	_free
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_30:
Lloh45:
	adrp	x8, _context@GOTPAGE
Lloh46:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x8, _errno@GOTPAGE
Lloh49:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh50:
	ldr	x1, [x8]
Lloh51:
	adrp	x2, l_.str.1@PAGE
Lloh52:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_27
LBB0_31:
Lloh53:
	adrp	x8, _context@GOTPAGE
Lloh54:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x8, _errno@GOTPAGE
Lloh57:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh58:
	ldr	x1, [x8]
Lloh59:
	adrp	x2, l_.str.3@PAGE
Lloh60:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_krb5_warn
	mov	x0, x19
	b	LBB0_11
LBB0_32:
Lloh61:
	adrp	x8, _context@GOTPAGE
Lloh62:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
Lloh64:
	adrp	x1, l_.str.11@PAGE
Lloh65:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_get_default_realm"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s/%s@%s"

	.comm	_KRB5_TGS_NAME,4,2              ; @KRB5_TGS_NAME
	.comm	_errno,8,3                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"asprintf"

l_.str.4:                               ; @.str.4
	.asciz	"%s doesn't exist, are you sure %s is a realm in your database"

	.comm	_kadm_handle,4,2                ; @kadm_handle
l_.str.5:                               ; @.str.5
	.asciz	"kadmin/admin@%s"

l_.str.6:                               ; @.str.6
	.asciz	"%s doesn't exist, there is no way to do remote administration"

l_.str.7:                               ; @.str.7
	.asciz	"kadmin/changepw@%s"

l_.str.8:                               ; @.str.8
	.asciz	"%s doesn't exist, there is no way to do change password"

l_.str.9:                               ; @.str.9
	.asciz	"afs/%s@%s"

l_.str.10:                              ; @.str.10
	.asciz	"afs@%s"

l_.str.11:                              ; @.str.11
	.asciz	"afs@REALM and afs/cellname@REALM both exists"

l_.str.12:                              ; @.str.12
	.asciz	"*"

	.comm	_do_check_entry,4,2             ; @do_check_entry
l_.str.13:                              ; @.str.13
	.asciz	"check"

.subsections_via_symbols
