	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_mem_region
_create_mem_region:                     ## @create_mem_region
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpq	%rsi, %rdi
	jl	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.14:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_15
LBB0_2:
	movq	_mem_region_chain@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rax), %rax
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rcx
	cmpq	%r15, %rcx
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rdx
	cmpq	%r15, %rdx
	jg	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdx, %rdx
	je	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rdx
	cmpq	%rbx, %rdx
	jge	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdx, %rdx
	je	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %rcx
	jl	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, 8(%rax)
	jg	LBB0_16
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
LBB0_15:
	callq	_printf_unfiltered
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_17:
	movl	$48, %edi
	callq	_xmalloc
	movq	%r15, (%rax)
	movq	%rbx, 8(%rax)
	movq	_mem_number@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	incq	%rdx
	movq	%rdx, (%rcx)
	movq	%rdx, 40(%rax)
	movl	$1, 16(%rax)
	movl	(%r14), %ecx
	movl	%ecx, 32(%rax)
	movq	(%r12), %rcx
	movq	%rcx, 24(%rax)
	movq	%rax, (%r12)
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid memory region: low >= high\n"

	.comm	_mem_region_chain,8,3           ## @mem_region_chain
L_.str.1:                               ## @.str.1
	.asciz	"overlapping memory region\n"

	.comm	_mem_number,8,3                 ## @mem_number
	.no_dead_strip	_create_mem_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_mem_region
_create_mem_region:                     ; @create_mem_region
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x0, x1
	b.lt	LBB0_3
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_3:
Lloh2:
	adrp	x22, _mem_region_chain@GOTPAGE
Lloh3:
	ldr	x22, [x22, _mem_region_chain@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_6
LBB0_4:
	mov	w0, #48
	bl	_xmalloc
Lloh4:
	adrp	x8, _mem_number@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mem_number@GOTPAGEOFF]
	stp	x21, x20, [x0]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	str	x9, [x0, #40]
	mov	w8, #1
	str	w8, [x0, #16]
	ldr	w8, [x19]
	str	w8, [x0, #32]
	ldr	x8, [x22]
	str	x8, [x0, #24]
	str	x0, [x22]
	b	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x9, x21
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x8, #8]
	cmp	x10, x21
	ccmp	x10, #0, #4, le
	b.eq	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, x20
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x8, #8]
	cmp	x10, x20
	ccmp	x10, #0, #4, lt
	b.eq	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, x21
	b.lt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x20, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x8, #8]
	cmp	x9, x20
	b.gt	LBB0_5
LBB0_13:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_printf_unfiltered
	mov	x0, #0
LBB0_15:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid memory region: low >= high\n"

	.comm	_mem_region_chain,8,3           ; @mem_region_chain
l_.str.1:                               ; @.str.1
	.asciz	"overlapping memory region\n"

	.comm	_mem_number,8,3                 ; @mem_number
	.no_dead_strip	_create_mem_region
.subsections_via_symbols
