	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fastsocket_expand_fdset        ## -- Begin function fastsocket_expand_fdset
	.p2align	4, 0x90
_fastsocket_expand_fdset:               ## @fastsocket_expand_fdset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_fsocket_fd_num@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdi
	cmpl	%ebx, %edi
	jg	LBB0_4
## %bb.1:
	movq	_fsocket_fd_set@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	_INIT_FDSET_NUM@GOTPCREL(%rip), %r12
	addq	(%r12), %rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%r15), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	%r14, %rdi
	callq	_free
	movl	(%r12), %eax
	addl	%eax, (%r15)
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_FSOCKET_ERR
	movl	%ebx, -48(%rbp)
	movq	_fsocket_channel_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FSOCKET_IOC_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	movq	_EMFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fsocket_fd_set,8,3             ## @fsocket_fd_set
	.comm	_fsocket_fd_num,4,2             ## @fsocket_fd_num
	.comm	_INIT_FDSET_NUM,8,3             ## @INIT_FDSET_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Re allocate memory for listen fd set failed\n"

	.comm	_fsocket_channel_fd,4,2         ## @fsocket_channel_fd
	.comm	_FSOCKET_IOC_CLOSE,4,2          ## @FSOCKET_IOC_CLOSE
	.comm	_EMFILE,4,2                     ## @EMFILE
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fastsocket_expand_fdset        ; -- Begin function fastsocket_expand_fdset
	.p2align	2
_fastsocket_expand_fdset:               ; @fastsocket_expand_fdset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _fsocket_fd_num@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fsocket_fd_num@GOTPAGEOFF]
	ldrsw	x8, [x21]
	cmp	w8, w0
	b.gt	LBB0_4
; %bb.1:
Lloh2:
	adrp	x23, _fsocket_fd_set@GOTPAGE
Lloh3:
	ldr	x23, [x23, _fsocket_fd_set@GOTPAGEOFF]
	ldr	x20, [x23]
Lloh4:
	adrp	x22, _INIT_FDSET_NUM@GOTPAGE
Lloh5:
	ldr	x22, [x22, _INIT_FDSET_NUM@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	mov	w1, #4
	bl	_calloc
	str	x0, [x23]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	lsl	w2, w8, #2
	mov	x1, x20
	bl	_memcpy
	mov	x0, x20
	bl	_free
	ldr	w8, [x22]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FSOCKET_ERR
	str	w19, [sp, #8]
Lloh8:
	adrp	x8, _fsocket_channel_fd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fsocket_channel_fd@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _FSOCKET_IOC_CLOSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FSOCKET_IOC_CLOSE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
Lloh14:
	adrp	x8, _EMFILE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EMFILE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _errno@GOTPAGE
Lloh18:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	mov	w19, #-1
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_fsocket_fd_set,8,3             ; @fsocket_fd_set
	.comm	_fsocket_fd_num,4,2             ; @fsocket_fd_num
	.comm	_INIT_FDSET_NUM,8,3             ; @INIT_FDSET_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Re allocate memory for listen fd set failed\n"

	.comm	_fsocket_channel_fd,4,2         ; @fsocket_channel_fd
	.comm	_FSOCKET_IOC_CLOSE,4,2          ; @FSOCKET_IOC_CLOSE
	.comm	_EMFILE,4,2                     ; @EMFILE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
