	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_cec_adap_transmit
_vivid_cec_adap_transmit:               ## @vivid_cec_adap_transmit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rdi, %rbx
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, 32(%rax)
	movq	%rbx, 24(%rax)
	movl	%r12d, %edi
	callq	_CEC_FREE_TIME_TO_USEC
	movslq	(%r15), %rcx
	movq	_USECS_PER_BYTE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	imulq	%rcx, %rdx
	addq	%rax, %rdx
	movq	%rdx, 8(%r13)
	movl	%ecx, 20(%r13)
	leaq	16(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	addq	$16, %rdi
	movq	%r14, %rsi
	addq	$20, %rsi
	callq	_list_add
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movq	_vivid_cec_xfer_try_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_INIT_DELAYED_WORK
	movq	8(%r14), %rbx
	addq	(%r14), %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_vivid_cec_xfer_done_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	8(%r13), %rdi
	callq	_usecs_to_jiffies
	movq	%rax, %rbx
	movq	%rax, (%r14)
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	cmovleq	%r14, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_schedule_delayed_work
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_USECS_PER_BYTE,4,2             ## @USECS_PER_BYTE
	.comm	_vivid_cec_xfer_done_worker,4,2 ## @vivid_cec_xfer_done_worker
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_vivid_cec_xfer_try_worker,4,2  ## @vivid_cec_xfer_try_worker
	.no_dead_strip	_vivid_cec_adap_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_cec_adap_transmit
_vivid_cec_adap_transmit:               ; @vivid_cec_adap_transmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x0
	bl	_cec_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	stp	x23, x20, [x0, #24]
	mov	x0, x22
	bl	_CEC_FREE_TIME_TO_USEC
Lloh3:
	adrp	x8, _USECS_PER_BYTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USECS_PER_BYTE@GOTPAGEOFF]
	ldrsw	x9, [x21]
Lloh5:
	ldrsw	x8, [x8]
	madd	x8, x8, x9, x0
	str	x8, [x19, #8]
	str	w9, [x19, #20]
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock
	add	x0, x19, #16
	add	x1, x20, #20
	bl	_list_add
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _vivid_cec_xfer_try_worker@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vivid_cec_xfer_try_worker@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
	ldp	x9, x8, [x20]
Lloh9:
	adrp	x10, _jiffies@GOTPAGE
Lloh10:
	ldr	x10, [x10, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x8, x8, x9
	sub	x22, x8, x10
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _vivid_cec_xfer_done_worker@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vivid_cec_xfer_done_worker@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
Lloh18:
	adrp	x8, _jiffies@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	ldr	x0, [x19, #8]
	bl	_usecs_to_jiffies
	mov	x22, x0
	str	x0, [x20]
LBB0_5:
	mov	x0, x21
	bl	_spin_unlock
	cmp	x22, #0
	csel	x1, x22, xzr, gt
	mov	x0, x19
	bl	_schedule_delayed_work
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USECS_PER_BYTE,4,2             ; @USECS_PER_BYTE
	.comm	_vivid_cec_xfer_done_worker,4,2 ; @vivid_cec_xfer_done_worker
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_vivid_cec_xfer_try_worker,4,2  ; @vivid_cec_xfer_try_worker
	.no_dead_strip	_vivid_cec_adap_transmit
.subsections_via_symbols
