	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsocket_process_affinity_check
_fsocket_process_affinity_check:        ## @fsocket_process_affinity_check
	.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
	movq	_enable_listen_spawn@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_DISABLE_LISTEN_SPAWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EPRINTK_LIMIT
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_3:
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_num_active_cpus
	cmpl	%ebx, %eax
	jge	LBB0_22
## %bb.5:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_num_active_cpus
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_EPRINTK_LIMIT
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_22
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_alloc_cpumask_var
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi
	callq	_sched_getaffinity
	movl	-44(%rbp), %edi
	callq	_cpumask_first
	movl	%eax, %r14d
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	callq	_cpumask_next
	movl	%eax, %r15d
	movl	-44(%rbp), %edi
	callq	_free_cpumask_var
	movq	_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_15
## %bb.8:
	cmpl	%eax, %r15d
	jge	LBB0_16
## %bb.9:
	movq	(%r12), %rax
	movq	_ENABLE_LISTEN_SPAWN_AUTOSET_AFFINITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.10:
	movq	_fastsocket_spawn_cpu@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_num_active_cpus
	cmpl	%eax, %ebx
	jge	LBB0_20
## %bb.11:
	movq	_fastsocket_spawn_cpuset@GOTPCREL(%rip), %r12
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_cpu_isset
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	xorl	%eax, %eax
	callq	_num_active_cpus
	cmpl	%eax, %ebx
	jl	LBB0_12
	jmp	LBB0_20
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_15:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_16:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DPRINTK
	jmp	LBB0_21
LBB0_17:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
LBB0_18:
	movq	_INFO@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DPRINTK
	testl	%ebx, %ebx
	js	LBB0_20
## %bb.19:
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_cpu_set
	incl	(%r15)
	movl	(%r13), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DPRINTK
	jmp	LBB0_22
LBB0_20:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_EPRINTK_LIMIT
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_enable_listen_spawn,8,3        ## @enable_listen_spawn
	.comm	_DISABLE_LISTEN_SPAWN,8,3       ## @DISABLE_LISTEN_SPAWN
	.comm	_ERR,4,2                        ## @ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Module para disable listen-spawn feature\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"Requested CPU %d is greater than system available CPU core %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_current,8,3                    ## @current
	.comm	_DEBUG,4,2                      ## @DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Current process ccpu(%d) ncpu(%d)\n"

	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
L_.str.3:                               ## @.str.3
	.asciz	"Current process affinity is messed up\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.4:                               ## @.str.4
	.asciz	"Current process already binds to CPU %d\n"

	.comm	_ENABLE_LISTEN_SPAWN_AUTOSET_AFFINITY,8,3 ## @ENABLE_LISTEN_SPAWN_AUTOSET_AFFINITY
L_.str.5:                               ## @.str.5
	.asciz	"Module para disable autoset affinity for listen-spawn\n"

	.comm	_fastsocket_spawn_cpu,4,2       ## @fastsocket_spawn_cpu
	.comm	_fastsocket_spawn_cpuset,4,2    ## @fastsocket_spawn_cpuset
L_.str.6:                               ## @.str.6
	.asciz	"CPU %d is available for process affinity\n"

L_.str.7:                               ## @.str.7
	.asciz	"Process number is more than CPU number\n"

L_.str.8:                               ## @.str.8
	.asciz	"Target process affinity: %d\n"

	.no_dead_strip	_fsocket_process_affinity_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsocket_process_affinity_check
