	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gethostlist
_gethostlist:                           ## @gethostlist
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	%rsp, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_krb5_krbhst_init
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	-104(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_krb5_krbhst_next
	incl	%r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpl	$1, %r13d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_5
## %bb.4:
	movq	_KRB5_KDC_UNREACH@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r14
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_krb5_set_error_message
	movq	(%rbx), %rax
	jmp	LBB0_12
LBB0_5:
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_calloc
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, (%r14)
	movl	-52(%rbp), %esi
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	%r15d, %edi
	callq	_krb5_krbhst_reset
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %esi
	movl	%r15d, %edi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_krb5_krbhst_next_as_string
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_strdup
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movq	(%r14), %rsi
	movl	%r15d, %edi
	callq	_krb5_free_krbhst
	movl	-52(%rbp), %esi
LBB0_6:
	movl	%r15d, %edi
	callq	_krb5_krbhst_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_12
LBB0_11:
	movq	(%r14), %rax
	movl	%ebx, %ecx
	movq	$0, (%rax,%rcx,8)
	movl	-52(%rbp), %esi
	movl	%r15d, %edi
	callq	_krb5_krbhst_free
	xorl	%eax, %eax
LBB0_12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_KRB5_KDC_UNREACH,8,3           ## @KRB5_KDC_UNREACH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No KDC found for realm %s"

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

	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.no_dead_strip	_gethostlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gethostlist
_gethostlist:                           ; @gethostlist
	.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
	sub	sp, sp, #32
	mov	x20, x3
	mov	x23, x1
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	sub	x3, x29, #76
	bl	_krb5_krbhst_init
	cbnz	x0, LBB0_12
; %bb.1:
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x29, #-76]
	sub	x2, x29, #88
	mov	x0, x19
	bl	_krb5_krbhst_next
	add	w24, w24, #1
	cbz	x0, LBB0_2
; %bb.3:
	cmp	w24, #1
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x21, _KRB5_KDC_UNREACH@GOTPAGE
Lloh9:
	ldr	x21, [x21, _KRB5_KDC_UNREACH@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	x3, x23
	bl	_krb5_set_error_message
	ldr	x0, [x21]
	b	LBB0_12
LBB0_5:
	mov	x0, x24
	mov	w1, #8
	bl	_calloc
	str	x0, [x20]
	ldur	w1, [x29, #-76]
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_krb5_krbhst_reset
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x29, #-76]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_krb5_krbhst_next_as_string
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_strdup
	ldr	x8, [x20]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	cbnz	x0, LBB0_7
; %bb.9:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_krb5_free_krbhst
	ldur	w1, [x29, #-76]
LBB0_10:
	mov	x0, x19
	bl	_krb5_krbhst_free
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x20]
	str	xzr, [x8, w23, uxtw #3]
	ldur	w1, [x29, #-76]
	mov	x0, x19
	bl	_krb5_krbhst_free
	mov	x0, #0
LBB0_12:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #64
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_KRB5_KDC_UNREACH,8,3           ; @KRB5_KDC_UNREACH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No KDC found for realm %s"

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

	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.no_dead_strip	_gethostlist
.subsections_via_symbols
