	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memset_s                       ## -- Begin function memset_s
	.p2align	4, 0x90
_memset_s:                              ## @memset_s
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%rsi, %rcx
	movq	%rsi, %rax
	cmovlq	%rcx, %rax
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_RSIZE_MAX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	cmpq	%rsi, %rbx
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_14
LBB0_4:
	cmpq	%rcx, %rbx
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_6:
	testq	%rax, %rax
	jle	LBB0_12
## %bb.7:
	leaq	-1(%rax), %r8
	movq	%rax, %rbx
	andq	$7, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movb	%dl, -1(%rdi,%rax)
	decq	%rax
	decq	%rbx
	jne	LBB0_8
LBB0_9:
	cmpq	$7, %r8
	jb	LBB0_12
## %bb.10:
	incq	%rax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movb	%dl, -2(%rdi,%rax)
	movb	%dl, -3(%rdi,%rax)
	movb	%dl, -4(%rdi,%rax)
	movb	%dl, -5(%rdi,%rax)
	movb	%dl, -6(%rdi,%rax)
	movb	%dl, -7(%rdi,%rax)
	movb	%dl, -8(%rdi,%rax)
	movb	%dl, -9(%rdi,%rax)
	addq	$-8, %rax
	cmpq	$1, %rax
	ja	LBB0_11
LBB0_12:
	cmpq	%rsi, %rcx
	jle	LBB0_16
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
LBB0_14:
	movq	%r14, %rsi
	callq	___throw_constraint_handler_s
LBB0_15:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memset_s : s is NULL"

	.comm	_RSIZE_MAX,8,3                  ## @RSIZE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"memset_s : smax > RSIZE_MAX"

L_.str.2:                               ## @.str.2
	.asciz	"memset_s : n > RSIZE_MAX"

L_.str.3:                               ## @.str.3
	.asciz	"memset_s : n > smax"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memset_s                       ; -- Begin function memset_s
	.p2align	2
_memset_s:                              ; @memset_s
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cmp	x3, x1
	csel	x8, x3, x1, lt
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _RSIZE_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RSIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x1
	b.ge	LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_4:
	cmp	x9, x3
	b.ge	LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	sub	x9, x0, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	strb	w2, [x9, x8]
	subs	x8, x8, #1
	b.hi	LBB0_8
LBB0_9:
	cmp	x3, x1
	b.le	LBB0_13
; %bb.10:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	mov	x1, x19
	bl	___throw_constraint_handler_s
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x19, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memset_s : s is NULL"

	.comm	_RSIZE_MAX,8,3                  ; @RSIZE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"memset_s : smax > RSIZE_MAX"

l_.str.2:                               ; @.str.2
	.asciz	"memset_s : n > RSIZE_MAX"

l_.str.3:                               ; @.str.3
	.asciz	"memset_s : n > smax"

.subsections_via_symbols
