	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_sockets
_init_sockets:                          ## @init_sockets
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_explicit_addresses@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movups	(%rax), %xmm0
	movaps	%xmm0, -160(%rbp)
	jmp	LBB0_4
LBB0_2:
	leaq	-160(%rbp), %rsi
	movl	%ebx, %edi
	callq	_krb5_get_all_server_addrs
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
	movq	-144(%rbp), %rsi                ## 8-byte Reload
LBB0_4:
	movq	_port_str@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, -132(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_parse_ports
	movl	-160(%rbp), %edi
	movq	_num_ports@GOTPCREL(%rip), %rbx
	imull	(%rbx), %edi
	shll	$3, %edi
	callq	_malloc
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movslq	(%rbx), %rcx
	shlq	$3, %rcx
	leaq	L_.str.1(%rip), %rdx
	movl	-132(%rbp), %edi                ## 4-byte Reload
	movl	$1, %esi
	callq	_krb5_errx
LBB0_6:
	movl	(%rbx), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.7:
	movl	-160(%rbp), %eax
	movq	_ports@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_num_ports@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movslq	%ecx, %rdx
	movq	%rbx, %rdi
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	cmpq	%rdx, %rbx
	jae	LBB0_17
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	-152(%rbp), %rdi
	addq	%r14, %rdi
	leaq	-128(%rbp), %r13
	movq	%r13, %rsi
	movl	$80, %edx
	leaq	-200(%rbp), %rcx
	callq	_krb5_print_address
	movq	_ports@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	8(%rax,%r15), %edi
	callq	_ntohs
	movq	(%rbx), %rcx
	movq	(%rcx,%r15), %rcx
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rdx, %rcx
	movq	%rcx, (%rsp)
	movl	-132(%rbp), %edi                ## 4-byte Reload
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movl	$5, %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %r8
	movl	%eax, %r9d
	callq	_kdc_log
	movq	-184(%rbp), %r15                ## 8-byte Reload
	incl	%r15d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r12
	movslq	-160(%rbp), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	movq	_ports@GOTPCREL(%rip), %rsi
	jae	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	movslq	%r15d, %r13
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%r13,8), %rdx
	movq	-152(%rbp), %rcx
	addq	%r14, %rcx
	movq	(%rsi), %rax
	movq	-168(%rbp), %r15                ## 8-byte Reload
	shlq	$4, %r15
	movl	12(%rax,%r15), %r8d
	movq	(%rax,%r15), %r9
	movl	8(%rax,%r15), %eax
	movl	%eax, (%rsp)
	movl	-132(%rbp), %edi                ## 4-byte Reload
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	_init_socket
	movq	(%rbx,%r13,8), %rax
	movq	_rk_INVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-184(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_17:
	leaq	-160(%rbp), %rsi
	movl	-132(%rbp), %edi                ## 4-byte Reload
	callq	_krb5_free_addresses
	movslq	%r15d, %r14
	shlq	$3, %r14
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	callq	_realloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rdx
	movl	-132(%rbp), %edi                ## 4-byte Reload
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_krb5_errx
LBB0_20:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_reinit_descrs
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r15d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_explicit_addresses,16,3        ## @explicit_addresses
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"krb5_get_all_server_addrs"

	.comm	_port_str,4,2                   ## @port_str
	.comm	_num_ports,4,2                  ## @num_ports
L_.str.1:                               ## @.str.1
	.asciz	"malloc(%lu) failed"

	.comm	_ports,8,3                      ## @ports
	.comm	_rk_INVALID_SOCKET,8,3          ## @rk_INVALID_SOCKET
L_.str.2:                               ## @.str.2
	.asciz	"listening on %s port %u/%s"

	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
L_.str.3:                               ## @.str.3
	.asciz	"tcp"

L_.str.4:                               ## @.str.4
	.asciz	"udp"

L_.str.5:                               ## @.str.5
	.asciz	"realloc(%lu) failed"

	.no_dead_strip	_init_sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_sockets
_init_sockets:                          ; @init_sockets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp]                        ; 8-byte Folded Spill
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _explicit_addresses@GOTPAGE
Lloh4:
	ldr	x8, [x8, _explicit_addresses@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	b	LBB0_4
LBB0_2:
	add	x1, sp, #16
	mov	x0, x20
	bl	_krb5_get_all_server_addrs
	cbz	x0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_krb5_err
LBB0_4:
Lloh7:
	adrp	x8, _port_str@GOTPAGE
Lloh8:
	ldr	x8, [x8, _port_str@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_parse_ports
	ldr	w8, [sp, #16]
Lloh10:
	adrp	x19, _num_ports@GOTPAGE
Lloh11:
	ldr	x19, [x19, _num_ports@GOTPAGEOFF]
	ldr	w9, [x19]
	mul	w8, w8, w9
	lsl	w0, w8, #3
	bl	_malloc
	mov	x23, x0
	cbz	x0, LBB0_14
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_15
LBB0_6:
	mov	w22, #0
	mov	x27, #0
	ldr	w9, [sp, #16]
Lloh12:
	adrp	x28, _ports@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ports@GOTPAGEOFF]
Lloh14:
	adrp	x19, _rk_INVALID_SOCKET@GOTPAGE
Lloh15:
	ldr	x19, [x19, _rk_INVALID_SOCKET@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh16:
	adrp	x8, _num_ports@GOTPAGE
Lloh17:
	ldr	x8, [x8, _num_ports@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.hs	LBB0_16
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cbz	w9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x26, #0
	mov	x24, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x24, x24, #1
	ldrsw	x9, [sp, #16]
	add	x26, x26, #4
	cmp	x24, x9
	b.hs	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x25, x23, w22, sxtw #3
	ldr	x8, [sp, #24]
	add	x3, x8, x26
	ldr	x8, [x28]
	add	x8, x8, x27, lsl #4
	ldr	x5, [x8]
	ldp	w6, w4, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	bl	_init_socket
	ldr	x8, [x25]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [sp, #24]
	add	x0, x8, x26
	add	x1, sp, #40
	add	x3, sp, #8
	mov	w2, #80
	bl	_krb5_print_address
	ldr	x8, [x28]
	lsl	x25, x27, #4
	add	x8, x8, x25
	ldr	w0, [x8, #8]
	bl	_ntohs
	mov	x5, x0
	ldr	x8, [x28]
	ldr	x8, [x8, x25]
Lloh19:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh22:
	adrp	x8, l_.str.4@PAGE
Lloh23:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh24:
	adrp	x9, l_.str.3@PAGE
Lloh25:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x6, x9, x8, eq
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x21
	mov	w2, #5
Lloh26:
	adrp	x3, l_.str.2@PAGE
Lloh27:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_kdc_log
	add	w22, w22, #1
	b	LBB0_11
LBB0_14:
	ldrsw	x8, [x19]
	lsl	x3, x8, #3
Lloh28:
	adrp	x2, l_.str.1@PAGE
Lloh29:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_krb5_errx
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
LBB0_15:
	mov	w22, #0
LBB0_16:
	add	x1, sp, #16
	mov	x0, x20
	bl	_krb5_free_addresses
	sbfiz	x24, x22, #3, #32
	mov	x0, x23
	mov	x1, x24
	bl	_realloc
	mov	x21, x0
	cbnz	x0, LBB0_19
; %bb.17:
	cbz	w22, LBB0_19
; %bb.18:
Lloh30:
	adrp	x2, l_.str.5@PAGE
Lloh31:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	mov	x3, x24
	bl	_krb5_errx
LBB0_19:
	mov	x0, x21
	mov	x1, x22
	bl	_reinit_descrs
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x21, [x8]
	ldur	x8, [x29, #-88]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x22
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_explicit_addresses,16,3        ; @explicit_addresses
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_get_all_server_addrs"

	.comm	_port_str,4,2                   ; @port_str
	.comm	_num_ports,4,2                  ; @num_ports
l_.str.1:                               ; @.str.1
	.asciz	"malloc(%lu) failed"

	.comm	_ports,8,3                      ; @ports
	.comm	_rk_INVALID_SOCKET,8,3          ; @rk_INVALID_SOCKET
l_.str.2:                               ; @.str.2
	.asciz	"listening on %s port %u/%s"

	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
l_.str.3:                               ; @.str.3
	.asciz	"tcp"

l_.str.4:                               ; @.str.4
	.asciz	"udp"

l_.str.5:                               ; @.str.5
	.asciz	"realloc(%lu) failed"

	.no_dead_strip	_init_sockets
.subsections_via_symbols
