	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_socket_directory
_init_socket_directory:                 ## @init_socket_directory
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_xstrdup
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_dirname
	movq	%rax, %rbx
	leaq	-24(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_safe_create_leading_directories_const
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die_errno
LBB0_5:
	movq	%rbx, %rdi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_mkdir
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die_errno
	jmp	LBB0_7
LBB0_1:
	testb	$63, -24(%rbp)
	je	LBB0_7
## %bb.2:
	movq	_permissions_advice@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_die
LBB0_7:
	movq	%rbx, %rdi
	callq	_chdir
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_permissions_advice,4,2         ## @permissions_advice
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to create directories for '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"unable to mkdir '%s'"

	.no_dead_strip	_init_socket_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_socket_directory
_init_socket_directory:                 ; @init_socket_directory
	.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	_xstrdup
	mov	x19, x0
	bl	_dirname
	mov	x20, x0
	add	x1, sp, #8
	bl	_stat
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_safe_create_leading_directories_const
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_die_errno
LBB0_3:
	mov	x0, x20
	mov	w1, #448
	bl	_mkdir
	tbz	x0, #63, LBB0_7
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_die_errno
	b	LBB0_7
LBB0_5:
	ldrb	w8, [sp, #8]
	tst	w8, #0x3f
	b.eq	LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _permissions_advice@GOTPAGE
Lloh5:
	ldr	x8, [x8, _permissions_advice@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	__
	mov	x1, x20
	bl	_die
LBB0_7:
	mov	x0, x20
	bl	_chdir
	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
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_permissions_advice,4,2         ; @permissions_advice
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to create directories for '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"unable to mkdir '%s'"

	.no_dead_strip	_init_socket_directory
.subsections_via_symbols
