	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cec_data_cancel
_cec_data_cancel:                       ## @cec_data_cancel
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	cmpq	%rdi, 8(%rax)
	je	LBB0_1
## %bb.2:
	leaq	48(%rbx), %rdi
	callq	_list_del_init
	movl	(%rbx), %eax
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	32(%rbx), %rcx
	decl	(%rcx)
	jmp	LBB0_4
LBB0_1:
	movq	$0, 8(%rax)
	movl	(%rbx), %eax
LBB0_4:
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movq	%rax, 24(%rbx)
	movq	_CEC_RX_STATUS_ABORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movq	%rax, 8(%rbx)
	movq	_CEC_TX_STATUS_MAX_RETRIES@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	orl	%r14d, (%rbx)
	incl	4(%rbx)
	movq	$0, 40(%rbx)
LBB0_7:
	movq	32(%rbx), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_cec_queue_msg_monitor
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cec_data_completed             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_CEC_RX_STATUS_ABORTED,4,2      ## @CEC_RX_STATUS_ABORTED
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ## @CEC_TX_STATUS_MAX_RETRIES
	.no_dead_strip	_cec_data_cancel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cec_data_cancel
_cec_data_cancel:                       ; @cec_data_cancel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x21, _CEC_TX_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CEC_TX_STATUS_OK@GOTPAGEOFF]
	cmp	x9, x0
	b.eq	LBB0_3
; %bb.1:
	add	x0, x19, #48
	bl	_list_del_init
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x19, #32]
	ldr	w10, [x9]
	sub	w10, w10, #1
	str	w10, [x9]
	b	LBB0_4
LBB0_3:
	str	xzr, [x8, #8]
	ldr	w8, [x19]
LBB0_4:
	ldr	w9, [x21]
	and	w21, w9, w8
	bl	_ktime_get_ns
	cbz	w21, LBB0_6
; %bb.5:
	str	x0, [x19, #24]
Lloh2:
	adrp	x8, _CEC_RX_STATUS_ABORTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CEC_RX_STATUS_ABORTED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_7
LBB0_6:
	str	x0, [x19, #8]
Lloh5:
	adrp	x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w8, w8, w20
	ldr	d0, [x19]
	movi.2s	v1, #1
	movi.2s	v2, #1
	mov.s	v2[0], w8
	orr.8b	v2, v2, v0
	add.2s	v0, v0, v1
	mov.s	v2[1], v0[1]
	str	d2, [x19]
	str	xzr, [x19, #40]
LBB0_7:
	ldr	x0, [x19, #32]
	mov	x1, x19
	mov	w2, #1
	bl	_cec_queue_msg_monitor
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cec_data_completed
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_CEC_RX_STATUS_ABORTED,4,2      ; @CEC_RX_STATUS_ABORTED
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ; @CEC_TX_STATUS_MAX_RETRIES
	.no_dead_strip	_cec_data_cancel
.subsections_via_symbols
