	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sock_alloc_file
_sock_alloc_file:                       ## @sock_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	$40, %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, %r15
	leaq	L_.str(%rip), %rax
	movq	%rax, -72(%rbp)
	movl	%edx, %edi
	callq	_get_unused_fd_flags
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_sock_mnt@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_d_alloc_pseudo
	movq	%rax, %r13
	movq	%rax, -56(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	%r14d, %edi
	callq	_put_unused_fd
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	(%rbx), %rdi
	callq	_mntget
	movl	%eax, -48(%rbp)
	movq	_sockfs_dentry_operations@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_DCACHE_UNHASHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r13)
	movq	%r15, %rdi
	callq	_SOCK_INODE
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_d_instantiate
	movq	%r15, %rdi
	callq	_SOCK_INODE
	movq	_socket_file_ops@GOTPCREL(%rip), %rdx
	movq	%rdx, (%rax)
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_alloc_file
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	callq	_atomic_inc
	leaq	-56(%rbp), %rdi
	callq	_path_put
	movl	%r14d, %edi
	callq	_put_unused_fd
	movq	_ENFILE@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r13, (%r15)
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r12d
	orl	(%rax), %r12d
	movl	%r12d, (%r13)
	movq	$0, 16(%r13)
	movq	%r15, 8(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_sock_mnt,8,3                   ## @sock_mnt
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sockfs_dentry_operations,4,2   ## @sockfs_dentry_operations
	.comm	_DCACHE_UNHASHED,4,2            ## @DCACHE_UNHASHED
	.comm	_socket_file_ops,4,2            ## @socket_file_ops
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_ENFILE,4,2                     ## @ENFILE
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.no_dead_strip	_sock_alloc_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sock_alloc_file
_sock_alloc_file:                       ; @sock_alloc_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #24]
	mov	x0, x2
	bl	_get_unused_fd_flags
	mov	x19, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x24, _sock_mnt@GOTPAGE
Lloh3:
	ldr	x24, [x24, _sock_mnt@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_d_alloc_pseudo
	mov	x23, x0
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_put_unused_fd
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x24]
	bl	_mntget
	str	w0, [sp, #16]
Lloh6:
	adrp	x8, _sockfs_dentry_operations@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sockfs_dentry_operations@GOTPAGEOFF]
	str	x8, [x23, #16]
Lloh8:
	adrp	x8, _DCACHE_UNHASHED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCACHE_UNHASHED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x23, #8]
	bic	w8, w9, w8
	str	w8, [x23, #8]
	mov	x0, x21
	bl	_SOCK_INODE
	mov	x1, x0
	mov	x0, x23
	bl	_d_instantiate
	mov	x0, x21
	bl	_SOCK_INODE
Lloh11:
	adrp	x2, _socket_file_ops@GOTPAGE
Lloh12:
	ldr	x2, [x2, _socket_file_ops@GOTPAGEOFF]
Lloh13:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
	str	x2, [x0]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x0, sp, #8
	bl	_alloc_file
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	bl	_atomic_inc
	add	x0, sp, #8
	bl	_path_put
	mov	x0, x19
	bl	_put_unused_fd
Lloh19:
	adrp	x8, _ENFILE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENFILE@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	str	x23, [x21]
Lloh21:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w8, w9, w8
	str	w8, [x23]
	stp	x21, xzr, [x23, #8]
	str	x23, [x20]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_sock_mnt,8,3                   ; @sock_mnt
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sockfs_dentry_operations,4,2   ; @sockfs_dentry_operations
	.comm	_DCACHE_UNHASHED,4,2            ; @DCACHE_UNHASHED
	.comm	_socket_file_ops,4,2            ; @socket_file_ops
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_ENFILE,4,2                     ; @ENFILE
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.no_dead_strip	_sock_alloc_file
.subsections_via_symbols
