	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastsocket_close
_fastsocket_close:                      ## @fastsocket_close
	.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	%rdi, %r14
	movq	_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DPRINTK
	movl	(%r14), %edi
	leaq	-20(%rbp), %rsi
	callq	_fget_light
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_FMODE_FASTSOCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%rax), %ebx
	movl	-20(%rbp), %esi
	movq	%rax, %rdi
	callq	_fput_light
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_fsocket_close
	jmp	LBB0_5
LBB0_1:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_EPRINTK_LIMIT
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_DPRINTK
	movl	(%r14), %edi
	callq	_sys_close
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG,4,2                      ## @DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Close fastsocket %d\n"

	.comm	_ERR,4,2                        ## @ERR
L_.str.1:                               ## @.str.1
	.asciz	"Close file don'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	"Close non fastsocket %d\n"

	.no_dead_strip	_fastsocket_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastsocket_close
_fastsocket_close:                      ; @fastsocket_close
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DPRINTK
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_fget_light
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _FMODE_FASTSOCKET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FMODE_FASTSOCKET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w20, w9, w8
	ldr	w1, [sp, #12]
	bl	_fput_light
	cbz	w20, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_fsocket_close
	b	LBB0_5
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
	bl	_EPRINTK_LIMIT
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DPRINTK
	ldr	w0, [x19]
	bl	_sys_close
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG,4,2                      ; @DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Close fastsocket %d\n"

	.comm	_ERR,4,2                        ; @ERR
l_.str.1:                               ; @.str.1
	.asciz	"Close file don'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	"Close non fastsocket %d\n"

	.no_dead_strip	_fastsocket_close
.subsections_via_symbols
