	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_check_input
_ctrl_check_input:                      ## @ctrl_check_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	testl	%esi, %esi
	js	LBB0_3
## %bb.1:
	movq	_PVR2_CVAL_INPUT_MAX@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jl	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	btq	%rsi, %rcx
	setb	%al
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_CVAL_INPUT_MAX,4,2        ## @PVR2_CVAL_INPUT_MAX
	.no_dead_strip	_ctrl_check_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_check_input
_ctrl_check_input:                      ; @ctrl_check_input
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x8, x0
	mov	w0, #0
	tbnz	w1, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _PVR2_CVAL_INPUT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PVR2_CVAL_INPUT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w1
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	lsr	x8, x8, x1
	and	w0, w8, #0x1
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_CVAL_INPUT_MAX,4,2        ; @PVR2_CVAL_INPUT_MAX
	.no_dead_strip	_ctrl_check_input
.subsections_via_symbols
