	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_cec_event
_handle_cec_event:                      ## @handle_cec_event
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	movq	_EC_MKBP_CEC_SEND_OK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cec_transmit_attempt_done
LBB0_2:
	movq	_EC_MKBP_CEC_SEND_FAILED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_CEC_TX_STATUS_MAX_RETRIES@GOTPCREL(%rip), %rax
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cec_transmit_attempt_done      ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_MKBP_CEC_SEND_OK,4,2        ## @EC_MKBP_CEC_SEND_OK
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_EC_MKBP_CEC_SEND_FAILED,4,2    ## @EC_MKBP_CEC_SEND_FAILED
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ## @CEC_TX_STATUS_MAX_RETRIES
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.no_dead_strip	_handle_cec_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_cec_event
_handle_cec_event:                      ; @handle_cec_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _EC_MKBP_CEC_SEND_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_MKBP_CEC_SEND_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_cec_transmit_attempt_done
LBB0_2:
Lloh6:
	adrp	x8, _EC_MKBP_CEC_SEND_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_MKBP_CEC_SEND_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cec_transmit_attempt_done
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_MKBP_CEC_SEND_OK,4,2        ; @EC_MKBP_CEC_SEND_OK
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_EC_MKBP_CEC_SEND_FAILED,4,2    ; @EC_MKBP_CEC_SEND_FAILED
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ; @CEC_TX_STATUS_MAX_RETRIES
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.no_dead_strip	_handle_cec_event
.subsections_via_symbols
