	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q_strncpyz                     ## -- Begin function Q_strncpyz
	.p2align	4, 0x90
_Q_strncpyz:                            ## @Q_strncpyz
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
LBB0_4:
	testl	%r15d, %r15d
	jle	LBB0_5
LBB0_6:
	movslq	%r15d, %rbx
	leaq	-1(%rbx), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strncpy
	movb	$0, -1(%r12,%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
	testq	%r14, %r14
	jne	LBB0_4
LBB0_3:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
	testl	%r15d, %r15d
	jg	LBB0_6
LBB0_5:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_Com_Error
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Q_strncpyz: NULL dest"

L_.str.1:                               ## @.str.1
	.asciz	"Q_strncpyz: NULL src"

L_.str.2:                               ## @.str.2
	.asciz	"Q_strncpyz: destsize < 1"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q_strncpyz                     ; -- Begin function Q_strncpyz
	.p2align	2
_Q_strncpyz:                            ; @Q_strncpyz
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x20, LBB0_5
LBB0_2:
	cmp	w21, #0
	b.le	LBB0_6
LBB0_3:
	sxtw	x8, w21
	sub	x21, x8, #1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_strncpy
	strb	wzr, [x19, x21]
	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_4:
Lloh0:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	cbnz	x20, LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
	cmp	w21, #0
	b.gt	LBB0_3
LBB0_6:
Lloh10:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Com_Error
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Q_strncpyz: NULL dest"

l_.str.1:                               ; @.str.1
	.asciz	"Q_strncpyz: NULL src"

l_.str.2:                               ; @.str.2
	.asciz	"Q_strncpyz: destsize < 1"

.subsections_via_symbols
