	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ## -- Begin function check
	.p2align	4, 0x90
_check:                                 ## @check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	leaq	L_.str(%rip), %rdi
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	_msgCount@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jl	LBB0_5
## %bb.2:
	movq	_MDELETED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	cmpl	%esi, %edx
	je	LBB0_6
## %bb.3:
	movq	_message@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	leal	-1(%rcx), %edi
	testl	%edx, (%rsi,%rdi,4)
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	movl	%ecx, %esi
	callq	_printf
	movl	$-1, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msgCount,4,2                   ## @msgCount
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: Invalid message number\n"

	.comm	_message,8,3                    ## @message
	.comm	_MDELETED,4,2                   ## @MDELETED
L_.str.1:                               ## @.str.1
	.asciz	"%d: Inappropriate message\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ; -- Begin function check
	.p2align	2
_check:                                 ; @check
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	subs	w9, w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh2:
	adrp	x10, _msgCount@GOTPAGE
Lloh3:
	ldr	x10, [x10, _msgCount@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w10, w8
	b.lt	LBB0_5
; %bb.2:
Lloh5:
	adrp	x10, _MDELETED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MDELETED@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w10, w1
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x11, _message@GOTPAGE
Lloh9:
	ldr	x11, [x11, _message@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	ldr	w9, [x11, w9, uxtw #2]
	tst	w9, w10
	b.eq	LBB0_6
; %bb.4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x8
	bl	_printf
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_msgCount,4,2                   ; @msgCount
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: Invalid message number\n"

	.comm	_message,8,3                    ; @message
	.comm	_MDELETED,4,2                   ; @MDELETED
l_.str.1:                               ; @.str.1
	.asciz	"%d: Inappropriate message\n"

.subsections_via_symbols
