	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_freq_min_get
_ctrl_freq_min_get:                     ## @ctrl_freq_min_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pvr2_hdw_status_poll
LBB0_2:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	_V4L2_TUNER_CAP_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imulq	$125, %rcx, %rax
	shrq	%rax
	imull	$62500, %ecx, %ecx              ## imm = 0xF424
	testl	%edx, 8(%rbx)
	cmovel	%ecx, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_TV_MIN_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TV_MIN_FREQ,4,2                ## @TV_MIN_FREQ
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ## @V4L2_TUNER_CAP_LOW
	.no_dead_strip	_ctrl_freq_min_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_freq_min_get
_ctrl_freq_min_get:                     ; @ctrl_freq_min_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pvr2_hdw_status_poll
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w9, [x20, #8]
Lloh0:
	adrp	x10, _V4L2_TUNER_CAP_LOW@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_TUNER_CAP_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mov	w11, #125
	mul	x11, x8, x11
	lsr	x11, x11, #1
	mov	w12, #62500
	mul	w8, w8, w12
	tst	w10, w9
	csel	w8, w8, w11, eq
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _TV_MIN_FREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TV_MIN_FREQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_5:
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TV_MIN_FREQ,4,2                ; @TV_MIN_FREQ
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ; @V4L2_TUNER_CAP_LOW
	.no_dead_strip	_ctrl_freq_min_get
.subsections_via_symbols
