	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function internal_putbytes
_internal_putbytes:                     ## @internal_putbytes
	.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
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_PqSendPointer@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_PqSendBufferSize@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	subq	%rdi, %rbx
	cmpq	%r15, %rbx
	cmovaeq	%r15, %rbx
	movq	_PqSendBuffer@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	%rdi, (%r12)
	addq	%rbx, %r14
	subq	%rbx, %r15
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_socket_set_nonblocking
	xorl	%eax, %eax
	callq	_internal_flush
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rbx
	movq	(%r12), %rdi
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_8:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PqSendPointer,8,3              ## @PqSendPointer
	.comm	_PqSendBufferSize,8,3           ## @PqSendBufferSize
	.comm	_EOF,4,2                        ## @EOF
	.comm	_PqSendBuffer,8,3               ## @PqSendBuffer
	.no_dead_strip	_internal_putbytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function internal_putbytes
_internal_putbytes:                     ; @internal_putbytes
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _PqSendPointer@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PqSendPointer@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _PqSendBufferSize@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PqSendBufferSize@GOTPAGEOFF]
Lloh4:
	adrp	x24, _PqSendBuffer@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PqSendBuffer@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x9, x8
	cmp	x9, x19
	csel	x21, x9, x19, lo
	ldr	x9, [x24]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x22]
	add	x8, x8, x21
	str	x8, [x22]
	add	x20, x20, x21
	subs	x19, x19, x21
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	bl	_socket_set_nonblocking
	bl	_internal_flush
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23]
	ldr	x8, [x22]
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_8:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PqSendPointer,8,3              ; @PqSendPointer
	.comm	_PqSendBufferSize,8,3           ; @PqSendBufferSize
	.comm	_EOF,4,2                        ; @EOF
	.comm	_PqSendBuffer,8,3               ; @PqSendBuffer
	.no_dead_strip	_internal_putbytes
.subsections_via_symbols
