	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_hdw_set_cur_freq
_pvr2_hdw_set_cur_freq:                 ## @pvr2_hdw_set_cur_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_PVR2_CVAL_INPUT_RADIO@GOTPCREL(%rip), %rdx
	movl	8(%rdi), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 8(%rdi)
LBB0_3:
	cmpq	%rsi, 16(%rdi)
	je	LBB0_10
## %bb.4:
	movq	%rsi, 16(%rdi)
	leaq	40(%rdi), %rax
	jmp	LBB0_9
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	cmpq	%rsi, 24(%rdi)
	jne	LBB0_8
LBB0_10:
	popq	%rbp
	retq
LBB0_6:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rdi)
	cmpq	%rsi, 24(%rdi)
	je	LBB0_10
LBB0_8:
	movq	%rsi, 24(%rdi)
	leaq	32(%rdi), %rax
LBB0_9:
	movq	$0, (%rax)
	movl	$1, 12(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_CVAL_INPUT_RADIO,8,3      ## @PVR2_CVAL_INPUT_RADIO
	.no_dead_strip	_pvr2_hdw_set_cur_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pvr2_hdw_set_cur_freq
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pvr2_hdw_set_cur_freq:                 ; @pvr2_hdw_set_cur_freq
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _PVR2_CVAL_INPUT_RADIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_CVAL_INPUT_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x0, #8]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.1:
	cbz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #8]
LBB0_3:
	ldr	x8, [x0, #16]
	cmp	x8, x1
	b.eq	LBB0_10
; %bb.4:
	str	x1, [x0, #16]
	add	x8, x0, #40
	b	LBB0_9
LBB0_5:
	cbnz	w8, LBB0_7
; %bb.6:
	movi.2s	v0, #1
	str	d0, [x0, #8]
LBB0_7:
	ldr	x8, [x0, #24]
	cmp	x8, x1
	b.eq	LBB0_10
; %bb.8:
	str	x1, [x0, #24]
	add	x8, x0, #32
LBB0_9:
	str	xzr, [x8]
	mov	w8, #1
	str	w8, [x0, #12]
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_CVAL_INPUT_RADIO,8,3      ; @PVR2_CVAL_INPUT_RADIO
	.no_dead_strip	_pvr2_hdw_set_cur_freq
.subsections_via_symbols
