	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_sockaddr_init
_unix_sockaddr_init:                    ## @unix_sockaddr_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	movl	%eax, %ebx
	incl	%ebx
	movq	$0, (%r13)
	cmpl	$5, %ebx
	jb	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	callq	_find_last_dir_sep
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	1(%rax), %r15
	movq	%r15, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movl	%eax, %ebx
	incl	%ebx
	cmpl	$4, %ebx
	jbe	LBB0_4
LBB0_3:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_4:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_getcwd
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:
	movl	$-1, %r15d
	jmp	LBB0_8
LBB0_6:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, (%r13)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subl	%r12d, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_chdir_len
	testq	%rax, %rax
	movq	%r15, %r12
	js	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.comm	_errno,4,2                      ## @errno
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.no_dead_strip	_unix_sockaddr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_sockaddr_init
_unix_sockaddr_init:                    ; @unix_sockaddr_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	x0, x1
	bl	_strlen
	add	w21, w0, #1
	str	xzr, [x22]
	cmp	w21, #5
	b.lo	LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_find_last_dir_sep
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x24, x0
	add	x23, x0, #1
	mov	x0, x23
	bl	_strlen
	add	w21, w0, #1
	cmp	w21, #4
	b.ls	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	b	LBB0_5
LBB0_4:
	add	x0, sp, #8
	bl	_strbuf_getcwd
	cbz	x0, LBB0_6
LBB0_5:
	mov	w0, #-1
	b	LBB0_9
LBB0_6:
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	str	x0, [x22]
	sub	w1, w24, w20
	mov	x0, x20
	bl	_chdir_len
	tbnz	x0, #63, LBB0_5
; %bb.7:
	mov	x20, x23
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh9:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.comm	_errno,4,2                      ; @errno
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.no_dead_strip	_unix_sockaddr_init
.subsections_via_symbols
