	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_socket_get
_unix_socket_get:                       ## @unix_socket_get
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_AT_PWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_N_SYMLINK_FOLLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_path_normalize
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	%r13, %rdi
	callq	_find_mount_and_trim_path
	movq	%rax, %r12
	movq	(%rax), %rax
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	*(%rax)
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.3:
	jns	LBB0_9
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	leaq	4(%rbx), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_lock
	movl	(%rbx), %r14d
	notl	%r14d
	andl	$511, %r14d                     ## imm = 0x1FF
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_unlock
	movq	(%r12), %rax
	movq	_S_IFSOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_22
## %bb.5:
	movq	(%r12), %rax
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jns	LBB0_9
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_8:
	testl	%ebx, %ebx
	js	LBB0_17
LBB0_9:
	movl	-52(%rbp), %edi
	callq	_S_ISSOCK
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	movl	-56(%rbp), %esi
	movq	%r12, %rdi
	callq	_inode_get
	movq	%rax, %rbx
	leaq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_lock
	cmpq	$0, (%rbx)
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_unix_socket_next_id
	movq	%rax, (%rbx)
LBB0_12:
	movq	%r13, %rdi
	callq	_unlock
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	%r12, %rdi
	callq	_mount_release
	testq	%r15, %r15
	je	LBB0_18
## %bb.13:
	movq	%rbx, (%r15)
	jmp	LBB0_19
LBB0_14:
	movq	__EADDRINUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	__ENOTSOCK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movq	%r12, %rdi
	callq	_mount_release
	jmp	LBB0_20
LBB0_18:
	movq	%rbx, %rdi
	callq	_inode_release
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_AT_PWD,4,2                     ## @AT_PWD
	.comm	_N_SYMLINK_FOLLOW,4,2           ## @N_SYMLINK_FOLLOW
	.comm	__EADDRINUSE,4,2                ## @_EADDRINUSE
	.comm	_current,8,3                    ## @current
	.comm	_S_IFSOCK,4,2                   ## @S_IFSOCK
	.comm	__ENOTSOCK,4,2                  ## @_ENOTSOCK
	.no_dead_strip	_unix_socket_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_socket_get
_unix_socket_get:                       ; @unix_socket_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _AT_PWD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AT_PWD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _N_SYMLINK_FOLLOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _N_SYMLINK_FOLLOW@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x2, x22
	bl	_path_normalize
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x22
	bl	_find_mount_and_trim_path
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	sub	x2, x29, #64
	mov	x1, x22
	mov	w3, #1
	blr	x8
	mov	x23, x0
	cbz	x19, LBB0_8
; %bb.2:
	cbz	w23, LBB0_14
; %bb.3:
	tbz	w23, #31, LBB0_9
; %bb.4:
Lloh14:
	adrp	x8, _current@GOTPAGE
Lloh15:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x24, [x8]
	add	x23, x24, #4
	mov	x0, x23
	bl	_lock
	ldr	w8, [x24]
	mvn	w8, w8
	and	w24, w8, #0x1ff
	mov	x0, x23
	bl	_unlock
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
Lloh17:
	adrp	x9, _S_IFSOCK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _S_IFSOCK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w24
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ldr	x8, [x21]
	ldr	x8, [x8]
	sub	x2, x29, #64
	mov	x0, x21
	mov	x1, x22
	mov	w3, #1
	blr	x8
	tbz	w0, #31, LBB0_9
LBB0_6:
	mov	x23, x0
	b	LBB0_17
LBB0_7:
	mov	x23, x0
	b	LBB0_18
LBB0_8:
	tbnz	w23, #31, LBB0_17
LBB0_9:
	ldur	w0, [x29, #-60]
	bl	_S_ISSOCK
	cbz	w0, LBB0_15
; %bb.10:
	ldur	w1, [x29, #-64]
	mov	x0, x21
	bl	_inode_get
	mov	x22, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_lock
	ldr	x8, [x22]
	cbnz	x8, LBB0_12
; %bb.11:
	bl	_unix_socket_next_id
	str	x0, [x22]
LBB0_12:
	mov	x0, x23
	bl	_unlock
	ldr	x8, [x22]
	str	x8, [x20]
	mov	x0, x21
	bl	_mount_release
	cbz	x19, LBB0_20
; %bb.13:
	mov	w23, #0
	str	x22, [x19]
	b	LBB0_18
LBB0_14:
Lloh20:
	adrp	x8, __EADDRINUSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, __EADDRINUSE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh22:
	adrp	x8, __ENOTSOCK@GOTPAGE
Lloh23:
	ldr	x8, [x8, __ENOTSOCK@GOTPAGEOFF]
LBB0_16:
	ldr	w23, [x8]
LBB0_17:
	mov	x0, x21
	bl	_mount_release
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x23
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x0, x22
	bl	_inode_release
	mov	w23, #0
	b	LBB0_18
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_AT_PWD,4,2                     ; @AT_PWD
	.comm	_N_SYMLINK_FOLLOW,4,2           ; @N_SYMLINK_FOLLOW
	.comm	__EADDRINUSE,4,2                ; @_EADDRINUSE
	.comm	_current,8,3                    ; @current
	.comm	_S_IFSOCK,4,2                   ; @S_IFSOCK
	.comm	__ENOTSOCK,4,2                  ; @_ENOTSOCK
	.no_dead_strip	_unix_socket_get
.subsections_via_symbols
