	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secocec_tx_done
_secocec_tx_done:                       ## @secocec_tx_done
	.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	_SECOCEC_STATUS_TX_ERROR_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	andl	%esi, %eax
	movq	_SECOCEC_STATUS_TX_NACK_ERROR@GOTPCREL(%rip), %rbx
	andl	(%rbx), %esi
	jne	LBB0_1
## %bb.2:
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %esi
	callq	_cec_transmit_attempt_done
	movq	_SECOCEC_STATUS_MSG_SENT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r14), %esi
	orl	(%rbx), %esi
	movq	_SECOCEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_smb_wr16                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SECOCEC_STATUS_TX_ERROR_MASK,4,2 ## @SECOCEC_STATUS_TX_ERROR_MASK
	.comm	_SECOCEC_STATUS_TX_NACK_ERROR,4,2 ## @SECOCEC_STATUS_TX_NACK_ERROR
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_ERROR,4,2        ## @CEC_TX_STATUS_ERROR
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_SECOCEC_STATUS_MSG_SENT_MASK,4,2 ## @SECOCEC_STATUS_MSG_SENT_MASK
	.comm	_SECOCEC_STATUS,4,2             ## @SECOCEC_STATUS
	.no_dead_strip	_secocec_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secocec_tx_done
_secocec_tx_done:                       ; @secocec_tx_done
	.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
Lloh0:
	adrp	x19, _SECOCEC_STATUS_TX_ERROR_MASK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SECOCEC_STATUS_TX_ERROR_MASK@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _SECOCEC_STATUS_TX_NACK_ERROR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SECOCEC_STATUS_TX_NACK_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x9, _CEC_TX_STATUS_OK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CEC_TX_STATUS_OK@GOTPAGEOFF]
Lloh6:
	adrp	x10, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
Lloh8:
	adrp	x11, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
	ldr	w12, [x20]
	tst	w12, w1
	csel	x10, x10, x11, eq
	tst	w8, w1
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	bl	_cec_transmit_attempt_done
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _SECOCEC_STATUS_MSG_SENT_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SECOCEC_STATUS_MSG_SENT_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w1, w8, w9
Lloh13:
	adrp	x8, _SECOCEC_STATUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SECOCEC_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_smb_wr16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SECOCEC_STATUS_TX_ERROR_MASK,4,2 ; @SECOCEC_STATUS_TX_ERROR_MASK
	.comm	_SECOCEC_STATUS_TX_NACK_ERROR,4,2 ; @SECOCEC_STATUS_TX_NACK_ERROR
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_ERROR,4,2        ; @CEC_TX_STATUS_ERROR
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_SECOCEC_STATUS_MSG_SENT_MASK,4,2 ; @SECOCEC_STATUS_MSG_SENT_MASK
	.comm	_SECOCEC_STATUS,4,2             ; @SECOCEC_STATUS
	.no_dead_strip	_secocec_tx_done
.subsections_via_symbols
