	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_catn                           ## -- Begin function catn
	.p2align	4, 0x90
_catn:                                  ## @catn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpb	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	testl	%edx, %edx
	movl	$1, %ecx
	cmovlel	%edx, %ecx
	decl	%ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %edx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%edx
	leaq	1(%rdi), %r8
	cmpb	$0, 1(%rdi)
	movq	%r8, %rdi
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	movq	%rdi, %r8
	jmp	LBB0_6
LBB0_4:
	movq	%rdi, %r8
	movl	%ecx, %edx
LBB0_6:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %edx
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	decl	%edx
	movzbl	(%rsi,%rcx), %eax
	movb	%al, (%r8,%rcx)
	incq	%rcx
	testb	%al, %al
	jne	LBB0_7
## %bb.10:
	popq	%rbp
	retq
LBB0_9:
	movb	$0, (%r8,%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_catn                           ; -- Begin function catn
	.p2align	2
_catn:                                  ; @catn
	.cfi_startproc
; %bb.0:
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w2, #1
	csinc	w8, w2, wzr, lt
	sub	w8, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w2, #2
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w2, #1
	ldrb	w9, [x0, #1]!
	cbnz	w9, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x2, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w2, #2
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w2, w2, #1
	ldrb	w8, [x1], #1
	strb	w8, [x0], #1
	cbnz	w8, LBB0_5
; %bb.7:
	ret
LBB0_8:
	strb	wzr, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
