	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makename
_makename:                              ## @makename
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movb	$0, (%rax)
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.2:
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_strlen
	cmpq	$6, %rax
	ja	LBB0_16
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r13
	cmpb	$47, -1(%rbx,%rax)
	jne	LBB0_5
## %bb.4:
	movq	_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_display_log
LBB0_5:
	leaq	-1(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rax
	cmpb	$47, -1(%r15,%rax)
	je	LBB0_9
## %bb.8:
	movb	$47, (%rax,%r15)
	incq	%r15
	jmp	LBB0_9
LBB0_19:
	movq	_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_display_log                    ## TAILCALL
LBB0_16:
	movq	_USER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	jmp	LBB0_17
LBB0_6:
	xorl	%r15d, %r15d
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rbx
	movl	$1, %ecx
	subq	%r13, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r8
	movq	%rdx, %rax
	cmpq	%rdx, %rcx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	-1(%r8), %rbx
	leaq	-1(%rax), %rdx
	cmpb	$47, -1(%r8)
	jne	LBB0_10
LBB0_12:
	movq	%r15, %rcx
	subq	%rax, %rcx
	incq	%rcx
	addq	(%r14), %r15
	cmpq	$7, %rcx
	ja	LBB0_15
## %bb.13:
	movl	$2, %edx
	subq	%rax, %rdx
	movq	%r15, %rdi
	movq	%r8, %rsi
	callq	_memcpy
	movq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_isdir
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	_USER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_display_log                    ## TAILCALL
LBB0_15:
	movb	$0, (%r15)
	movq	_USER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_display_log                    ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERNAL_ERROR,4,2             ## @INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NULL name to makename"

L_.str.1:                               ## @.str.1
	.asciz	"infile with trailing /"

	.comm	_USER_ERROR,4,2                 ## @USER_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"%s: output file is a directory"

L_.str.3:                               ## @.str.3
	.asciz	"%s%s: output file name too long"

L_.str.4:                               ## @.str.4
	.asciz	"%s: output directory name too long"

	.no_dead_strip	_makename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makename
_makename:                              ; @makename
	.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	x19, x0
	ldr	x8, [x0]
	strb	wzr, [x8]
	cbz	x1, LBB0_14
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_14
; %bb.2:
	mov	x23, x1
	mov	x0, x1
	bl	_strlen
	cmp	x0, #6
	b.hi	LBB0_15
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	add	x8, x0, x20
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_display_log
LBB0_5:
	ldr	x0, [x19]
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	cbz	x21, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	add	x9, x21, x8
	ldurb	w9, [x9, #-1]
	cmp	w9, #47
	b.eq	LBB0_8
; %bb.7:
	mov	w9, #47
	strb	w9, [x8, x21]
	add	x21, x21, #1
LBB0_8:
	mov	x11, #0
	add	x9, x20, x22
	mov	w8, #1
	sub	x10, x8, x22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x11
	cmp	x10, x11
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x9, x8
	ldurb	w12, [x11, #-2]
	sub	x11, x8, #1
	cmp	w12, #47
	b.ne	LBB0_9
LBB0_11:
	add	x9, x20, x22
	add	x9, x9, x8
	sub	x1, x9, #1
	sub	x9, x21, x8
	add	x9, x9, #1
	ldr	x10, [x19]
	add	x0, x10, x21
	cmp	x9, #7
	b.hi	LBB0_17
; %bb.12:
	mov	w9, #2
	sub	x2, x9, x8
	bl	_memcpy
	ldr	x1, [x19]
	mov	x0, x19
	bl	_isdir
	cbz	x0, LBB0_19
; %bb.13:
Lloh5:
	adrp	x8, _USER_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USER_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh10:
	adrp	x8, _INTERNAL_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INTERNAL_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_display_log
LBB0_15:
Lloh15:
	adrp	x8, _USER_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USER_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_16:
	mov	x0, x19
	b	LBB0_18
LBB0_17:
	strb	wzr, [x0]
Lloh20:
	adrp	x8, _USER_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _USER_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	x9, [x19]
	stp	x9, x1, [sp]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x8
LBB0_18:
	bl	_display_log
LBB0_19:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERNAL_ERROR,4,2             ; @INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NULL name to makename"

l_.str.1:                               ; @.str.1
	.asciz	"infile with trailing /"

	.comm	_USER_ERROR,4,2                 ; @USER_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"%s: output file is a directory"

l_.str.3:                               ; @.str.3
	.asciz	"%s%s: output file name too long"

l_.str.4:                               ; @.str.4
	.asciz	"%s: output directory name too long"

	.no_dead_strip	_makename
.subsections_via_symbols
