	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsock_alloc_file
_fsock_alloc_file:                      ## @fsock_alloc_file
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, -64(%rbp)
	movl	%edx, %edi
	callq	_get_unused_fd_flags
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_EPRINTK_LIMIT
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_fsock_d_alloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_EPRINTK_LIMIT
	movl	%r15d, %edi
	callq	_put_unused_fd
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r15d
	jmp	LBB0_9
LBB0_4:
	movq	_fastsocket_mnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_SOCK_INODE
	movq	_fsocket_file_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	callq	_get_empty_filp
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_EPRINTK_LIMIT
	movq	%rbx, %rdi
	callq	_fsock_d_free
	movl	%r15d, %edi
	callq	_put_unused_fd
	movq	_ENFILE@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_6:
	movq	_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	%rbx, 8(%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r13)
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_FMODE_FASTSOCKET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	movq	_enable_fast_epoll@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_FMODE_BIND_EPI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
LBB0_8:
	movq	_fsocket_file_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r13)
	movq	%r13, (%r14)
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r12d
	orl	(%rax), %r12d
	movl	%r12d, 4(%r13)
	movq	$0, 48(%r13)
	movq	%r14, 40(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rcx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_DPRINTK
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_ERR,4,2                        ## @ERR
L_.str.1:                               ## @.str.1
	.asciz	"Socket 0x%p get unused fd failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Socket 0x%p allocate dentry failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fastsocket_mnt,4,2             ## @fastsocket_mnt
	.comm	_fsocket_file_ops,4,2           ## @fsocket_file_ops
L_.str.3:                               ## @.str.3
	.asciz	"Socket 0x%p allocate empty file failed\n"

	.comm	_ENFILE,4,2                     ## @ENFILE
	.comm	_DEBUG,4,2                      ## @DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"Allocate file 0x%p\n"

	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_FMODE_FASTSOCKET,4,2           ## @FMODE_FASTSOCKET
	.comm	_enable_fast_epoll,8,3          ## @enable_fast_epoll
	.comm	_FMODE_BIND_EPI,4,2             ## @FMODE_BIND_EPI
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.5:                               ## @.str.5
	.asciz	"fsock_alloc_file: file(%p) dentry(%p)"

	.no_dead_strip	_fsock_alloc_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsock_alloc_file
_fsock_alloc_file:                      ; @fsock_alloc_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
	mov	x0, x2
	bl	_get_unused_fd_flags
	mov	x19, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_EPRINTK_LIMIT
	b	LBB0_7
LBB0_2:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, #0
	bl	_fsock_d_alloc
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_EPRINTK_LIMIT
	mov	x0, x19
	bl	_put_unused_fd
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _fastsocket_mnt@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fastsocket_mnt@GOTPAGEOFF]
Lloh16:
	ldr	w27, [x8]
	mov	x0, x20
	bl	_SOCK_INODE
Lloh17:
	adrp	x25, _fsocket_file_ops@GOTPAGE
Lloh18:
	ldr	x25, [x25, _fsocket_file_ops@GOTPAGEOFF]
	str	x25, [x0]
	bl	_get_empty_filp
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:
Lloh19:
	adrp	x8, _ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_EPRINTK_LIMIT
	mov	x0, x24
	bl	_fsock_d_free
	mov	x0, x19
	bl	_put_unused_fd
Lloh24:
	adrp	x8, _ENFILE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENFILE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
Lloh26:
	adrp	x26, _DEBUG@GOTPAGE
Lloh27:
	ldr	x26, [x26, _DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x23
	bl	_DPRINTK
	str	x24, [x23, #8]
	str	w27, [x23, #16]
	ldr	x8, [x24]
	ldr	w8, [x8]
	str	w8, [x23, #64]
Lloh30:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh36:
	adrp	x9, _FMODE_FASTSOCKET@GOTPAGE
Lloh37:
	ldr	x9, [x9, _FMODE_FASTSOCKET@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x23]
Lloh39:
	adrp	x9, _enable_fast_epoll@GOTPAGE
Lloh40:
	ldr	x9, [x9, _enable_fast_epoll@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cbz	x9, LBB0_10
; %bb.9:
Lloh42:
	adrp	x9, _FMODE_BIND_EPI@GOTPAGE
Lloh43:
	ldr	x9, [x9, _FMODE_BIND_EPI@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x23]
LBB0_10:
	str	x25, [x23, #56]
	str	x23, [x20]
Lloh45:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh47:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh48:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w8, w9, w8
	str	w8, [x23, #4]
	stp	x20, xzr, [x23, #40]
	stp	xzr, xzr, [x23, #24]
	str	x23, [x21]
	ldr	w0, [x26]
	ldr	x8, [x23, #8]
	str	x8, [sp]
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x23
	bl	_DPRINTK
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_ERR,4,2                        ; @ERR
l_.str.1:                               ; @.str.1
	.asciz	"Socket 0x%p get unused fd failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Socket 0x%p allocate dentry failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fastsocket_mnt,4,2             ; @fastsocket_mnt
	.comm	_fsocket_file_ops,4,2           ; @fsocket_file_ops
l_.str.3:                               ; @.str.3
	.asciz	"Socket 0x%p allocate empty file failed\n"

	.comm	_ENFILE,4,2                     ; @ENFILE
	.comm	_DEBUG,4,2                      ; @DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"Allocate file 0x%p\n"

	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_FMODE_FASTSOCKET,4,2           ; @FMODE_FASTSOCKET
	.comm	_enable_fast_epoll,8,3          ; @enable_fast_epoll
	.comm	_FMODE_BIND_EPI,4,2             ; @FMODE_BIND_EPI
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.5:                               ; @.str.5
	.asciz	"fsock_alloc_file: file(%p) dentry(%p)"

	.no_dead_strip	_fsock_alloc_file
.subsections_via_symbols
