	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flyvideo_gpio
_flyvideo_gpio:                         ## @flyvideo_gpio
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	xorl	%esi, %esi
	callq	_gpio_inout
	movl	$8, %edi
	callq	_udelay
	xorl	%eax, %eax
	callq	_gpio_read
	movl	%eax, %r12d
	roll	$15, %eax
	andl	$-2147483641, %eax              ## imm = 0x80000007
	cmpl	$7, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_1
## %bb.2:
	movl	%r12d, %ecx
	shrl	$17, %ecx
	andl	$7, %ecx
	movl	$79, %edx
	btl	%ecx, %edx
	jb	LBB0_3
LBB0_1:
	movl	12(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_4
LBB0_3:
	cltq
	leaq	l_switch.table.flyvideo_gpio(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
LBB0_4:
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rax
	testl	$32768, %r12d                   ## imm = 0x8000
	jne	LBB0_6
## %bb.5:
	movq	_TUNER_ABSENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rcx, %rax
LBB0_6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r14d
	andl	$4194304, %r14d                 ## imm = 0x400000
	movq	%rcx, %rdx
	cmoveq	%rbx, %rdx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	12(%r13), %esi
	testl	$8388608, %r12d                 ## imm = 0x800000
	cmoveq	%rbx, %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_pr_info
	testl	$8192, %r12d                    ## imm = 0x2000
	movq	%rbx, %rdx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rdx
	testl	$16384, %r12d                   ## imm = 0x4000
	movl	12(%r13), %esi
	cmoveq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pr_info
	movq	_UNSET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_8
## %bb.7:
	movl	%r15d, (%r13)
LBB0_8:
	movl	%r14d, 4(%r13)
	testl	$16384, %r12d                   ## imm = 0x4000
	jne	LBB0_10
## %bb.9:
	movq	_lt9415_audio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSET,4,2                      ## @UNSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: FlyVideo_gpio: unknown tuner type\n"

	.comm	_TUNER_ABSENT,4,2               ## @TUNER_ABSENT
L_.str.1:                               ## @.str.1
	.asciz	"%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n"

L_.str.2:                               ## @.str.2
	.asciz	"yes"

L_.str.3:                               ## @.str.3
	.asciz	"no"

L_.str.4:                               ## @.str.4
	.asciz	"%d: FlyVideo  LR90=%s tda9821/tda9820=%s capture_only=%s\n"

	.comm	_lt9415_audio,4,2               ## @lt9415_audio
	.no_dead_strip	_flyvideo_gpio
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.flyvideo_gpio
l_switch.table.flyvideo_gpio:
	.long	2                               ## 0x2
	.long	39                              ## 0x27
	.long	5                               ## 0x5
	.long	37                              ## 0x25
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flyvideo_gpio
_flyvideo_gpio:                         ; @flyvideo_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _UNSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UNSET@GOTPAGEOFF]
	ldr	w22, [x21]
	mov	w0, #16777215
	mov	w1, #0
	bl	_gpio_inout
	mov	w0, #8
	bl	_udelay
	bl	_gpio_read
	mov	x20, x0
	ror	w8, w0, #17
	and	w8, w8, #0x80000007
	cmp	w8, #7
	b.hs	LBB0_2
; %bb.1:
	ubfx	w9, w20, #17, #3
	mov	w10, #79
	lsr	w9, w10, w9
	tbnz	w9, #0, LBB0_3
LBB0_2:
	ldr	w1, [x19, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x9, l_switch.table.flyvideo_gpio@PAGE
Lloh5:
	add	x9, x9, l_switch.table.flyvideo_gpio@PAGEOFF
	ldr	w22, [x9, w8, sxtw #2]
LBB0_4:
Lloh6:
	adrp	x8, _TUNER_ABSENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TUNER_ABSENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x24, l_.str.3@PAGE
Lloh10:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh11:
	adrp	x25, l_.str.2@PAGE
Lloh12:
	add	x25, x25, l_.str.2@PAGEOFF
	tst	w20, #0x8000
	csel	x26, x25, x24, eq
	csel	w23, w8, w22, eq
	ands	w22, w20, #0x400000
	ldr	w1, [x19, #12]
	csel	x8, x24, x25, eq
	tst	w20, #0x800000
	csel	x9, x24, x25, eq
	stp	x23, x20, [sp, #16]
	stp	x8, x9, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	w1, [x19, #12]
	tst	w20, #0x2000
	csel	x8, x25, x24, eq
	tst	w20, #0x4000
	csel	x9, x25, x24, eq
	stp	x9, x26, [sp, #8]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	ldr	w8, [x21]
	cmp	w23, w8
	b.eq	LBB0_6
; %bb.5:
	str	w23, [x19]
LBB0_6:
	str	w22, [x19, #4]
	tbnz	w20, #14, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _lt9415_audio@GOTPAGE
Lloh18:
	ldr	x8, [x8, _lt9415_audio@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSET,4,2                      ; @UNSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: FlyVideo_gpio: unknown tuner type\n"

	.comm	_TUNER_ABSENT,4,2               ; @TUNER_ABSENT
l_.str.1:                               ; @.str.1
	.asciz	"%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n"

l_.str.2:                               ; @.str.2
	.asciz	"yes"

l_.str.3:                               ; @.str.3
	.asciz	"no"

l_.str.4:                               ; @.str.4
	.asciz	"%d: FlyVideo  LR90=%s tda9821/tda9820=%s capture_only=%s\n"

	.comm	_lt9415_audio,4,2               ; @lt9415_audio
	.no_dead_strip	_flyvideo_gpio
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.flyvideo_gpio
l_switch.table.flyvideo_gpio:
	.long	2                               ; 0x2
	.long	39                              ; 0x27
	.long	5                               ; 0x5
	.long	37                              ; 0x25
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3

.subsections_via_symbols
