	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function need_referral
_need_referral:                         ## @need_referral
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%edi, %r15d
	cmpl	$0, (%rdx)
	jne	LBB0_3
## %bb.1:
	movq	(%rcx), %rax
	movq	_KRB5_NT_SRV_INST@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_2
LBB0_3:
	movl	8(%rcx), %eax
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movq	16(%rcx), %rax
	jmp	LBB0_7
LBB0_5:
	jle	LBB0_2
## %bb.6:
	movq	16(%rcx), %rax
	addq	$8, %rax
LBB0_7:
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_kdc_log
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	__krb5_get_host_realm_int
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	jmp	LBB0_8
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_NT_SRV_INST,8,3           ## @KRB5_NT_SRV_INST
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Searching referral for %s"

	.no_dead_strip	_need_referral
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function need_referral
_need_referral:                         ; @need_referral
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x4
	mov	x20, x0
	ldr	w8, [x2]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x3]
Lloh0:
	adrp	x9, _KRB5_NT_SRV_INST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KRB5_NT_SRV_INST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_2:
	ldr	w8, [x3, #8]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x3, #16]
	b	LBB0_6
LBB0_4:
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [x3, #16]
	add	x8, x8, #8
LBB0_6:
	ldr	x21, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	mov	x4, x21
	bl	_kdc_log
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	__krb5_get_host_realm_int
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_NT_SRV_INST,8,3           ; @KRB5_NT_SRV_INST
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Searching referral for %s"

	.no_dead_strip	_need_referral
.subsections_via_symbols
