	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xmodem_init_xfer               ## -- Begin function xmodem_init_xfer
	.p2align	4, 0x90
_xmodem_init_xfer:                      ## @xmodem_init_xfer
	.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
	movq	%rdi, %r13
	movq	_blknum@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_crcflag@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_crcinit
	movl	$10, %ebx
	movq	_gdb_stderr@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r14
	leaq	L_.str(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
	decl	%ebx
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_readchar
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$67, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
	decl	%ebx
	jne	LBB0_1
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
	jmp	LBB0_9
LBB0_4:
	movq	_crcflag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_blknum,4,2                     ## @blknum
	.comm	_crcflag,4,2                    ## @crcflag
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmodem_init_xfer: Got unexpected character %c (0%o)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Got a CANCEL from the target.\n"

L_.str.2:                               ## @.str.2
	.asciz	"xmodem_init_xfer:  Too many unexpected characters."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xmodem_init_xfer               ; -- Begin function xmodem_init_xfer
	.p2align	2
_xmodem_init_xfer:                      ; @xmodem_init_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, _blknum@GOTPAGE
Lloh1:
	ldr	x8, [x8, _blknum@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x22, _crcflag@GOTPAGE
Lloh4:
	ldr	x22, [x22, _crcflag@GOTPAGEOFF]
	str	wzr, [x22]
	bl	_crcinit
	mov	w23, #10
Lloh5:
	adrp	x24, _gdb_stderr@GOTPAGE
Lloh6:
	ldr	x24, [x24, _gdb_stderr@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	mov	x1, x20
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_fprintf_unfiltered
	subs	w23, w23, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #6
	bl	_readchar
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #129
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #128
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #67
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	stp	x0, x0, [sp]
	mov	x0, x8
	mov	x1, x21
	b	LBB0_2
LBB0_7:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	b	LBB0_9
LBB0_8:
	mov	w8, #1
	str	w8, [x22]
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_blknum,4,2                     ; @blknum
	.comm	_crcflag,4,2                    ; @crcflag
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmodem_init_xfer: Got unexpected character %c (0%o)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Got a CANCEL from the target.\n"

l_.str.2:                               ; @.str.2
	.asciz	"xmodem_init_xfer:  Too many unexpected characters."

.subsections_via_symbols
