	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_tuner
_vidioc_g_tuner:                        ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r15
	movl	28(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movabsq	$7421703488880000, %rax         ## imm = 0x1A5E0000153D80
	movq	%rax, (%rbx)
	movl	(%r15), %edi
	movq	_ACI_READ_TUNERSTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_snd_aci_cmd
	xorl	%r14d, %r14d
	testb	$-128, %al
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovnel	%r14d, %eax
	movl	%eax, 8(%rbx)
	movl	(%r15), %edi
	movq	_ACI_READ_TUNERSTEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_snd_aci_cmd
	testb	$64, %al
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_TUNER_CAP_LOW@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_CAP_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_RDS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_RDS_CONTROLS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 20(%rbx)
	movl	(%r15), %edi
	movq	_RDS_RXVALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$1, %ecx
	callq	_rds_cmd
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	cmpq	$0, -32(%rbp)
	je	LBB0_8
## %bb.7:
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"FM"

	.comm	_V4L2_TUNER_RADIO,4,2           ## @V4L2_TUNER_RADIO
	.comm	_ACI_READ_TUNERSTATION,4,2      ## @ACI_READ_TUNERSTATION
	.comm	_ACI_READ_TUNERSTEREO,4,2       ## @ACI_READ_TUNERSTEREO
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ## @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ## @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ## @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_CAP_RDS_CONTROLS,4,2 ## @V4L2_TUNER_CAP_RDS_CONTROLS
	.comm	_RDS_RXVALUE,4,2                ## @RDS_RXVALUE
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ## @V4L2_TUNER_SUB_RDS
	.no_dead_strip	_vidioc_g_tuner
.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 vidioc_g_tuner
lCPI0_0:
	.long	1392000                         ; 0x153d80
	.long	1728000                         ; 0x1a5e00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vidioc_g_tuner:                        ; @vidioc_g_tuner
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_video_drvdata
	ldr	x8, [x19, #32]
	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_5
LBB0_2:
	mov	x20, x0
	ldr	w0, [x19, #28]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh5:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _ACI_READ_TUNERSTATION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACI_READ_TUNERSTATION@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #-1
	mov	w3, #-1
	bl	_snd_aci_cmd
	tst	w0, #0x80
	mov	w8, #65535
	csel	w8, w8, wzr, eq
	str	w8, [x19, #8]
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _ACI_READ_TUNERSTEREO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACI_READ_TUNERSTEREO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #-1
	mov	w3, #-1
	bl	_snd_aci_cmd
Lloh16:
	adrp	x8, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh18:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
	tst	w0, #0x40
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _V4L2_TUNER_CAP_LOW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_TUNER_CAP_LOW@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _V4L2_TUNER_CAP_STEREO@GOTPAGE
Lloh24:
	ldr	x10, [x10, _V4L2_TUNER_CAP_STEREO@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh26:
	adrp	x10, _V4L2_TUNER_CAP_RDS@GOTPAGE
Lloh27:
	ldr	x10, [x10, _V4L2_TUNER_CAP_RDS@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh29:
	adrp	x10, _V4L2_TUNER_CAP_RDS_CONTROLS@GOTPAGE
Lloh30:
	ldr	x10, [x10, _V4L2_TUNER_CAP_RDS_CONTROLS@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w9, w9, w10
	stp	w9, w8, [x19, #12]
	ldp	w0, w8, [x20]
	str	w8, [x19, #20]
Lloh32:
	adrp	x8, _RDS_RXVALUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RDS_RXVALUE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #1
	bl	_rds_cmd
	mov	x8, x0
	mov	w0, #0
	tbnz	w8, #31, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #0
Lloh35:
	adrp	x8, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FM"

	.comm	_V4L2_TUNER_RADIO,4,2           ; @V4L2_TUNER_RADIO
	.comm	_ACI_READ_TUNERSTATION,4,2      ; @ACI_READ_TUNERSTATION
	.comm	_ACI_READ_TUNERSTEREO,4,2       ; @ACI_READ_TUNERSTEREO
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ; @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ; @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ; @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_CAP_RDS_CONTROLS,4,2 ; @V4L2_TUNER_CAP_RDS_CONTROLS
	.comm	_RDS_RXVALUE,4,2                ; @RDS_RXVALUE
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ; @V4L2_TUNER_SUB_RDS
	.no_dead_strip	_vidioc_g_tuner
.subsections_via_symbols
