	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chnamefunc                     ## -- Begin function chnamefunc
	.p2align	4, 0x90
_chnamefunc:                            ## @chnamefunc
	.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
	movq	8(%rdi), %r14
	movq	_slotcount@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	_desired@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_strlen
	movl	%eax, -20(%rbp)
	movq	_NEWDIRFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_DIRSIZ
	cmpq	(%r14), %rax
	jle	LBB0_4
## %bb.2:
	movq	_STOP@GOTPCREL(%rip), %rcx
	movq	_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	movq	_KEEPON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movl	-20(%rbp), %eax
	movl	%eax, 12(%r14)
	movl	8(%r14), %edi
	movl	(%rbx), %esi
	callq	_strcpy
	movq	_STOP@GOTPCREL(%rip), %rcx
	movq	_ALTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_FOUND@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_slotcount,4,2                  ## @slotcount
	.comm	_desired,8,3                    ## @desired
	.comm	_NEWDIRFMT,4,2                  ## @NEWDIRFMT
	.comm	_STOP,4,2                       ## @STOP
	.comm	_ALTERED,4,2                    ## @ALTERED
	.comm	_FOUND,4,2                      ## @FOUND
	.comm	_KEEPON,4,2                     ## @KEEPON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chnamefunc                     ; -- Begin function chnamefunc
	.p2align	2
_chnamefunc:                            ; @chnamefunc
	.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
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _slotcount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slotcount@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
Lloh2:
	adrp	x8, _desired@GOTPAGE
Lloh3:
	ldr	x8, [x8, _desired@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
	bl	_strlen
	str	w0, [sp, #12]
Lloh5:
	adrp	x8, _NEWDIRFMT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NEWDIRFMT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_DIRSIZ
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _STOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STOP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FOUND@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FOUND@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _KEEPON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEEPON@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #12]
	str	w8, [x20, #12]
	ldr	w0, [x20, #8]
	ldr	w1, [x19]
	bl	_strcpy
Lloh17:
	adrp	x8, _STOP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STOP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ALTERED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ALTERED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _FOUND@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FOUND@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_slotcount,4,2                  ; @slotcount
	.comm	_desired,8,3                    ; @desired
	.comm	_NEWDIRFMT,4,2                  ; @NEWDIRFMT
	.comm	_STOP,4,2                       ; @STOP
	.comm	_ALTERED,4,2                    ; @ALTERED
	.comm	_FOUND,4,2                      ; @FOUND
	.comm	_KEEPON,4,2                     ; @KEEPON
.subsections_via_symbols
