	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_send                      ## -- Begin function sock_send
	.p2align	4, 0x90
_sock_send:                             ## @sock_send
	.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
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rdx, %rcx
	jae	LBB0_3
## %bb.1:
	movl	$-1, %ebx
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pcap_snprintf
	jmp	LBB0_10
LBB0_3:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	addq	%rcx, %r12
	subl	%eax, %ebx
	jne	LBB0_4
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	$-2, %ebx
	cmpl	(%rax), %esi
	je	LBB0_10
## %bb.6:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_sock_fmterror
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't send more than %u bytes with sock_recv"

	.comm	_errno,4,2                      ## @errno
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.1:                               ## @.str.1
	.asciz	"send(): "

	.comm	_MSG_NOSIGNAL,4,2               ## @MSG_NOSIGNAL
	.comm	_WSAECONNABORTED,4,2            ## @WSAECONNABORTED
	.comm	_WSAECONNRESET,4,2              ## @WSAECONNRESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_send                      ; -- Begin function sock_send
	.p2align	2
_sock_send:                             ; @sock_send
	.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
	mov	x19, x4
	mov	x20, x3
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x3, [x8]
	cmp	x3, x2
	b.hs	LBB0_3
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_pcap_snprintf
	b	LBB0_10
LBB0_3:
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	bl	_send
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, w0, sxtw
	subs	w21, w21, w0
	b.ne	LBB0_4
; %bb.6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _EPIPE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EPIPE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #-2
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_sock_fmterror
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't send more than %u bytes with sock_recv"

	.comm	_errno,4,2                      ; @errno
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.1:                               ; @.str.1
	.asciz	"send(): "

	.comm	_MSG_NOSIGNAL,4,2               ; @MSG_NOSIGNAL
	.comm	_WSAECONNABORTED,4,2            ; @WSAECONNABORTED
	.comm	_WSAECONNRESET,4,2              ; @WSAECONNRESET
.subsections_via_symbols
