	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem_trunc
_mem_trunc:                             ## @mem_trunc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	cmpq	%rsi, (%rcx)
	jae	LBB0_2
## %bb.1:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, (%rcx)
	movq	8(%rcx), %rdi
	movq	16(%rcx), %rdx
	subq	%rdx, %rdi
	xorl	%eax, %eax
	cmpq	%rsi, %rdi
	jbe	LBB0_4
## %bb.3:
	addq	%rsi, %rdx
	movq	%rdx, 8(%rcx)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_mem_trunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem_trunc
_mem_trunc:                             ; @mem_trunc
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x8]
	cmp	x9, x1
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_2:
	str	x1, [x8]
	ldp	x10, x9, [x8, #8]
	sub	x10, x10, x9
	cmp	x10, x1
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #0
	add	x9, x9, x1
	str	x9, [x8, #8]
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_mem_trunc
.subsections_via_symbols
