	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_data
_send_data:                             ## @send_data
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	_transflag@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movq	_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.12:
	movq	%r15, %rdi
	callq	_fileno
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_fileno
	movl	%eax, %r12d
	movq	_send_data.buf(%rip), %rbx
	leaq	-48(%rbp), %r13
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_fstat
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovnsq	%r13, %rdx
	leaq	_send_data.bufsize(%rip), %rsi
	movq	%rbx, %rdi
	callq	_alloc_buffer
	movq	%rax, _send_data.buf(%rip)
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:
	movq	_send_data.bufsize(%rip), %rdx
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_19
## %bb.14:
	movq	_urgflag@GOTPCREL(%rip), %r13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_send_data.buf(%rip), %rsi
	movq	_send_data.bufsize(%rip), %rdx
	movl	%r12d, %edi
	callq	_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	_send_data.buf(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_sec_write
	cmpl	%ebx, %eax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_byte_count@GOTPCREL(%rip), %rax
	addl	%ebx, (%rax)
	cmpq	$0, (%r13)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
	callq	_handleoobcmd
	testl	%eax, %eax
	je	LBB0_18
	jmp	LBB0_27
LBB0_1:
	cmpl	$130, %edx
	jne	LBB0_24
## %bb.2:
	movq	%r12, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_3
LBB0_9:
	movq	%r15, %rdi
	callq	_sec_fflush
	movq	_transflag@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movq	_urgflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_ferror
	testl	%eax, %eax
	jne	LBB0_25
## %bb.10:
	movq	%r15, %rdi
	callq	_ferror
	testl	%eax, %eax
	jne	LBB0_21
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movl	$226, %edi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_19:
	movq	%r15, %rdi
	callq	_sec_fflush
	movq	_transflag@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movq	_urgflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.20:
	js	LBB0_25
LBB0_21:
	movl	$0, (%r14)
	movq	_urgflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.3(%rip), %rsi
	movl	$426, %edi                      ## imm = 0x1AA
	jmp	LBB0_26
LBB0_24:
	movl	$0, (%rcx)
	movq	_urgflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.2(%rip), %rsi
	movl	$550, %edi                      ## imm = 0x226
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_25:
	movl	$0, (%r14)
	movq	_urgflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.4(%rip), %rsi
	movl	$551, %edi                      ## imm = 0x227
	jmp	LBB0_26
LBB0_22:
	movq	_transflag@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_urgflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movl	$451, %edi                      ## imm = 0x1C3
LBB0_26:
	callq	_perror_reply
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %ebx
	movq	_urgflag@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_sec_putc
	movq	%r12, %rdi
	callq	_getc
	movl	%eax, %ebx
	cmpl	(%r14), %eax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_handleoobcmd
	testl	%eax, %eax
	jne	LBB0_27
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_byte_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	cmpl	$10, %ebx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$13, %edi
	movq	%r15, %rsi
	callq	_sec_putc
	jmp	LBB0_8
LBB0_23:
	leaq	L_.str(%rip), %rsi
	movl	$226, %edi
	xorl	%eax, %eax
	callq	_reply
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_send_data.buf,8,3 ## @send_data.buf
.zerofill __DATA,__bss,_send_data.bufsize,8,3 ## @send_data.bufsize
	.comm	_transflag,4,2                  ## @transflag
	.comm	_type,4,2                       ## @type
	.comm	_EOF,4,2                        ## @EOF
	.comm	_urgflag,8,3                    ## @urgflag
	.comm	_byte_count,4,2                 ## @byte_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transfer complete."

L_.str.1:                               ## @.str.1
	.asciz	"Local resource failure: malloc"

L_.str.2:                               ## @.str.2
	.asciz	"Unimplemented TYPE %d in send_data"

L_.str.3:                               ## @.str.3
	.asciz	"Data connection"

L_.str.4:                               ## @.str.4
	.asciz	"Error on input file"

	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_restart_point,4,2              ## @restart_point
	.no_dead_strip	_send_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_data
_send_data:                             ; @send_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _transflag@GOTPAGE
Lloh1:
	ldr	x23, [x23, _transflag@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x23]
Lloh2:
	adrp	x8, _type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _type@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_fileno
	mov	x20, x0
	mov	x0, x21
	bl	_fileno
	mov	x21, x0
	adrp	x24, _send_data.buf@PAGE
	ldr	x22, [x24, _send_data.buf@PAGEOFF]
	add	x25, sp, #8
	add	x1, sp, #8
	bl	_fstat
	cmp	w0, #0
	csel	x2, x25, xzr, ge
Lloh5:
	adrp	x1, _send_data.bufsize@PAGE
Lloh6:
	add	x1, x1, _send_data.bufsize@PAGEOFF
	mov	x0, x22
	bl	_alloc_buffer
	str	x0, [x24, _send_data.buf@PAGEOFF]
	cbz	x0, LBB0_18
; %bb.2:
	mov	x1, x0
	adrp	x25, _send_data.bufsize@PAGE
	ldr	x2, [x25, _send_data.bufsize@PAGEOFF]
	mov	x0, x21
	bl	_read
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.3:
Lloh7:
	adrp	x26, _byte_count@GOTPAGE
Lloh8:
	ldr	x26, [x26, _byte_count@GOTPAGEOFF]
Lloh9:
	adrp	x27, _urgflag@GOTPAGE
Lloh10:
	ldr	x27, [x27, _urgflag@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x24, _send_data.buf@PAGEOFF]
	ldr	x2, [x25, _send_data.bufsize@PAGEOFF]
	mov	x0, x21
	bl	_read
	mov	x22, x0
	cmp	w0, #0
	b.le	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24, _send_data.buf@PAGEOFF]
	mov	x0, x20
	mov	x2, x22
	bl	_sec_write
	cmp	w0, w22
	b.ne	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	add	w8, w8, w22
	str	w8, [x26]
	ldr	x8, [x27]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_handleoobcmd
	cbz	w0, LBB0_4
	b	LBB0_20
