	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_server_sockets
_open_server_sockets:                   ## @open_server_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	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_udp_sfd@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jns	LBB0_6
## %bb.1:
	movq	_port@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_backlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SM_UDP@GOTPCREL(%rip), %rax
	movq	_enable_ipv6@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	_settings_addr@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_server_socket
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	-288(%rbp), %rsi
	callq	_conv_addr
	movl	(%r14), %edx
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
LBB0_6:
	movq	_tcp_sfd@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jns	LBB0_9
## %bb.7:
	movq	_port@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_backlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_enable_ipv6@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_settings_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_server_socket
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
LBB0_2:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_udp_sfd,8,3                    ## @udp_sfd
	.comm	_port,4,2                       ## @port
	.comm	_settings_addr,4,2              ## @settings_addr
	.comm	_backlog,4,2                    ## @backlog
	.comm	_SM_UDP,8,3                     ## @SM_UDP
	.comm	_enable_ipv6,8,3                ## @enable_ipv6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open UDP server socket at port %d: %m\n"

	.comm	_verbosity,8,3                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"created listening udp socket at %s:%d, fd=%d\n"

	.comm	_tcp_sfd,8,3                    ## @tcp_sfd
L_.str.2:                               ## @.str.2
	.asciz	"cannot open TCP server socket at port %d: %m\n"

	.no_dead_strip	_open_server_sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_server_sockets
_open_server_sockets:                   ; @open_server_sockets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x19, _udp_sfd@GOTPAGE
Lloh4:
	ldr	x19, [x19, _udp_sfd@GOTPAGEOFF]
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_4
; %bb.1:
Lloh5:
	adrp	x20, _port@GOTPAGE
Lloh6:
	ldr	x20, [x20, _port@GOTPAGEOFF]
Lloh7:
	adrp	x8, _backlog@GOTPAGE
Lloh8:
	ldr	x8, [x8, _backlog@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _SM_UDP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SM_UDP@GOTPAGEOFF]
Lloh12:
	adrp	x9, _enable_ipv6@GOTPAGE
Lloh13:
	ldr	x9, [x9, _enable_ipv6@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	ldr	x9, [x9]
	add	x3, x9, x8
Lloh16:
	adrp	x21, _settings_addr@GOTPAGE
Lloh17:
	ldr	x21, [x21, _settings_addr@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_server_socket
	str	x0, [x19]
	tbnz	x0, #63, LBB0_9
; %bb.2:
Lloh18:
	adrp	x8, _verbosity@GOTPAGE
Lloh19:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_conv_addr
	mov	x1, x0
	ldr	w2, [x20]
	ldr	x3, [x19]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_4:
Lloh23:
	adrp	x19, _tcp_sfd@GOTPAGE
Lloh24:
	ldr	x19, [x19, _tcp_sfd@GOTPAGEOFF]
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_6
; %bb.5:
Lloh25:
	adrp	x20, _port@GOTPAGE
Lloh26:
	ldr	x20, [x20, _port@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh27:
	adrp	x8, _backlog@GOTPAGE
Lloh28:
	ldr	x8, [x8, _backlog@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _enable_ipv6@GOTPAGE
Lloh31:
	ldr	x8, [x8, _enable_ipv6@GOTPAGEOFF]
Lloh32:
	ldr	x3, [x8]
Lloh33:
	adrp	x8, _settings_addr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _settings_addr@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_server_socket
	str	x0, [x19]
	tbnz	x0, #63, LBB0_10
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_8:
	bl	___stack_chk_fail
LBB0_9:
	ldr	w1, [x20]
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	w1, [x20]
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_udp_sfd,8,3                    ; @udp_sfd
	.comm	_port,4,2                       ; @port
	.comm	_settings_addr,4,2              ; @settings_addr
	.comm	_backlog,4,2                    ; @backlog
	.comm	_SM_UDP,8,3                     ; @SM_UDP
	.comm	_enable_ipv6,8,3                ; @enable_ipv6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open UDP server socket at port %d: %m\n"

	.comm	_verbosity,8,3                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"created listening udp socket at %s:%d, fd=%d\n"

	.comm	_tcp_sfd,8,3                    ; @tcp_sfd
l_.str.2:                               ; @.str.2
	.asciz	"cannot open TCP server socket at port %d: %m\n"

	.no_dead_strip	_open_server_sockets
.subsections_via_symbols
