	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_start_write
_client_start_write:                    ## @client_start_write
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_fflush
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$12, -40(%rbp)
	movq	_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_rsend
	cmpl	-40(%rbp), %eax
	cmovel	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transferring"

	.comm	_CMD_WRITE,4,2                  ## @CMD_WRITE
	.comm	_bytes,4,2                      ## @bytes
	.no_dead_strip	_client_start_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_start_write
_client_start_write:                    ; @client_start_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, #0
	bl	_fflush
	mov	w20, #12
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh2:
	adrp	x8, _CMD_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w20, w8, [sp]
Lloh5:
	adrp	x8, _bytes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bytes@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #12
	mov	w3, #0
	bl	_rsend
	ldr	w8, [sp]
	cmp	w0, w8
	csel	w0, wzr, w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transferring"

	.comm	_CMD_WRITE,4,2                  ; @CMD_WRITE
	.comm	_bytes,4,2                      ; @bytes
	.no_dead_strip	_client_start_write
.subsections_via_symbols
