	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_mode_freq
_set_mode_freq:                         ## @set_mode_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	cmpl	%edx, (%rsi)
	je	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_check_mode
	movq	_EINVAL@GOTPCREL(%rip), %r13
	addl	(%r13), %eax
	jne	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_tuner_dbg
	movl	$1, 4(%r12)
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	$16, %r12
	movq	%r12, %rdi
	callq	*%rax
LBB0_4:
	xorl	%eax, %eax
	subl	(%r13), %eax
	jmp	LBB0_16
LBB0_5:
	movl	%ebx, (%r12)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_tuner_dbg
	movl	(%r12), %ebx
LBB0_6:
	movslq	%ebx, %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_11
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.9:
	movl	%r14d, 8(%r12)
	jmp	LBB0_10
LBB0_11:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.13:
	movl	%r14d, 12(%r12)
	jmp	LBB0_14
LBB0_8:
	movl	8(%r12), %r14d
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_set_radio_freq
	jmp	LBB0_15
LBB0_12:
	movl	12(%r12), %r14d
LBB0_14:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_set_tv_freq
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tuner doesn't support mode %d. Putting tuner to sleep\n"

L_.str.1:                               ## @.str.1
	.asciz	"Changing to mode %d\n"

	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.no_dead_strip	_set_mode_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_mode_freq
_set_mode_freq:                         ; @set_mode_freq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x23, x1
	ldr	w8, [x23], #16
	cmp	w8, w2
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_check_mode
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x24]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_tuner_dbg
	mov	w8, #1
	str	w8, [x21, #4]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x23
	blr	x8
LBB0_4:
	ldr	w8, [x24]
	neg	w0, w8
	b	LBB0_16
LBB0_5:
	str	w22, [x21]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_tuner_dbg
	ldr	w22, [x21]
LBB0_6:
Lloh6:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, w22, sxtw
	b.ne	LBB0_9
; %bb.7:
	cbz	w19, LBB0_11
; %bb.8:
	str	w19, [x21, #8]
	b	LBB0_12
LBB0_9:
	cbz	w19, LBB0_13
; %bb.10:
	str	w19, [x21, #12]
	b	LBB0_14
LBB0_11:
	ldr	w19, [x21, #8]
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_set_radio_freq
	b	LBB0_15
LBB0_13:
	ldr	w19, [x21, #12]
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_set_tv_freq
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tuner doesn't support mode %d. Putting tuner to sleep\n"

l_.str.1:                               ; @.str.1
	.asciz	"Changing to mode %d\n"

	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.no_dead_strip	_set_mode_freq
.subsections_via_symbols
