	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdtv_ca_ioctl
_fdtv_ca_ioctl:                         ## @fdtv_ca_ioctl
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	(%rdi), %rcx
	movq	(%rcx), %r14
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_fdtv_ca_send_msg
	jmp	LBB0_8
LBB0_3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_info
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	callq	_avc_ca_reset
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_fdtv_ca_get_slot_info
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_fdtv_ca_get_msg
	jmp	LBB0_8
LBB0_7:
	movq	%rdx, %rdi
	callq	_fdtv_ca_get_caps
LBB0_8:
	movl	%eax, %ebx
LBB0_9:
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_avc_tuner_status
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled CA ioctl %u\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_fdtv_ca_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdtv_ca_ioctl
_fdtv_ca_ioctl:                         ; @fdtv_ca_ioctl
	.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
	ldr	x9, [x0]
	ldr	x19, [x9]
	sub	w9, w1, #128
	cmp	w9, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	mov	x1, x2
	bl	_fdtv_ca_send_msg
	b	LBB0_8
LBB0_3:
	mov	x8, x1
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_info
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_avc_ca_reset
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	x1, x2
	bl	_fdtv_ca_get_slot_info
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x1, x2
	bl	_fdtv_ca_get_msg
	b	LBB0_8
LBB0_7:
	mov	x0, x2
	bl	_fdtv_ca_get_caps
LBB0_8:
	mov	x20, x0
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_avc_tuner_status
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled CA ioctl %u\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_fdtv_ca_ioctl
.subsections_via_symbols
