	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastsocket_spawn_listen
_fastsocket_spawn_listen:               ## @fastsocket_spawn_listen
	.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	%rdi, %rbx
	movq	_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DPRINTK
	movl	(%rbx), %r12d
	movl	4(%rbx), %r15d
	leaq	-36(%rbp), %rsi
	movl	%r12d, %edi
	callq	_fget_light
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_FMODE_FASTSOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_fsocket_spawn
	movl	%eax, %r14d
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	callq	_fput_light
	jmp	LBB0_6
LBB0_1:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_EPRINTK_LIMIT
	jmp	LBB0_5
LBB0_4:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DPRINTK
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG,4,2                      ## @DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Listen spawn listen fd %d\n"

	.comm	_ERR,4,2                        ## @ERR
L_.str.1:                               ## @.str.1
	.asciz	"fd [%d] doesn't exist!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FMODE_FASTSOCKET,4,2           ## @FMODE_FASTSOCKET
	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"Spawn non fastsocket\n"

	.no_dead_strip	_fastsocket_spawn_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastsocket_spawn_listen
_fastsocket_spawn_listen:               ; @fastsocket_spawn_listen
	.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	x20, x0
Lloh0:
	adrp	x8, _DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DPRINTK
	ldp	w19, w20, [x20]
	add	x1, sp, #12
	mov	x0, x19
	bl	_fget_light
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _FMODE_FASTSOCKET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FMODE_FASTSOCKET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_fsocket_spawn
	mov	x19, x0
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_fput_light
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_EPRINTK_LIMIT
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DPRINTK
LBB0_5:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG,4,2                      ; @DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Listen spawn listen fd %d\n"

	.comm	_ERR,4,2                        ; @ERR
l_.str.1:                               ; @.str.1
	.asciz	"fd [%d] doesn't exist!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FMODE_FASTSOCKET,4,2           ; @FMODE_FASTSOCKET
	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"Spawn non fastsocket\n"

	.no_dead_strip	_fastsocket_spawn_listen
.subsections_via_symbols