LBB0_8:
	cmp	w8, #130
	b.ne	LBB0_16
; %bb.9:
	mov	x0, x21
	bl	_getc
Lloh11:
	adrp	x22, _EOF@GOTPAGE
Lloh12:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_21
LBB0_10:
	mov	x0, x19
	bl	_sec_fflush
	str	wzr, [x23]
Lloh13:
	adrp	x8, _urgflag@GOTPAGE
Lloh14:
	ldr	x8, [x8, _urgflag@GOTPAGEOFF]
Lloh15:
	str	xzr, [x8]
	mov	x0, x21
	bl	_ferror
	cbnz	w0, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_ferror
	cbnz	w0, LBB0_15
; %bb.12:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #226
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_reply
LBB0_13:
	mov	x0, x19
	bl	_sec_fflush
	str	wzr, [x23]
Lloh18:
	adrp	x8, _urgflag@GOTPAGE
Lloh19:
	ldr	x8, [x8, _urgflag@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
	cbz	w22, LBB0_27
; %bb.14:
	tbnz	w22, #31, LBB0_17
LBB0_15:
	str	wzr, [x23]
Lloh21:
	adrp	x8, _urgflag@GOTPAGE
Lloh22:
	ldr	x8, [x8, _urgflag@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #426
	b	LBB0_19
LBB0_16:
	str	wzr, [x23]
Lloh26:
	adrp	x9, _urgflag@GOTPAGE
Lloh27:
	ldr	x9, [x9, _urgflag@GOTPAGEOFF]
Lloh28:
	str	xzr, [x9]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #550
	bl	_reply
	b	LBB0_20
LBB0_17:
	str	wzr, [x23]
Lloh31:
	adrp	x8, _urgflag@GOTPAGE
Lloh32:
	ldr	x8, [x8, _urgflag@GOTPAGEOFF]
Lloh33:
	str	xzr, [x8]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #551
	b	LBB0_19
LBB0_18:
	str	wzr, [x23]
Lloh36:
	adrp	x8, _urgflag@GOTPAGE
Lloh37:
	ldr	x8, [x8, _urgflag@GOTPAGEOFF]
Lloh38:
	str	xzr, [x8]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #451
LBB0_19:
	bl	_perror_reply
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x20, x0
Lloh41:
	adrp	x24, _urgflag@GOTPAGE
Lloh42:
	ldr	x24, [x24, _urgflag@GOTPAGEOFF]
Lloh43:
	adrp	x25, _byte_count@GOTPAGE
Lloh44:
	ldr	x25, [x25, _byte_count@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_sec_putc
	mov	x0, x21
	bl	_getc
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_10
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	bl	_handleoobcmd
	cbnz	w0, LBB0_20
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	cmp	w20, #10
	b.ne	LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w0, #13
	mov	x1, x19
	bl	_sec_putc
	b	LBB0_22
LBB0_27:
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #226
	bl	_reply
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_send_data.buf,8,3 ; @send_data.buf
.zerofill __DATA,__bss,_send_data.bufsize,8,3 ; @send_data.bufsize
	.comm	_transflag,4,2                  ; @transflag
	.comm	_type,4,2                       ; @type
	.comm	_EOF,4,2                        ; @EOF
	.comm	_urgflag,8,3                    ; @urgflag
	.comm	_byte_count,4,2                 ; @byte_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transfer complete."

l_.str.1:                               ; @.str.1
	.asciz	"Local resource failure: malloc"

l_.str.2:                               ; @.str.2
	.asciz	"Unimplemented TYPE %d in send_data"

l_.str.3:                               ; @.str.3
	.asciz	"Data connection"

l_.str.4:                               ; @.str.4
	.asciz	"Error on input file"

	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_restart_point,4,2              ; @restart_point
	.no_dead_strip	_send_data
.subsections_via_symbols
