	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transmit_block
_transmit_block:                        ## @transmit_block
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	40(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	32(%r14), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.2:
	callq	_tty_write_room
	movl	%eax, %ebx
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_TRACE_PS
	movq	(%r14), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_3
## %bb.4:
	cmpl	$2, %ebx
	jl	LBB0_5
## %bb.6:
	movq	_DLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %rsi
	cmpq	(%r12), %rsi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_put_char
	movq	8(%r15), %rcx
	movq	(%r14), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	1(%rax), %rdx
	movq	%rdx, (%r14)
	movq	(%rcx,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_put_char
	leal	-1(%rbx), %edx
	movq	(%r14), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$2, %ebx
	movl	%edx, %ebx
	jg	LBB0_7
	jmp	LBB0_11
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %edx
LBB0_11:
	cmpq	%rcx, %rax
	jne	LBB0_16
LBB0_12:
	cmpl	$3, %edx
	jl	LBB0_16
## %bb.13:
	movq	_DLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_put_char
	movq	_ETX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_put_char
	movq	_R3964_BCC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_15
## %bb.14:
	movq	16(%r14), %rsi
	movq	%r14, %rdi
	callq	_put_char
LBB0_15:
	movq	_R3964_WAIT_FOR_TX_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	leaq	24(%r14), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_R3964_TO_QVZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
LBB0_16:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush                          ## TAILCALL
LBB0_3:
	movl	%ebx, %edx
	cmpq	%rcx, %rax
	je	LBB0_12
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transmit_block %p, room %d, length %d"

	.comm	_DLE,8,3                        ## @DLE
	.comm	_ETX,8,3                        ## @ETX
	.comm	_R3964_BCC,4,2                  ## @R3964_BCC
	.comm	_R3964_WAIT_FOR_TX_ACK,4,2      ## @R3964_WAIT_FOR_TX_ACK
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_R3964_TO_QVZ,8,3               ## @R3964_TO_QVZ
	.no_dead_strip	_transmit_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transmit_block
_transmit_block:                        ; @transmit_block
	.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	x19, x0
	ldr	x0, [x0, #40]
	ldr	x20, [x19, #32]
	cmp	x0, #0
	ccmp	x20, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	bl	_tty_write_room
	mov	x21, x0
	ldr	x3, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_TRACE_PS
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	ccmp	w21, #2, #8, lo
	b.ge	LBB0_9
; %bb.3:
	mov	x10, x21
LBB0_4:
	cmp	x8, x9
	ccmp	w10, #3, #8, eq
	b.lt	LBB0_8
; %bb.5:
Lloh2:
	adrp	x8, _DLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DLE@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_put_char
Lloh5:
	adrp	x8, _ETX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETX@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_put_char
	ldr	w8, [x19, #8]
Lloh8:
	adrp	x9, _R3964_BCC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _R3964_BCC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_put_char
LBB0_7:
Lloh11:
	adrp	x8, _R3964_WAIT_FOR_TX_ACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R3964_WAIT_FOR_TX_ACK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x19, #24
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _R3964_TO_QVZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _R3964_TO_QVZ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
LBB0_8:
	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	_flush
LBB0_9:
Lloh20:
	adrp	x22, _DLE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _DLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x8, #1
	str	x10, [x19]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x19
	bl	_put_char
	sub	w10, w21, #1
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	ccmp	w21, #2, #4, lo
	mov	x21, x10
	b.le	LBB0_4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x1, [x9, x8, lsl #3]
	ldr	x10, [x22]
	cmp	x1, x10
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_put_char
	ldr	x9, [x20, #8]
	ldr	x8, [x19]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transmit_block %p, room %d, length %d"

	.comm	_DLE,8,3                        ; @DLE
	.comm	_ETX,8,3                        ; @ETX
	.comm	_R3964_BCC,4,2                  ; @R3964_BCC
	.comm	_R3964_WAIT_FOR_TX_ACK,4,2      ; @R3964_WAIT_FOR_TX_ACK
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_R3964_TO_QVZ,8,3               ; @R3964_TO_QVZ
	.no_dead_strip	_transmit_block
.subsections_via_symbols
