	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_sock
_make_sock:                             ## @make_sock
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	$0, -56(%rbp)
	movl	%edi, (%rcx)
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	$0, (%r9)
	leaq	-56(%rbp), %rcx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	movl	64(%rbp), %r12d
	movl	56(%rbp), %r10d
	movl	40(%rbp), %r8d
	movq	32(%rbp), %r14
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_8
## %bb.4:
	movq	%r10, %r13
	callq	_verbose_print_addr
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	movq	24(%rax), %rdx
	movl	16(%rax), %ecx
	leaq	-44(%rbp), %rax
	leaq	-60(%rbp), %r9
	movl	%ebx, %r8d
	pushq	%r12
	pushq	%r13
	movl	40(%rbp), %ebx
	pushq	%rbx
	pushq	%r14
	pushq	$1
	pushq	24(%rbp)
	pushq	16(%rbp)
	pushq	%rax
	callq	_create_udp_sock
	addq	$64, %rsp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.5:
	cmpl	$0, -60(%rbp)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_err
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_2:
	testq	%r14, %r14
	leaq	L_.str.1(%rip), %rbx
	cmovneq	%r14, %rbx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.2(%rip), %r8
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_err
	movl	$-1, %ebx
	jmp	LBB0_13
LBB0_8:
	movl	48(%rbp), %r9d
	leaq	-44(%rbp), %rdx
	movl	%ebx, %esi
	movq	%r14, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%r12
	pushq	%r10
	callq	_create_tcp_accept_sock
	addq	$16, %rsp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_9
	jmp	LBB0_12
LBB0_7:
	cmpl	$-1, %ebx
	jne	LBB0_12
LBB0_9:
	cmpl	$0, -44(%rbp)
	je	LBB0_12
## %bb.10:
	movq	8(%r15), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_12:
	movq	-56(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node %s:%s getaddrinfo: %s %s"

L_.str.1:                               ## @.str.1
	.asciz	"default"

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

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.3:                               ## @.str.3
	.asciz	"bind: address already in use"

	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.comm	_EAI_SYSTEM,4,2                 ## @EAI_SYSTEM
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_make_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_sock
_make_sock:                             ; @make_sock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x7
	mov	x22, x6
	mov	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x24, x2
	mov	x25, x1
	mov	x28, x0
	str	xzr, [sp, #40]
	str	w0, [x3]
	str	wzr, [x5]
	add	x3, sp, #40
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_getaddrinfo
	mov	x8, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_6
; %bb.2:
	ldp	w25, w24, [x29, #32]
	ldr	w26, [x29, #24]
	ldr	x27, [x29, #16]
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w28
	b.ne	LBB0_7
; %bb.3:
	bl	_verbose_print_addr
	ldr	x8, [sp, #40]
	ldr	x0, [x8, #8]
	ldr	w1, [x8]
	ldr	x2, [x8, #24]
	ldr	w3, [x8, #16]
	stp	w25, w24, [sp, #20]
	str	w26, [sp, #16]
	str	x27, [sp, #8]
	mov	w8, #1
	add	x5, sp, #36
	add	x6, sp, #32
	stp	w23, w8, [sp]
	mov	x4, x21
	mov	x7, x22
	bl	_create_udp_sock
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_8
; %bb.5:
Lloh3:
	adrp	x0, l_.str.3@PAGE
Lloh4:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_err
	b	LBB0_12
LBB0_6:
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x25, #0
	csel	x19, x9, x25, eq
	mov	x0, x8
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
	stp	x0, x8, [sp, #16]
	stp	x19, x24, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	w21, #-1
	b	LBB0_14
LBB0_7:
	ldr	w5, [x29, #28]
	add	x2, sp, #32
	mov	x1, x21
	mov	x3, x27
	mov	x4, x26
	mov	x6, x25
	mov	x7, x24
	bl	_create_tcp_accept_sock
	mov	x21, x0
	ldr	w8, [sp, #32]
	cmn	w0, #1
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_10
	b	LBB0_13
LBB0_8:
	cmn	w21, #1
	b.ne	LBB0_13
; %bb.9:
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_13
LBB0_10:
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
	mov	w21, #-1
LBB0_13:
	ldr	x0, [sp, #40]
	bl	_freeaddrinfo
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node %s:%s getaddrinfo: %s %s"

l_.str.1:                               ; @.str.1
	.asciz	"default"

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

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.3:                               ; @.str.3
	.asciz	"bind: address already in use"

	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.comm	_EAI_SYSTEM,4,2                 ; @EAI_SYSTEM
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_make_sock
.subsections_via_symbols
