	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdtv_ca_get_msg
_fdtv_ca_get_msg:                       ## @fdtv_ca_get_msg
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fdtv_ca_app_info
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fdtv_ca_info
	jmp	LBB0_8
LBB0_4:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_avc_tuner_status
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	cmpl	$1, -24(%rbp)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fdtv_ca_get_mmi
	jmp	LBB0_8
LBB0_7:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_EACCES@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movl	$0, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	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_get_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_get_msg
_fdtv_ca_get_msg:                       ; @fdtv_ca_get_msg
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_fdtv_ca_app_info
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_fdtv_ca_info
	b	LBB0_8
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_avc_tuner_status
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_fdtv_ca_get_mmi
	b	LBB0_8
LBB0_7:
	ldp	w2, w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh2:
	adrp	x8, _EACCES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	str	wzr, [x19]
	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	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_get_msg
.subsections_via_symbols
