	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isr_txeom
_isr_txeom:                             ## @isr_txeom
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_DBGISR
	movq	_IRQ_TXDATA@GOTPCREL(%rip), %rax
	movq	_IRQ_TXIDLE@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	addq	(%rax), %rcx
	movq	_IRQ_TXUNDER@GOTPCREL(%rip), %r13
	movzwl	(%r13), %esi
	addq	%rcx, %rsi
	movq	%rbx, %rdi
	callq	_slgt_irq_off
	movq	%rbx, %rdi
	callq	_tdma_reset
	movq	%rbx, %rdi
	callq	_reset_tbufs
	testw	%r14w, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_TCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rd_reg16
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	_BIT2@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	%r15w, %ax
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	callq	_wr_reg16
	movl	(%r12), %esi
	movzwl	%r15w, %edx
	movq	%rbx, %rdi
	callq	_wr_reg16
LBB0_2:
	cmpl	$0, (%rbx)
	je	LBB0_15
## %bb.3:
	movq	40(%rbx), %rax
	movq	_MGSL_MODE_ASYNC@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_8
## %bb.4:
	testw	%r14w, (%r13)
	je	LBB0_6
## %bb.5:
	incl	68(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_IRQ_TXIDLE@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_8
## %bb.7:
	incl	64(%rbx)
LBB0_8:
	movl	$0, (%rbx)
	movq	$0, 56(%rbx)
	leaq	48(%rbx), %rdi
	callq	_del_timer
	movq	40(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_11
## %bb.9:
	cmpl	$0, 4(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%rbx)
	movl	$0, 4(%rbx)
	movq	%rbx, %rdi
	callq	_set_signals
LBB0_11:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	cmpq	$0, 8(%rax)
	jne	LBB0_16
## %bb.13:
	cmpq	$0, (%rax)
	je	LBB0_14
LBB0_16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tx_stop                        ## TAILCALL
LBB0_14:
	movq	_BH_TRANSMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TXDATA,8,3                 ## @IRQ_TXDATA
	.comm	_IRQ_TXIDLE,2,1                 ## @IRQ_TXIDLE
	.comm	_IRQ_TXUNDER,2,1                ## @IRQ_TXUNDER
	.comm	_TCR,4,2                        ## @TCR
	.comm	_BIT2,2,1                       ## @BIT2
	.comm	_MGSL_MODE_ASYNC,8,3            ## @MGSL_MODE_ASYNC
	.comm	_SerialSignal_RTS,4,2           ## @SerialSignal_RTS
	.comm	_BH_TRANSMIT,4,2                ## @BH_TRANSMIT
	.no_dead_strip	_isr_txeom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isr_txeom
_isr_txeom:                             ; @isr_txeom
	.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	x20, x1
	mov	x19, x0
	mov	w0, w1
	bl	_DBGISR
Lloh0:
	adrp	x8, _IRQ_TXDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TXDATA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _IRQ_TXIDLE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IRQ_TXIDLE@GOTPAGEOFF]
	ldrh	w9, [x22]
Lloh5:
	adrp	x23, _IRQ_TXUNDER@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IRQ_TXUNDER@GOTPAGEOFF]
	ldrh	w10, [x23]
	add	x8, x8, x9
	add	x1, x8, x10
	mov	x0, x19
	bl	_slgt_irq_off
	mov	x0, x19
	bl	_tdma_reset
	mov	x0, x19
	bl	_reset_tbufs
	ldrh	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x24, _TCR@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TCR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rd_reg16
	mov	x21, x0
	ldr	w1, [x24]
Lloh9:
	adrp	x8, _BIT2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIT2@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w8, w8, w0
	and	w2, w8, #0xffff
	mov	x0, x19
	bl	_wr_reg16
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_wr_reg16
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_16
; %bb.3:
	ldr	x8, [x19, #40]
Lloh11:
	adrp	x21, _MGSL_MODE_ASYNC@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MGSL_MODE_ASYNC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.4:
	ldrh	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x19, #68]
	add	w8, w8, #1
	str	w8, [x19, #68]
	b	LBB0_8
LBB0_6:
	ldrh	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #64]
	add	w8, w8, #1
	str	w8, [x19, #64]
LBB0_8:
	str	wzr, [x19]
	str	xzr, [x19, #56]
	add	x0, x19, #48
	bl	_del_timer
	ldr	x8, [x19, #40]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.10:
Lloh13:
	adrp	x8, _SerialSignal_RTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SerialSignal_RTS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	bic	w8, w9, w8
	str	w8, [x19, #32]
	str	wzr, [x19, #4]
	mov	x0, x19
	bl	_set_signals
LBB0_11:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_14
; %bb.13:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
LBB0_14:
	mov	x0, x19
	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
	b	_tx_stop
LBB0_15:
Lloh16:
	adrp	x8, _BH_TRANSMIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BH_TRANSMIT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_16:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TXDATA,8,3                 ; @IRQ_TXDATA
	.comm	_IRQ_TXIDLE,2,1                 ; @IRQ_TXIDLE
	.comm	_IRQ_TXUNDER,2,1                ; @IRQ_TXUNDER
	.comm	_TCR,4,2                        ; @TCR
	.comm	_BIT2,2,1                       ; @BIT2
	.comm	_MGSL_MODE_ASYNC,8,3            ; @MGSL_MODE_ASYNC
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_BH_TRANSMIT,4,2                ; @BH_TRANSMIT
	.no_dead_strip	_isr_txeom
.subsections_via_symbols
