	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_socket
_init_socket:                           ## @init_socket
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -316(%rbp)
	movq	%rdx, %rdi
	callq	_init_descr
	leaq	-312(%rbp), %rdx
	leaq	-316(%rbp), %rcx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	16(%rbp), %r8d
	callq	_krb5_addr2sockaddr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_krb5_warn
	movq	8(%r15), %rdi
	callq	_rk_closesocket
	movq	_rk_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_11
LBB0_2:
	movq	%r15, -328(%rbp)                ## 8-byte Spill
	movq	%rbx, -336(%rbp)                ## 8-byte Spill
	movl	%r12d, -308(%rbp)               ## 4-byte Spill
	cmpl	%r13d, -312(%rbp)
	jne	LBB0_11
## %bb.3:
	movl	%r13d, %ebx
	movl	%r13d, %edi
	movl	%r14d, %r13d
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_socket
	movq	-328(%rbp), %r14                ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_rk_IS_BAD_SOCKET
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	-308(%rbp), %edi                ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_krb5_warn
	jmp	LBB0_5
LBB0_6:
	movl	%r13d, (%r14)
	movl	16(%rbp), %r15d
	movl	%r15d, 4(%r14)
	movq	8(%r14), %rdi
	movl	-316(%rbp), %edx
	leaq	-312(%rbp), %rsi
	callq	_bind
	movl	%eax, %edi
	callq	_rk_IS_SOCKET_ERROR
	testq	%rax, %rax
	movl	-308(%rbp), %ebx                ## 4-byte Reload
	je	LBB0_8
## %bb.7:
	leaq	-304(%rbp), %r13
	leaq	-344(%rbp), %rcx
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_krb5_print_address
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_ntohs
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%r13, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_krb5_warn
	movq	8(%r14), %rdi
	callq	_rk_closesocket
LBB0_5:
	movq	_rk_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	_SOMAXCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_listen
	movl	%eax, %edi
	callq	_rk_IS_SOCKET_ERROR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	-304(%rbp), %r15
	leaq	-344(%rbp), %rcx
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_krb5_print_address
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	16(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.3(%rip), %rdx
	movl	-308(%rbp), %edi                ## 4-byte Reload
	movl	%r12d, %esi
	movq	%r15, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_krb5_warn
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_rk_closesocket
	movq	_rk_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"krb5_addr2sockaddr"

	.comm	_rk_INVALID_SOCKET,8,3          ## @rk_INVALID_SOCKET
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"socket(%d, %d, 0)"

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

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOMAXCONN,4,2                  ## @SOMAXCONN
L_.str.3:                               ## @.str.3
	.asciz	"listen %s/%d"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.no_dead_strip	_init_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_socket
_init_socket:                           ; @init_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	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, #-72]
	mov	w8, #4
	str	w8, [sp, #28]
	mov	x0, x2
	bl	_init_descr
	add	x2, sp, #32
	add	x3, sp, #28
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	bl	_krb5_addr2sockaddr
	cbz	x0, LBB0_6
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_2:
	bl	_krb5_warn
	ldr	x0, [x19, #8]
	bl	_rk_closesocket
LBB0_3:
Lloh5:
	adrp	x8, _rk_INVALID_SOCKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rk_INVALID_SOCKET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_4:
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.5:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_6:
	ldr	w8, [sp, #32]
	cmp	w8, w24
	b.ne	LBB0_4
; %bb.7:
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	bl	_socket
	str	x0, [x19, #8]
	bl	_rk_IS_BAD_SOCKET
	cbz	x0, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	stp	x24, x23, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_krb5_warn
	b	LBB0_3
LBB0_9:
	stp	w23, w21, [x19]
	ldr	x0, [x19, #8]
	ldr	w2, [sp, #28]
	add	x1, sp, #32
	bl	_bind
	bl	_rk_IS_SOCKET_ERROR
	cbz	x0, LBB0_12
; %bb.10:
	add	x23, sp, #40
	add	x1, sp, #40
	add	x3, sp, #16
	mov	x0, x22
	mov	w2, #256
	bl	_krb5_print_address
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	b	LBB0_2
LBB0_12:
Lloh21:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.13:
	ldr	x0, [x19, #8]
Lloh24:
	adrp	x8, _SOMAXCONN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SOMAXCONN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_listen
	bl	_rk_IS_SOCKET_ERROR
	cbz	x0, LBB0_4
; %bb.14:
	add	x23, sp, #40
	add	x1, sp, #40
	add	x3, sp, #16
	mov	x0, x22
	mov	w2, #256
	bl	_krb5_print_address
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_addr2sockaddr"

	.comm	_rk_INVALID_SOCKET,8,3          ; @rk_INVALID_SOCKET
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"socket(%d, %d, 0)"

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

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOMAXCONN,4,2                  ; @SOMAXCONN
l_.str.3:                               ; @.str.3
	.asciz	"listen %s/%d"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.no_dead_strip	_init_socket
.subsections_via_symbols