_fsocket_process_affinity_check:        ; @fsocket_process_affinity_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x21, _enable_listen_spawn@GOTPAGE
Lloh1:
	ldr	x21, [x21, _enable_listen_spawn@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _DISABLE_LISTEN_SPAWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DISABLE_LISTEN_SPAWN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_EPRINTK_LIMIT
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_18
LBB0_3:
	mov	x19, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	bl	_num_active_cpus
	cmp	w0, w19
	b.ge	LBB0_19
; %bb.5:
Lloh12:
	adrp	x8, _ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	bl	_num_active_cpus
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x0, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
LBB0_6:
	bl	_EPRINTK_LIMIT
	b	LBB0_17
LBB0_7:
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x0, sp, #28
	bl	_alloc_cpumask_var
	cbz	w0, LBB0_15
; %bb.8:
Lloh20:
	adrp	x8, _current@GOTPAGE
Lloh21:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [sp, #28]
	bl	_sched_getaffinity
	ldr	w0, [sp, #28]
	bl	_cpumask_first
	mov	x19, x0
	ldr	w1, [sp, #28]
	bl	_cpumask_next
	mov	x20, x0
	ldr	w0, [sp, #28]
	bl	_free_cpumask_var
Lloh23:
	adrp	x22, _DEBUG@GOTPAGE
Lloh24:
	ldr	x22, [x22, _DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	stp	x19, x20, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DPRINTK
Lloh27:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh28:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ge	LBB0_16
; %bb.9:
	cmp	w20, w8
	b.ge	LBB0_20
; %bb.10:
	ldr	x8, [x21]
Lloh30:
	adrp	x9, _ENABLE_LISTEN_SPAWN_AUTOSET_AFFINITY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ENABLE_LISTEN_SPAWN_AUTOSET_AFFINITY@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.11:
Lloh33:
	adrp	x20, _fastsocket_spawn_cpu@GOTPAGE
Lloh34:
	ldr	x20, [x20, _fastsocket_spawn_cpu@GOTPAGEOFF]
	ldr	w19, [x20]
	bl	_num_active_cpus
	cmp	w19, w0
	b.ge	LBB0_24
; %bb.12:
Lloh35:
	adrp	x21, _fastsocket_spawn_cpuset@GOTPAGE
Lloh36:
	ldr	x21, [x21, _fastsocket_spawn_cpuset@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cpu_isset
	cbz	w0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w19, w19, #1
	bl	_num_active_cpus
	cmp	w19, w0
	b.lt	LBB0_13
	b	LBB0_24
LBB0_15:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	ldr	w0, [x22]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DPRINTK
LBB0_17:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_19:
	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
	add	sp, sp, #80
	ret
LBB0_20:
Lloh43:
	adrp	x8, _INFO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	mov	x8, x19
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DPRINTK
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	b	LBB0_19
LBB0_21:
Lloh48:
	adrp	x8, _ERR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_22:
Lloh53:
	adrp	x22, _INFO@GOTPAGE
Lloh54:
	ldr	x22, [x22, _INFO@GOTPAGEOFF]
	ldr	w0, [x22]
	str	x19, [sp]
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_DPRINTK
	tbnz	w19, #31, LBB0_24
; %bb.23:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cpu_set
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	w0, [x22]
	mov	x8, x19
	str	x8, [sp]
Lloh57:
	adrp	x1, l_.str.8@PAGE
Lloh58:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_DPRINTK
	b	LBB0_19
LBB0_24:
Lloh59:
	adrp	x8, _ERR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.7@PAGE
Lloh63:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_enable_listen_spawn,8,3        ; @enable_listen_spawn
	.comm	_DISABLE_LISTEN_SPAWN,8,3       ; @DISABLE_LISTEN_SPAWN
	.comm	_ERR,4,2                        ; @ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Module para disable listen-spawn feature\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"Requested CPU %d is greater than system available CPU core %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_current,8,3                    ; @current
	.comm	_DEBUG,4,2                      ; @DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Current process ccpu(%d) ncpu(%d)\n"

	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
l_.str.3:                               ; @.str.3
	.asciz	"Current process affinity is messed up\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.4:                               ; @.str.4
	.asciz	"Current process already binds to CPU %d\n"

	.comm	_ENABLE_LISTEN_SPAWN_AUTOSET_AFFINITY,8,3 ; @ENABLE_LISTEN_SPAWN_AUTOSET_AFFINITY
l_.str.5:                               ; @.str.5
	.asciz	"Module para disable autoset affinity for listen-spawn\n"

	.comm	_fastsocket_spawn_cpu,4,2       ; @fastsocket_spawn_cpu
	.comm	_fastsocket_spawn_cpuset,4,2    ; @fastsocket_spawn_cpuset
l_.str.6:                               ; @.str.6
	.asciz	"CPU %d is available for process affinity\n"

l_.str.7:                               ; @.str.7
	.asciz	"Process number is more than CPU number\n"

l_.str.8:                               ; @.str.8
	.asciz	"Target process affinity: %d\n"

	.no_dead_strip	_fsocket_process_affinity_check
.subsections_via_symbols
