	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_addr_range               ## -- Begin function check_addr_range
	.p2align	4, 0x90
_check_addr_range:                      ## @check_addr_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_addr_cnt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_first_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_second_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edi, %edi
	jg	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movq	_first_addr@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_second_addr@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	testl	%edi, %edi
	jle	LBB0_6
LBB0_4:
	cmpl	%esi, %edi
	jg	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	movq	_addr_last@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jg	LBB0_6
## %bb.7:
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rax
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_addr_cnt,8,3                   ## @addr_cnt
	.comm	_first_addr,4,2                 ## @first_addr
	.comm	_second_addr,4,2                ## @second_addr
	.comm	_addr_last,4,2                  ## @addr_last
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid address"

	.comm	_errmsg,8,3                     ## @errmsg
	.comm	_ERR,4,2                        ## @ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_addr_range               ; -- Begin function check_addr_range
	.p2align	2
_check_addr_range:                      ; @check_addr_range
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _addr_cnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _addr_cnt@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _first_addr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _first_addr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _second_addr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _second_addr@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _first_addr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _first_addr@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
Lloh12:
	adrp	x8, _second_addr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _second_addr@GOTPAGEOFF]
Lloh14:
	str	w1, [x8]
LBB0_3:
Lloh15:
	adrp	x8, _addr_last@GOTPAGE
Lloh16:
	ldr	x8, [x8, _addr_last@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, #1
	ccmp	w0, w1, #0, ge
	ccmp	w1, w8, #0, le
	b.le	LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _errmsg@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh20:
	adrp	x9, l_.str@PAGE
Lloh21:
	add	x9, x9, l_.str@PAGEOFF
Lloh22:
	str	x9, [x8]
Lloh23:
	adrp	x8, _ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_addr_cnt,8,3                   ; @addr_cnt
	.comm	_first_addr,4,2                 ; @first_addr
	.comm	_second_addr,4,2                ; @second_addr
	.comm	_addr_last,4,2                  ; @addr_last
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid address"

	.comm	_errmsg,8,3                     ; @errmsg
	.comm	_ERR,4,2                        ; @ERR
.subsections_via_symbols
