	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cell_and_realm
_get_cell_and_realm:                    ## @get_cell_and_realm
	.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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_AFS_SERVERTHISCELL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcspn
	movb	$0, (%r12,%rax)
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r12, %rdi
	callq	_strdup
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_AFS_SERVERMAGICKRBCONF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcspn
	movb	$0, (%r12,%rax)
	movq	%r13, %rdi
	callq	_fclose
LBB0_10:
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_13
## %bb.11:
	movq	%r12, %rbx
	incq	%rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_toupper
	movb	%al, -1(%rbx)
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, 8(%r15)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_17
## %bb.14:
	movq	(%r15), %rdi
	callq	_free
	movq	$0, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_N_
	movl	%r12d, %edi
	jmp	LBB0_15
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_N_
	movl	%eax, %r14d
	movl	(%r15), %r15d
	movl	%ebx, %edi
	callq	_strerror
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	jmp	LBB0_17
LBB0_3:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_EINVAL@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_N_
	movl	(%r15), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_N_
	movl	-52(%rbp), %edi                 ## 4-byte Reload
LBB0_15:
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
LBB0_16:
	movl	(%r14), %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r15), %rdi
	callq	_free
	movq	$0, (%r15)
	movq	%r13, %rdi
	callq	_fclose
	movq	_EINVAL@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_N_
	movl	(%rbx), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%r15), %ebx
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_AFS_SERVERTHISCELL,4,2         ## @AFS_SERVERTHISCELL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Open ThisCell %s: %s"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"No cell in ThisCell file %s"

L_.str.4:                               ## @.str.4
	.asciz	"\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"malloc: out of memory"

	.comm	_AFS_SERVERMAGICKRBCONF,4,2     ## @AFS_SERVERMAGICKRBCONF
L_.str.6:                               ## @.str.6
	.asciz	"No realm in ThisCell file %s"

	.no_dead_strip	_get_cell_and_realm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cell_and_realm
_get_cell_and_realm:                    ; @get_cell_and_realm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x24, _AFS_SERVERTHISCELL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AFS_SERVERTHISCELL@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_11
; %bb.1:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_fgets
	cbz	x0, LBB0_12
; %bb.2:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcspn
	strb	wzr, [x21, x0]
	mov	x0, x23
	bl	_fclose
	mov	x0, x21
	bl	_strdup
	str	x0, [x20]
	cbz	x0, LBB0_15
; %bb.3:
Lloh14:
	adrp	x24, _AFS_SERVERMAGICKRBCONF@GOTPAGE
Lloh15:
	ldr	x24, [x24, _AFS_SERVERMAGICKRBCONF@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_fgets
	cbz	x0, LBB0_19
; %bb.5:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcspn
	strb	wzr, [x21, x0]
	mov	x0, x23
	bl	_fclose
LBB0_6:
	ldrb	w8, [x21]
	cbz	w8, LBB0_9
; %bb.7:
	add	x22, x21, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_toupper
	sturb	w0, [x22, #-1]
	ldrb	w8, [x22], #1
	cbnz	w8, LBB0_8
LBB0_9:
	mov	x0, x21
	bl	_strdup
	str	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.10:
	mov	w20, #0
	b	LBB0_17
LBB0_11:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_N_
	mov	x21, x0
	ldr	w22, [x24]
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #-16]!
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_krb5_set_error_message
	add	sp, sp, #16
	b	LBB0_17
LBB0_12:
	mov	x0, x23
	bl	_fclose
Lloh27:
	adrp	x21, _EINVAL@GOTPAGE
Lloh28:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_13:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_N_
	mov	x2, x0
	ldr	w8, [x24]
	str	x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	add	sp, sp, #16
	b	LBB0_16
LBB0_14:
	ldr	x0, [x20]
	bl	_free
	str	xzr, [x20]
LBB0_15:
Lloh33:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
LBB0_16:
	ldr	w20, [x21]
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x20
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	x0, [x20]
	bl	_free
	str	xzr, [x20]
	mov	x0, x23
	bl	_fclose
Lloh42:
	adrp	x21, _EINVAL@GOTPAGE
Lloh43:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh44:
	adrp	x0, l_.str.6@PAGE
Lloh45:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_AFS_SERVERTHISCELL,4,2         ; @AFS_SERVERTHISCELL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Open ThisCell %s: %s"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"No cell in ThisCell file %s"

l_.str.4:                               ; @.str.4
	.asciz	"\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"malloc: out of memory"

	.comm	_AFS_SERVERMAGICKRBCONF,4,2     ; @AFS_SERVERMAGICKRBCONF
l_.str.6:                               ; @.str.6
	.asciz	"No realm in ThisCell file %s"

	.no_dead_strip	_get_cell_and_realm
.subsections_via_symbols
