	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_hdw_set_input
_pvr2_hdw_set_input:                    ## @pvr2_hdw_set_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%esi, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	%esi, (%rdi)
	movl	$1, 4(%rdi)
LBB0_2:
	movq	_PVR2_CVAL_INPUT_RADIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	jne	LBB0_3
LBB0_5:
	movl	%eax, 8(%rdi)
	movl	$1, 12(%rdi)
	jmp	LBB0_6
LBB0_3:
	movq	_PVR2_CVAL_INPUT_TV@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	%esi, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_PVR2_CVAL_INPUT_DTV@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_CVAL_INPUT_RADIO,4,2      ## @PVR2_CVAL_INPUT_RADIO
	.comm	_PVR2_CVAL_INPUT_TV,4,2         ## @PVR2_CVAL_INPUT_TV
	.comm	_PVR2_CVAL_INPUT_DTV,4,2        ## @PVR2_CVAL_INPUT_DTV
	.no_dead_strip	_pvr2_hdw_set_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_hdw_set_input
_pvr2_hdw_set_input:                    ; @pvr2_hdw_set_input
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #1
	stp	w1, w8, [x0]
LBB0_2:
Lloh0:
	adrp	x8, _PVR2_CVAL_INPUT_RADIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_CVAL_INPUT_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _PVR2_CVAL_INPUT_TV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVR2_CVAL_INPUT_TV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PVR2_CVAL_INPUT_DTV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PVR2_CVAL_INPUT_DTV@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_7
; %bb.5:
	mov	w8, #1
LBB0_6:
	mov	w9, #1
	stp	w8, w9, [x0, #8]
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_CVAL_INPUT_RADIO,4,2      ; @PVR2_CVAL_INPUT_RADIO
	.comm	_PVR2_CVAL_INPUT_TV,4,2         ; @PVR2_CVAL_INPUT_TV
	.comm	_PVR2_CVAL_INPUT_DTV,4,2        ; @PVR2_CVAL_INPUT_DTV
	.no_dead_strip	_pvr2_hdw_set_input
.subsections_via_symbols
