	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_tx_done
_stm32_tx_done:                         ## @stm32_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_TXERR@GOTPCREL(%rip), %rax
	movq	_TXUDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%esi, %ecx
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	jmp	LBB0_6
LBB0_2:
	movq	_ARBLST@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.3:
	movl	16(%rbx), %edi
	movq	_CEC_TX_STATUS_ARB_LOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
LBB0_4:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_7:
	movq	_TXACKE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_9
## %bb.8:
	movl	16(%rbx), %edi
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
LBB0_5:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cec_transmit_done              ## TAILCALL
LBB0_9:
	movq	_TXBR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.10:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_12
## %bb.11:
	movl	20(%rbx), %edi
	movq	_CEC_TXDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	32(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movl	(%rcx,%rax,4), %edx
	callq	_regmap_write
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
LBB0_12:
	cmpq	%rcx, %rax
	jne	LBB0_14
## %bb.13:
	movl	20(%rbx), %edi
	movq	_CEC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXEOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
LBB0_14:
	movq	_TXEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_16
## %bb.15:
	movl	16(%rbx), %edi
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXERR,4,2                      ## @TXERR
	.comm	_TXUDR,4,2                      ## @TXUDR
	.comm	_CEC_TX_STATUS_ERROR,4,2        ## @CEC_TX_STATUS_ERROR
	.comm	_ARBLST,4,2                     ## @ARBLST
	.comm	_CEC_TX_STATUS_ARB_LOST,4,2     ## @CEC_TX_STATUS_ARB_LOST
	.comm	_TXACKE,4,2                     ## @TXACKE
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.comm	_TXBR,4,2                       ## @TXBR
	.comm	_CEC_TXDR,4,2                   ## @CEC_TXDR
	.comm	_CEC_CR,4,2                     ## @CEC_CR
	.comm	_TXEOM,4,2                      ## @TXEOM
	.comm	_TXEND,4,2                      ## @TXEND
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.no_dead_strip	_stm32_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_tx_done
_stm32_tx_done:                         ; @stm32_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
	mov	x19, x0
Lloh0:
	adrp	x8, _TXERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TXUDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TXUDR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x8, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	b	LBB0_8
LBB0_2:
Lloh9:
	adrp	x8, _ARBLST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARBLST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x8, _CEC_TX_STATUS_ARB_LOST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEC_TX_STATUS_ARB_LOST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #1
LBB0_4:
	mov	w3, #0
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _TXACKE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TXACKE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_9
; %bb.6:
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x8, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1
LBB0_7:
	mov	w4, #0
	mov	w5, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cec_transmit_done
LBB0_9:
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _TXBR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TXBR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.11:
	ldr	w0, [x19, #20]
Lloh24:
	adrp	x9, _CEC_TXDR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CEC_TXDR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
	ldr	x9, [x19, #32]
	add	x10, x8, #1
	str	x10, [x19, #8]
	ldr	w2, [x9, x8, lsl #2]
	bl	_regmap_write
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
LBB0_12:
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	w0, [x19, #20]
Lloh27:
	adrp	x8, _CEC_CR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CEC_CR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _TXEOM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TXEOM@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_14:
	ldr	w8, [x19]
Lloh33:
	adrp	x9, _TXEND@GOTPAGE
Lloh34:
	ldr	x9, [x9, _TXEND@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x19, #16]
Lloh36:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	w2, #0
	b	LBB0_4
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TXERR,4,2                      ; @TXERR
	.comm	_TXUDR,4,2                      ; @TXUDR
	.comm	_CEC_TX_STATUS_ERROR,4,2        ; @CEC_TX_STATUS_ERROR
	.comm	_ARBLST,4,2                     ; @ARBLST
	.comm	_CEC_TX_STATUS_ARB_LOST,4,2     ; @CEC_TX_STATUS_ARB_LOST
	.comm	_TXACKE,4,2                     ; @TXACKE
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.comm	_TXBR,4,2                       ; @TXBR
	.comm	_CEC_TXDR,4,2                   ; @CEC_TXDR
	.comm	_CEC_CR,4,2                     ; @CEC_CR
	.comm	_TXEOM,4,2                      ; @TXEOM
	.comm	_TXEND,4,2                      ; @TXEND
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.no_dead_strip	_stm32_tx_done
.subsections_via_symbols
