	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_mkname
_unix_mkname:                           ## @unix_mkname
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	leal	-17(%rbx), %eax
	cmpl	$-15, %eax
	jbe	LBB0_1
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	(%rdi), %rax
	movq	_AF_UNIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movslq	%ebx, %rax
	movb	$0, (%rdi,%rax)
	movq	8(%rdi), %rdi
	callq	_strlen
	movl	%eax, %ebx
	addl	$3, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%rdx, %r14
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_csum_partial
	movl	%eax, %edi
	callq	_unix_hash_fold
	movl	%eax, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_UNIX,8,3                    ## @AF_UNIX
	.no_dead_strip	_unix_mkname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_mkname
_unix_mkname:                           ; @unix_mkname
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w8, w1, #17
	cmn	w8, #15
	b.ls	LBB0_5
; %bb.1:
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_UNIX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x19, x1
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	sxtw	x8, w19
	strb	wzr, [x0, x8]
	ldr	x0, [x0, #8]
	bl	_strlen
	add	w19, w0, #3
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x20, x2
	mov	x1, x19
	mov	w2, #0
	bl	_csum_partial
	bl	_unix_hash_fold
	str	w0, [x20]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_UNIX,8,3                    ; @AF_UNIX
	.no_dead_strip	_unix_mkname
.subsections_via_symbols
