	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdtv_ca_send_msg
_fdtv_ca_send_msg:                      ## @fdtv_ca_send_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	shll	$16, %edx
	shll	$8, %ecx
	addl	%edx, %ecx
	movl	8(%rax), %r8d
	leal	(%rcx,%r8), %edx
	movl	%edx, (%rdi)
	xorl	%eax, %eax
	addl	%r8d, %ecx
	addl	$-130, %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_5
## %bb.3:
	popq	%rbp
	jmp	_fdtv_ca_pmt                    ## TAILCALL
LBB0_4:
	popq	%rbp
	jmp	_avc_ca_enter_menu              ## TAILCALL
LBB0_5:
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EACCES@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled CA message 0x%08x\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.no_dead_strip	_fdtv_ca_send_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdtv_ca_send_msg
_fdtv_ca_send_msg:                      ; @fdtv_ca_send_msg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #8
	add	w9, w10, w9, lsl #16
	ldr	w8, [x8, #8]
	add	w2, w9, w8
	str	w2, [x0]
	sub	w8, w2, #130
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #129
	b.ne	LBB0_6
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_fdtv_ca_pmt
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_avc_ca_enter_menu
LBB0_6:
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EACCES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled CA message 0x%08x\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.no_dead_strip	_fdtv_ca_send_msg
.subsections_via_symbols
