	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsocket_socket                 ## -- Begin function fsocket_socket
	.p2align	4, 0x90
_fsocket_socket:                        ## @fsocket_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SOCK_CLOEXEC@GOTPCREL(%rip), %rax
	movq	_SOCK_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%edi, %ecx
	je	LBB0_4
## %bb.1:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_EPRINTK_LIMIT
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%edi, %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fsocket_alloc_socket
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r14
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, (%r14)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_inet_create
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_fsocket_init_socket
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_fsock_map_fd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_security_socket_post_create
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	movl	%eax, %r14d
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_EPRINTK_LIMIT
	movl	%ebx, %edi
	callq	_fsocket_close
	movl	%r14d, %ebx
	jmp	LBB0_3
LBB0_9:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_EPRINTK_LIMIT
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movl	%eax, %ebx
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_EPRINTK_LIMIT
	jmp	LBB0_12
LBB0_11:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_EPRINTK_LIMIT
	movq	%r14, %rdi
	callq	_fsock_release_sock
LBB0_12:
	movq	%r14, %rdi
	callq	_fsocket_free_socket_mem
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_CLOEXEC,4,2               ## @SOCK_CLOEXEC
	.comm	_SOCK_NONBLOCK,4,2              ## @SOCK_NONBLOCK
	.comm	_ERR,4,2                        ## @ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported Socket Flags For Fastsocket\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Allocate New Socket failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_current,8,3                    ## @current
L_.str.2:                               ## @.str.2
	.asciz	"Initialize Inet Socket failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"Map Socket FD failed\n"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
L_.str.4:                               ## @.str.4
	.asciz	"security_socket_post_create failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsocket_socket                 ; -- Begin function fsocket_socket
	.p2align	2
_fsocket_socket:                        ; @fsocket_socket
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _SOCK_CLOEXEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_CLOEXEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SOCK_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCK_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w0, w8
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_EPRINTK_LIMIT
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x21, x0
	bl	_fsocket_alloc_socket
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
Lloh13:
	adrp	x22, _SOCK_STREAM@GOTPAGE
Lloh14:
	ldr	x22, [x22, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [x0]
Lloh15:
	adrp	x8, _current@GOTPAGE
Lloh16:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_inet_create
	tbnz	w0, #31, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_fsocket_init_socket
	mov	x0, x20
	mov	x1, x21
	bl	_fsock_map_fd
	mov	x19, x0
	tbnz	w0, #31, LBB0_11
; %bb.7:
Lloh18:
	adrp	x8, _PF_INET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x22]
Lloh21:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w4, #0
	bl	_security_socket_post_create
	cbz	w0, LBB0_3
; %bb.8:
	mov	x20, x0
Lloh24:
	adrp	x8, _ERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_EPRINTK_LIMIT
	mov	x0, x19
	bl	_fsocket_close
	mov	x19, x20
	b	LBB0_3
LBB0_9:
Lloh29:
	adrp	x8, _ERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_EPRINTK_LIMIT
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	mov	x19, x0
Lloh36:
	adrp	x8, _ERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_EPRINTK_LIMIT
	b	LBB0_12
LBB0_11:
Lloh41:
	adrp	x8, _ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_EPRINTK_LIMIT
	mov	x0, x20
	bl	_fsock_release_sock
LBB0_12:
	mov	x0, x20
	bl	_fsocket_free_socket_mem
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_CLOEXEC,4,2               ; @SOCK_CLOEXEC
	.comm	_SOCK_NONBLOCK,4,2              ; @SOCK_NONBLOCK
	.comm	_ERR,4,2                        ; @ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported Socket Flags For Fastsocket\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Allocate New Socket failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_current,8,3                    ; @current
l_.str.2:                               ; @.str.2
	.asciz	"Initialize Inet Socket failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"Map Socket FD failed\n"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
l_.str.4:                               ; @.str.4
	.asciz	"security_socket_post_create failed\n"

.subsections_via_symbols
