	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simplify
_simplify:                              ## @simplify
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %r15
	leaq	1(%rax), %rsi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mbstowcs
	cmpq	$-1, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdx
	testq	%rax, %rax
	jne	LBB0_13
LBB0_5:
	movb	$0, (%rdx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_wcstombs
	cmpq	$-1, %rax
	jne	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rbx
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%rbx, %rdi
	callq	_free
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %r8
	incq	%r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rdx
	incl	%esi
	movslq	%esi, %rdi
	cmpq	%rdi, %rax
	jbe	LBB0_5
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movb	(%rbx,%rdi), %cl
	movb	%cl, (%rdx)
	cmpb	$47, (%rbx,%rdi)
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	%esi, %rdi
	leal	-1(%rdi), %esi
	addq	%r8, %rdi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%esi
	cmpb	$47, (%rdi)
	leaq	1(%rdi), %rdi
	je	LBB0_17
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_simplify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simplify
_simplify:                              ; @simplify
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_7
; %bb.1:
	bl	_strdup
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	add	x1, x0, #1
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	x1, x19
	mov	x2, x21
	bl	_mbstowcs
	cmn	x0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x9, x20
	cbnz	x0, LBB0_12
LBB0_5:
	strb	wzr, [x9]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_wcstombs
	cmn	x0, #1
	b.ne	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_free
	b	LBB0_9
LBB0_7:
	mov	x19, #0
	b	LBB0_11
LBB0_8:
	mov	x20, x19
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x20
	bl	_free
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x11, #0
	mov	w10, #0
	add	x8, x20, #1
	mov	x9, x20
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w10, w10, #1
	sxtw	x11, w10
	cmp	x0, x11
	b.ls	LBB0_5
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldrb	w12, [x20, x11]
	strb	w12, [x9], #1
	ldrb	w11, [x20, x11]
	cmp	w11, #47
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x11, x8, w10, sxtw
	sub	w10, w10, #1
                                        ; kill: def $w10 killed $w10 def $x10
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x11], #1
	add	w10, w10, #1
	cmp	w12, #47
	b.eq	LBB0_16
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_simplify
.subsections_via_symbols
