	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_safecat                    ## -- Begin function png_safecat
	.p2align	4, 0x90
_png_safecat:                           ## @png_safecat
	.cfi_startproc
## %bb.0:
	movq	%rdx, %rax
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	cmpq	%rsi, %rax
	jae	LBB0_9
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	movb	(%rcx), %dl
	testb	%dl, %dl
	je	LBB0_8
## %bb.4:
	decq	%rsi
	cmpq	%rax, %rsi
	jbe	LBB0_8
## %bb.5:
	incq	%rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movb	%dl, (%rdi,%rax)
	incq	%rax
	movzbl	(%rcx), %edx
	testb	%dl, %dl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rsi, %rax
	jb	LBB0_6
LBB0_8:
	movb	$0, (%rdi,%rax)
	popq	%rbp
LBB0_9:
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_safecat                    ; -- Begin function png_safecat
	.p2align	2
_png_safecat:                           ; @png_safecat
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	cmp	x2, x1
	b.hs	LBB0_9
; %bb.2:
	cbz	x3, LBB0_7
; %bb.3:
	ldrb	w8, [x3]
	cbz	w8, LBB0_7
; %bb.4:
	sub	x9, x1, #1
	cmp	x9, x2
	b.ls	LBB0_7
; %bb.5:
	add	x10, x3, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	strb	w8, [x0, x2]
	add	x11, x2, #1
	ldrb	w8, [x10], #1
	cmp	w8, #0
	ccmp	x11, x9, #2, ne
	mov	x2, x11
	b.lo	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	x11, x2
LBB0_8:
	strb	wzr, [x0, x11]
	mov	x2, x11
LBB0_9:
	mov	x0, x2
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
