	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabSockSelect                  ## -- Begin function YabSockSelect
	.p2align	4, 0x90
_YabSockSelect:                         ## @YabSockSelect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_read_fds@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_FD_ZERO
	movq	_write_fds@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_FD_ZERO
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_FD_SET
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_FD_SET
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	incq	%rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_select
	testl	%eax, %eax
	jg	LBB0_11
## %bb.7:
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	movl	%eax, %esi
	callq	_LOG
	movl	$-1, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_read_fds,4,2                   ## @read_fds
	.comm	_write_fds,4,2                  ## @write_fds
	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select: err code %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"select: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabSockSelect                  ; -- Begin function YabSockSelect
	.p2align	2
_YabSockSelect:                         ; @YabSockSelect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _read_fds@GOTPAGE
Lloh1:
	ldr	x0, [x0, _read_fds@GOTPAGEOFF]
	bl	_FD_ZERO
Lloh2:
	adrp	x0, _write_fds@GOTPAGE
Lloh3:
	ldr	x0, [x0, _write_fds@GOTPAGEOFF]
	bl	_FD_ZERO
	cbz	w20, LBB0_3
; %bb.1:
Lloh4:
	adrp	x20, _read_fds@GOTPAGE
Lloh5:
	ldr	x20, [x20, _read_fds@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_FD_SET
	cbz	w21, LBB0_4
LBB0_2:
Lloh6:
	adrp	x21, _write_fds@GOTPAGE
Lloh7:
	ldr	x21, [x21, _write_fds@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_FD_SET
	b	LBB0_5
LBB0_3:
	mov	x20, #0
	cbnz	w21, LBB0_2
LBB0_4:
	mov	x21, #0
LBB0_5:
	add	x0, x19, #1
	stp	xzr, xzr, [sp]
	mov	x4, sp
	mov	x1, x20
	mov	x2, x21
	mov	x3, #0
	bl	_select
	cmp	w0, #0
	b.le	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	mov	x1, x0
Lloh8:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_LOG
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_read_fds,4,2                   ; @read_fds
	.comm	_write_fds,4,2                  ; @write_fds
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select: err code %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"select: %d\n"

.subsections_via_symbols
