	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsocket_alloc_socket
_fsocket_alloc_socket:                  ## @fsocket_alloc_socket
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_fsocket_alloc_socket_mem
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_THIS_MODULE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	___module_get
	movq	%rbx, %rdi
	callq	_SOCK_INODE
	movq	%rax, %rdi
	callq	_security_inode_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	callq	_module_put
	movq	%rbx, %rdi
	callq	_fsocket_free_socket_mem
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPRINTK
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	addq	$56, %rdi
	callq	_init_waitqueue_head
	movq	$0, 48(%rbx)
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, (%rbx)
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_SOCK_INODE
	movq	%rax, %r14
	leaq	_fsocket_alloc_socket.empty_iops(%rip), %rax
	movq	%rax, 48(%r14)
	leaq	_fsocket_alloc_socket.empty_fops(%rip), %rax
	movq	%rax, 40(%r14)
	movq	_fastsocket_mnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	leaq	32(%r14), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	28(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movl	_fsocket_alloc_socket.last_ino(%rip), %eax
	incl	%eax
	movl	%eax, _fsocket_alloc_socket.last_ino(%rip)
	movl	%eax, (%r14)
	movq	$0, 16(%r14)
	movq	_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kmemcheck_annotate_bitfield
	movq	_S_IFSOCK@GOTPCREL(%rip), %rax
	movq	_S_IRWXUGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	xorl	%eax, %eax
	callq	_current_fsuid
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	callq	_current_fsgid
	movl	%eax, 8(%r14)
	movq	_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_DPRINTK
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @fsocket_alloc_socket.empty_iops
_fsocket_alloc_socket.empty_iops:
	.space	4

	.p2align	2                               ## @fsocket_alloc_socket.empty_fops
_fsocket_alloc_socket.empty_fops:
	.space	4

	.section	__DATA,__data
	.p2align	2                               ## @fsocket_alloc_socket.last_ino
_fsocket_alloc_socket.last_ino:
	.long	4096                            ## 0x1000

	.comm	_ERR,4,2                        ## @ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fail to allocate sock\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_SS_UNCONNECTED,4,2             ## @SS_UNCONNECTED
	.comm	_fastsocket_mnt,8,3             ## @fastsocket_mnt
	.comm	_type,4,2                       ## @type
	.comm	_S_IFSOCK,4,2                   ## @S_IFSOCK
	.comm	_S_IRWXUGO,4,2                  ## @S_IRWXUGO
	.comm	_DEBUG,4,2                      ## @DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Allocat inode 0x%p\n"

	.comm	_FSOCKET_INODE_START,4,2        ## @FSOCKET_INODE_START
	.no_dead_strip	_fsocket_alloc_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsocket_alloc_socket
_fsocket_alloc_socket:                  ; @fsocket_alloc_socket
	.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
	bl	_fsocket_alloc_socket_mem
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _THIS_MODULE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	___module_get
	mov	x0, x19
	bl	_SOCK_INODE
	bl	_security_inode_alloc
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_module_put
	mov	x0, x19
	bl	_fsocket_free_socket_mem
	mov	x19, #0
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	add	x0, x19, #56
	bl	_init_waitqueue_head
	str	xzr, [x19, #48]
Lloh7:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	xzr, [x19, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	mov	x0, x19
	bl	_SOCK_INODE
	mov	x20, x0
Lloh10:
	adrp	x8, _fsocket_alloc_socket.empty_iops@PAGE
Lloh11:
	add	x8, x8, _fsocket_alloc_socket.empty_iops@PAGEOFF
Lloh12:
	adrp	x9, _fsocket_alloc_socket.empty_fops@PAGE
Lloh13:
	add	x9, x9, _fsocket_alloc_socket.empty_fops@PAGEOFF
	stp	x9, x8, [x0, #40]
Lloh14:
	adrp	x8, _fastsocket_mnt@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fastsocket_mnt@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x0, #36]
	add	x0, x0, #32
	mov	w1, #1
	bl	_atomic_set
	add	x0, x20, #28
	bl	_INIT_LIST_HEAD
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
Lloh17:
	adrp	x8, _fsocket_alloc_socket.last_ino@PAGE
	ldr	w9, [x8, _fsocket_alloc_socket.last_ino@PAGEOFF]
	add	w9, w9, #1
	str	w9, [x8, _fsocket_alloc_socket.last_ino@PAGEOFF]
	str	w9, [x20]
	str	xzr, [x20, #16]
Lloh18:
	adrp	x8, _type@GOTPAGE
Lloh19:
	ldr	x8, [x8, _type@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kmemcheck_annotate_bitfield
Lloh21:
	adrp	x8, _S_IFSOCK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_IFSOCK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _S_IRWXUGO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _S_IRWXUGO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	bl	_current_fsuid
	str	w0, [x20, #12]
	bl	_current_fsgid
	str	w0, [x20, #8]
Lloh27:
	adrp	x8, _DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DPRINTK
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdrp	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @fsocket_alloc_socket.empty_iops
_fsocket_alloc_socket.empty_iops:
	.space	4

	.p2align	2                               ; @fsocket_alloc_socket.empty_fops
_fsocket_alloc_socket.empty_fops:
	.space	4

	.section	__DATA,__data
	.p2align	2                               ; @fsocket_alloc_socket.last_ino
_fsocket_alloc_socket.last_ino:
	.long	4096                            ; 0x1000

	.comm	_ERR,4,2                        ; @ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fail to allocate sock\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_SS_UNCONNECTED,4,2             ; @SS_UNCONNECTED
	.comm	_fastsocket_mnt,8,3             ; @fastsocket_mnt
	.comm	_type,4,2                       ; @type
	.comm	_S_IFSOCK,4,2                   ; @S_IFSOCK
	.comm	_S_IRWXUGO,4,2                  ; @S_IRWXUGO
	.comm	_DEBUG,4,2                      ; @DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Allocat inode 0x%p\n"

	.comm	_FSOCKET_INODE_START,4,2        ; @FSOCKET_INODE_START
	.no_dead_strip	_fsocket_alloc_socket
.subsections_via_symbols
