	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___strncat_chk                  ## -- Begin function __strncat_chk
	.p2align	4, 0x90
___strncat_chk:                         ## @__strncat_chk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	-2(%rdi), %rbx
	incq	%r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %r13
	decq	%r12
	cmpb	$0, 2(%rbx)
	movq	%r13, %rbx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$1, %r12
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	___chk_fail
	jmp	LBB0_3
LBB0_4:
	movq	%r14, %rbx
	cmpq	$4, %r14
	jb	LBB0_23
## %bb.5:
	shrq	$2, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_34
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r15), %eax
	movb	%al, 1(%r13)
	testb	%al, %al
	je	LBB0_33
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$1, %r12
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	___chk_fail
	movq	$-2, %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	___chk_fail
	movzbl	(%r15), %ecx
	movb	%cl, 1(%r13)
	movq	$-2, %rax
	testb	%cl, %cl
	jne	LBB0_11
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	-2(%r12), %rax
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	1(%r15), %ecx
	movb	%cl, 2(%r13)
	testb	%cl, %cl
	je	LBB0_33
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	___chk_fail
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	2(%r15), %eax
	movb	%al, 3(%r13)
	testb	%al, %al
	je	LBB0_33
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$3, %r12
	je	LBB0_35
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	3(%r15), %eax
	movb	%al, 4(%r13)
	testb	%al, %al
	je	LBB0_33
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$4, %r12
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$-5, %r12
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	___chk_fail
	movzbl	3(%r15), %eax
	movb	%al, 4(%r13)
	movq	$-2, %r12
	testb	%al, %al
	jne	LBB0_20
	jmp	LBB0_33
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	___chk_fail
	movq	$-1, %r12
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	4(%r15), %eax
	movb	%al, 5(%r13)
	testb	%al, %al
	je	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$5, %r13
	addq	$5, %r15
	decq	%rbx
	jne	LBB0_6
## %bb.22:
	movl	%r14d, %ebx
	andl	$3, %ebx
LBB0_23:
	testq	%rbx, %rbx
	je	LBB0_36
## %bb.24:
	movq	%r12, %rax
	subq	%rbx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %r12
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	xorl	%eax, %eax
	callq	___chk_fail
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	movzbl	(%r15,%r14), %eax
	movb	%al, 1(%r13,%r14)
	testb	%al, %al
	je	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_25
## %bb.29:
	addq	%r14, %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_36:
	cmpq	$3, %r14
	jbe	LBB0_33
LBB0_30:
	testq	%r12, %r12
	jne	LBB0_32
## %bb.31:
	xorl	%eax, %eax
	callq	___chk_fail
LBB0_32:
	movb	$0, 1(%r13)
LBB0_33:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	___strncat_chk                  ; -- Begin function __strncat_chk
	.p2align	2
___strncat_chk:                         ; @__strncat_chk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x23, #0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x19, x23]
	add	x23, x23, #1
	cbz	w8, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x23
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	___chk_fail
	b	LBB0_1
LBB0_4:
	add	x24, x19, x23
	sub	x8, x22, x23
	add	x22, x8, #1
	cmp	x21, #4
	b.lo	LBB0_31
; %bb.5:
	mov	x25, #0
	lsr	x26, x21, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20, x25]
	add	x9, x24, x25
	sturb	w8, [x9, #-1]
	cbz	w8, LBB0_30
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x22, #1
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	___chk_fail
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	___chk_fail
	ldrb	w8, [x20, x25]
	add	x9, x24, x25
	sturb	w8, [x9, #-1]
	cbz	w8, LBB0_30
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #-2
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x22, #2
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x20, x25
	ldrb	w9, [x27, #1]
	strb	w9, [x24, x25]
	cbz	w9, LBB0_30
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	___chk_fail
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x27, #2]
	add	x9, x19, x25
	add	x9, x9, x23
	strb	w8, [x9, #1]
	cbz	w8, LBB0_30
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x20, x25
	cmp	x22, #3
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x27, #3]
	add	x9, x19, x25
	add	x9, x9, x23
	strb	w8, [x9, #2]
	cbz	w8, LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x22, #4
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x22, x22, #5
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	___chk_fail
	ldrb	w8, [x27, #3]
	add	x9, x19, x25
	add	x9, x9, x23
	strb	w8, [x9, #2]
	cbz	w8, LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, #-2
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	___chk_fail
	mov	x22, #-1
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x20, x25
	ldrb	w8, [x8, #4]
	add	x9, x24, x25
	strb	w8, [x9, #3]
	cbz	w8, LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #5
	subs	x26, x26, #1
	b.ne	LBB0_6
; %bb.26:
	and	x24, x21, #0x3
	add	x20, x20, x25
	add	x8, x19, x23
	add	x8, x8, x25
	sub	x23, x8, #2
	cbnz	x24, LBB0_32
LBB0_27:
	cmp	x21, #4
	b.lo	LBB0_30
; %bb.28:
	cbz	x22, LBB0_38
LBB0_29:
	strb	wzr, [x23, #1]
LBB0_30:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	sub	x23, x24, #2
	mov	x24, x21
	cbz	x24, LBB0_27
LBB0_32:
	sub	x21, x22, x24
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	cbnz	x22, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	bl	___chk_fail
LBB0_35:                                ;   in Loop: Header=BB0_33 Depth=1
	ldrb	w8, [x20]
	strb	w8, [x23, #1]!
	cbz	w8, LBB0_30
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	add	x20, x20, #1
	sub	x22, x22, #1
	sub	x24, x24, #1
	cbnz	x24, LBB0_33
; %bb.37:
	mov	x22, x21
	cbnz	x22, LBB0_29
LBB0_38:
	bl	___chk_fail
	b	LBB0_29
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
