	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_sck
_check_sck:                             ## @check_sck
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_g_block@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	jne	LBB0_5
## %bb.1:
	movl	$1, (%r12)
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_FD_ZERO
	movq	_g_tcp_sck@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_FD_SET
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_ZeroMemory
	movq	(%rbx), %rdi
	incq	%rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_select
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_ui_read_wire
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_PostQuitMessage
	xorl	%ebx, %ebx
LBB0_4:
	movl	$0, (%r12)
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_block,4,2                    ## @g_block
	.comm	_g_tcp_sck,8,3                  ## @g_tcp_sck
	.no_dead_strip	_check_sck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_sck
_check_sck:                             ; @check_sck
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _g_block@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_block@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	add	x0, sp, #12
	bl	_FD_ZERO
Lloh2:
	adrp	x20, _g_tcp_sck@GOTPAGE
Lloh3:
	ldr	x20, [x20, _g_tcp_sck@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_FD_SET
	add	x0, sp, #8
	mov	w1, #4
	bl	_ZeroMemory
	ldr	x8, [x20]
	add	x0, x8, #1
	add	x1, sp, #12
	add	x4, sp, #8
	mov	w2, #0
	mov	w3, #0
	bl	_select
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	bl	_ui_read_wire
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	bl	_PostQuitMessage
LBB0_6:
	mov	w0, #0
LBB0_7:
	str	wzr, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_g_block,4,2                    ; @g_block
	.comm	_g_tcp_sck,8,3                  ; @g_tcp_sck
	.no_dead_strip	_check_sck
.subsections_via_symbols
