	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlg_fm_vidioc_g_tuner
_tlg_fm_vidioc_g_tuner:                 ## @tlg_fm_vidioc_g_tuner
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	cmpq	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_2:
	movq	%rdx, %r14
	movq	(%rdi), %r12
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rdx)
	movq	_V4L2_TUNER_CAP_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdx)
	movq	_TUNER_FREQ_MIN_FM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$14, %eax
	addl	%ecx, %eax
	movl	%eax, 8(%rdx)
	movq	_TUNER_FREQ_MAX_FM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$14, %eax
	addl	%ecx, %eax
	movl	%eax, 12(%rdx)
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdx)
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdx)
	movl	$0, 16(%rdx)
	movq	$0, 24(%rdx)
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_TUNER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLG_MODE_FM_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	$32, %r9d
	callq	_send_get_req
	movl	%eax, %ebx
	cmpq	$0, -72(%rbp)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.3:
	movl	$-5, %r14d
	leaq	-96(%rbp), %r15
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_schedule_timeout
	movq	_TUNER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLG_MODE_FM_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rcx
	movq	%r13, %r8
	movl	$32, %r9d
	callq	_send_get_req
	movl	%eax, %ebx
	incl	%r14d
	cmpq	$0, -72(%rbp)
	jne	LBB0_4
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	orl	-44(%rbp), %ebx
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 16(%rax)
	jmp	LBB0_13
LBB0_9:
	movq	-80(%rbp), %rcx
	movl	-96(%rbp), %eax
	orq	-88(%rbp), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_12
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	$65535, 16(%rdx)                ## imm = 0xFFFF
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$34, %rax
	addl	%ecx, %eax
	shll	$8, %eax
	movl	%eax, 16(%rdx)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_TUNER_RADIO,4,2           ## @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ## @V4L2_TUNER_CAP_STEREO
	.comm	_TUNER_FREQ_MIN_FM,4,2          ## @TUNER_FREQ_MIN_FM
	.comm	_TUNER_FREQ_MAX_FM,4,2          ## @TUNER_FREQ_MAX_FM
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_TUNER_STATUS,4,2               ## @TUNER_STATUS
	.comm	_TLG_MODE_FM_RADIO,4,2          ## @TLG_MODE_FM_RADIO
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_tlg_fm_vidioc_g_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlg_fm_vidioc_g_tuner
_tlg_fm_vidioc_g_tuner:                 ; @tlg_fm_vidioc_g_tuner
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldr	x8, [x2]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_2:
	mov	x19, x2
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V4L2_TUNER_CAP_STEREO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_TUNER_CAP_STEREO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #40]
Lloh9:
	adrp	x8, _TUNER_FREQ_MIN_FM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TUNER_FREQ_MIN_FM@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x10, x8, #32
	lsr	x8, x8, #63
Lloh12:
	adrp	x11, _TUNER_FREQ_MAX_FM@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TUNER_FREQ_MAX_FM@GOTPAGEOFF]
	add	w8, w8, w10, asr #14
Lloh14:
	ldrsw	x10, [x11]
	mul	x9, x10, x9
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #14
	stp	w8, w9, [x2, #8]
Lloh15:
	adrp	x8, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh17:
	adrp	x9, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #32]
	str	wzr, [x2, #16]
	str	xzr, [x2, #24]
	mov	x0, x20
	bl	_mutex_lock
Lloh21:
	adrp	x22, _TUNER_STATUS@GOTPAGE
Lloh22:
	ldr	x22, [x22, _TUNER_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh23:
	adrp	x23, _TLG_MODE_FM_RADIO@GOTPAGE
Lloh24:
	ldr	x23, [x23, _TLG_MODE_FM_RADIO@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x20
	mov	w5, #32
	bl	_send_get_req
	mov	x21, x0
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_13
; %bb.3:
	cbnz	w21, LBB0_13
; %bb.4:
Lloh25:
	adrp	x24, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh26:
	ldr	x24, [x24, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_set_current_state
Lloh27:
	adrp	x25, _HZ@GOTPAGE
Lloh28:
	ldr	x25, [x25, _HZ@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_schedule_timeout
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x20
	mov	w5, #32
	bl	_send_get_req
	mov	x21, x0
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_13
; %bb.5:
	cbnz	w21, LBB0_13
; %bb.6:
	ldr	w0, [x24]
	bl	_set_current_state
	ldr	w0, [x25]
	bl	_schedule_timeout
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x20
	mov	w5, #32
	bl	_send_get_req
	mov	x21, x0
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_13
; %bb.7:
	cbnz	w21, LBB0_13
; %bb.8:
	ldr	w0, [x24]
	bl	_set_current_state
	ldr	w0, [x25]
	bl	_schedule_timeout
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x20
	mov	w5, #32
	bl	_send_get_req
	mov	x21, x0
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_13
; %bb.9:
	cbnz	w21, LBB0_13
; %bb.10:
	ldr	w0, [x24]
	bl	_set_current_state
	ldr	w0, [x25]
	bl	_schedule_timeout
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x20
	mov	w5, #32
	bl	_send_get_req
	mov	x21, x0
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_13
; %bb.11:
	cbnz	w21, LBB0_13
; %bb.12:
	ldr	w0, [x24]
	bl	_set_current_state
	ldr	w0, [x25]
	bl	_schedule_timeout
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x20
	mov	w5, #32
	bl	_send_get_req
	mov	x21, x0
LBB0_13:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [sp, #12]
	orr	w8, w21, w8
	cbz	w8, LBB0_15
; %bb.14:
	mov	w0, #0
	str	wzr, [x19, #16]
	b	LBB0_20
LBB0_15:
	ldp	x10, x9, [sp, #24]
	ldr	w8, [sp, #16]
	orr	x9, x9, x10
	cbz	x9, LBB0_18
; %bb.16:
	cbnz	w8, LBB0_18
; %bb.17:
	mov	w0, #0
	mov	w8, #65535
	b	LBB0_19
LBB0_18:
	mov	w0, #0
	lsl	w9, w8, #8
	sub	w8, w9, w8
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	lsl	w8, w8, #8
LBB0_19:
	str	w8, [x19, #16]
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_TUNER_RADIO,4,2           ; @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ; @V4L2_TUNER_CAP_STEREO
	.comm	_TUNER_FREQ_MIN_FM,4,2          ; @TUNER_FREQ_MIN_FM
	.comm	_TUNER_FREQ_MAX_FM,4,2          ; @TUNER_FREQ_MAX_FM
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_TUNER_STATUS,4,2               ; @TUNER_STATUS
	.comm	_TLG_MODE_FM_RADIO,4,2          ; @TLG_MODE_FM_RADIO
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_tlg_fm_vidioc_g_tuner
.subsections_via_symbols
