	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fastsocket_init                ## -- Begin function fastsocket_init
	.p2align	4, 0x90
_fastsocket_init:                       ## @fastsocket_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_fsocket_channel_fd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_INIT_FDSET_NUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_calloc
	movq	_fsocket_fd_set@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %eax
	movq	_fsocket_fd_num@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	-20(%rbp), %rdi
	callq	_CPU_ZERO
	xorl	%eax, %eax
	callq	_get_cpus
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	leaq	-20(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_CPU_SET
	incl	%ebx
	xorl	%eax, %eax
	callq	_get_cpus
	cmpl	%eax, %ebx
	jl	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_get_cpus
	leaq	-20(%rbp), %rdx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_sched_setaffinity
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	callq	_FSOCKET_ERR
	movl	$-1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/fastsocket"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"Open fastsocket channel failed, please CHECK\n"

	.comm	_fsocket_channel_fd,4,2         ## @fsocket_channel_fd
	.comm	_INIT_FDSET_NUM,4,2             ## @INIT_FDSET_NUM
	.comm	_fsocket_fd_set,4,2             ## @fsocket_fd_set
L_.str.2:                               ## @.str.2
	.asciz	"Allocate memory for listen fd set failed\n"

	.comm	_fsocket_fd_num,4,2             ## @fsocket_fd_num
L_.str.3:                               ## @.str.3
	.asciz	"Clear process CPU affinity failed\n"

	.section	__DATA,__mod_init_func,mod_init_funcs
	.p2align	3
	.quad	_fastsocket_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fastsocket_init                ; -- Begin function fastsocket_init
	.p2align	2
_fastsocket_init:                       ; @fastsocket_init
	.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	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _fsocket_channel_fd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fsocket_channel_fd@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	adrp	x19, _INIT_FDSET_NUM@GOTPAGE
Lloh9:
	ldr	x19, [x19, _INIT_FDSET_NUM@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #4
	bl	_calloc
Lloh10:
	adrp	x8, _fsocket_fd_set@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fsocket_fd_set@GOTPAGEOFF]
Lloh12:
	str	w0, [x8]
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _fsocket_fd_num@GOTPAGE
Lloh14:
	ldr	x9, [x9, _fsocket_fd_num@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	add	x0, sp, #12
	bl	_CPU_ZERO
	bl	_get_cpus
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w19, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	bl	_CPU_SET
	add	w19, w19, #1
	bl	_get_cpus
	cmp	w19, w0
	b.lt	LBB0_4
LBB0_5:
	bl	_get_cpus
	mov	x1, x0
	add	x2, sp, #12
	mov	w0, #0
	bl	_sched_setaffinity
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_FSOCKET_ERR
	mov	w0, #-1
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/fastsocket"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"Open fastsocket channel failed, please CHECK\n"

	.comm	_fsocket_channel_fd,4,2         ; @fsocket_channel_fd
	.comm	_INIT_FDSET_NUM,4,2             ; @INIT_FDSET_NUM
	.comm	_fsocket_fd_set,4,2             ; @fsocket_fd_set
l_.str.2:                               ; @.str.2
	.asciz	"Allocate memory for listen fd set failed\n"

	.comm	_fsocket_fd_num,4,2             ; @fsocket_fd_num
l_.str.3:                               ; @.str.3
	.asciz	"Clear process CPU affinity failed\n"

	.section	__DATA,__mod_init_func,mod_init_funcs
	.p2align	3
	.quad	_fastsocket_init
.subsections_via_symbols
