	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_received
_vivid_received:                        ## @vivid_received
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_cec_msg_destination
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_cec_msg_is_broadcast
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	%r12, %rdi
	callq	_cec_msg_initiator
	leaq	-64(%rbp), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_cec_msg_init
	movq	%r12, %rdi
	callq	_cec_msg_opcode
	cmpl	$131, %eax
	jne	LBB0_12
## %bb.3:
	movq	%r15, %rdi
	callq	_cec_is_sink
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	leaq	-68(%rbp), %rsi
	leaq	-54(%rbp), %rdx
	movq	%r12, %rdi
	callq	_cec_ops_set_osd_string
	movl	-68(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.7:
	movq	8(%r14), %rdi
	leaq	-54(%rbp), %rsi
	movl	$8, %edx
	callq	_strscpy
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_12:
	movq	_ENOMSG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	8(%r14), %rdi
	leaq	-54(%rbp), %rsi
	movl	$8, %edx
	callq	_strscpy
	jmp	LBB0_10
LBB0_9:
	movq	8(%r14), %rax
	movl	$0, (%rax)
LBB0_10:
	movl	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	%r12, %rdi
	callq	_cec_msg_opcode
	movq	_CEC_OP_ABORT_INVALID_OP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cec_msg_feature_abort
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_cec_transmit_msg
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMSG,4,2                     ## @ENOMSG
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_CEC_OP_ABORT_INVALID_OP,4,2    ## @CEC_OP_ABORT_INVALID_OP
	.no_dead_strip	_vivid_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_received
_vivid_received:                        ; @vivid_received
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_cec_get_drvdata
	mov	x19, x0
	mov	x0, x21
	bl	_cec_msg_destination
	mov	x22, x0
	mov	x0, x21
	bl	_cec_msg_is_broadcast
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w22, [x8]
LBB0_2:
	mov	x0, x21
	bl	_cec_msg_initiator
	mov	x2, x0
	add	x0, sp, #16
	mov	x1, x22
	bl	_cec_msg_init
	mov	x0, x21
	bl	_cec_msg_opcode
	cmp	w0, #131
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_cec_is_sink
	cbz	w0, LBB0_8
; %bb.4:
	add	x1, sp, #12
	add	x2, sp, #26
	mov	x0, x21
	bl	_cec_ops_set_osd_string
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.7:
	ldr	x0, [x19, #8]
	add	x1, sp, #26
	mov	w2, #8
	bl	_strscpy
	mov	w0, #0
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _ENOMSG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMSG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x0, [x19, #8]
	add	x1, sp, #26
	mov	w2, #8
	bl	_strscpy
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	ldr	x8, [x19, #8]
	str	wzr, [x8]
	str	wzr, [x19]
	b	LBB0_9
LBB0_13:
	mov	x0, x21
	bl	_cec_msg_opcode
	mov	x1, x0
Lloh12:
	adrp	x8, _CEC_OP_ABORT_INVALID_OP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEC_OP_ABORT_INVALID_OP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #16
	bl	_cec_msg_feature_abort
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #0
	bl	_cec_transmit_msg
	mov	w0, #0
	b	LBB0_9
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMSG,4,2                     ; @ENOMSG
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_CEC_OP_ABORT_INVALID_OP,4,2    ; @CEC_OP_ABORT_INVALID_OP
	.no_dead_strip	_vivid_received
.subsections_via_symbols
