	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_internal_sendmsg               ## -- Begin function internal_sendmsg
	.p2align	4, 0x90
_internal_sendmsg:                      ## @internal_sendmsg
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r8d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, (%r15)
	movl	8(%rdi), %edi
	movl	12(%rdx), %esi
	movl	(%rdx), %r10d
	movl	8(%rdx), %eax
	leaq	4(%rdx), %r9
	subq	$8, %rsp
	leaq	-36(%rbp), %rcx
	movl	%eax, %edx
	pushq	$0
	pushq	%r14
	pushq	%r10
	callq	_WSASendTo
	addq	$32, %rsp
	movl	-36(%rbp), %r12d
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movl	%eax, %ecx
	movl	%eax, (%r15)
	andl	$-4, %ecx
	movl	$-1, %eax
	cmpl	$128, %ecx
	jne	LBB0_3
LBB0_2:
	incl	4(%rbx)
	incl	(%rbx)
	xorl	%eax, %eax
	testq	%r14, %r14
	cmovel	%r12d, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_internal_sendmsg               ; -- Begin function internal_sendmsg
	.p2align	2
_internal_sendmsg:                      ; @internal_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x4
	mov	x4, x3
	mov	x19, x1
	mov	x20, x0
	str	wzr, [x21]
	ldr	w0, [x0, #8]
	ldp	w8, w1, [x2, #8]
	add	x5, x2, #4
	ldr	w6, [x2]
	str	xzr, [sp]
	add	x3, sp, #12
	mov	x2, x8
	mov	x7, x19
	bl	_WSASendTo
	ldr	w22, [sp, #12]
Lloh0:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	bl	_WSAGetLastError
	str	w0, [x21]
	and	w8, w0, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_3
LBB0_2:
	ldr	d0, [x20]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x20]
	cmp	x19, #0
	csel	w0, w22, wzr, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
.subsections_via_symbols
