	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_sendv_udp
_ds_sendv_udp:                          ## @ds_sendv_udp
	.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
	subq	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$9, %edx
	jl	LBB0_3
## %bb.1:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.2:
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_3:
	movl	%r8d, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	%ecx, -180(%rbp)                ## 4-byte Spill
	movq	_DS_UDP_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htobe32
	movq	%rax, -224(%rbp)
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, -280(%rbp)
	movl	%r13d, -232(%rbp)
	movq	$0, -240(%rbp)
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	andl	(%rax), %edi
	callq	_htobe32
	movq	%rax, -248(%rbp)
	movq	8(%r15), %rax
	movq	8(%rax), %rsi
	cmpl	$4, (%rsi)
	jne	LBB0_5
## %bb.4:
	movq	_DS_UDP_IPV4_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	24(%rsi), %eax
	movl	%eax, -256(%rbp)
	jmp	LBB0_6
LBB0_5:
	movq	_DS_UDP_IPV6_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$8, %rsi
	movl	$16, %edx
	callq	_memcpy
LBB0_6:
	movq	%rbx, -272(%rbp)
	leaq	-280(%rbp), %rax
	movq	%rax, -168(%rbp)
	movq	%rbx, -176(%rbp)
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	leaq	-160(%rbp), %rdi
	movl	%r14d, %edx
	shll	$4, %edx
	movq	%r12, %rsi
	callq	_memcpy
LBB0_9:
	leaq	-216(%rbp), %r12
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	8(%r15), %rdi
	movq	%rdi, -192(%rbp)
	callq	_ucma_addrlen
	movl	%eax, -200(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, -208(%rbp)
	incl	%r14d
	movl	%r14d, -216(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	-180(%rbp), %edx                ## 4-byte Reload
	callq	_sendmsg
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:
	movq	-272(%rbp), %r13
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	subq	%r13, %rax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_DS_UDP_TAG,4,2                 ## @DS_UDP_TAG
	.comm	_DS_UDP_IPV4_HDR_LEN,8,3        ## @DS_UDP_IPV4_HDR_LEN
	.comm	_DS_UDP_IPV6_HDR_LEN,8,3        ## @DS_UDP_IPV6_HDR_LEN
	.no_dead_strip	_ds_sendv_udp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_sendv_udp
_ds_sendv_udp:                          ; @ds_sendv_udp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w2, #9
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.2:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #304
	b	_ERR
LBB0_3:
	mov	x23, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh9:
	adrp	x8, _DS_UDP_TAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DS_UDP_TAG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htobe32
	str	x0, [sp, #96]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	str	w9, [sp, #40]
	str	w23, [sp, #88]
	str	xzr, [sp, #80]
	ldr	x8, [x8, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
	and	w0, w8, #0xffffff
	bl	_htobe32
	str	x0, [sp, #72]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	cmp	w9, #4
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x9, _DS_UDP_IPV4_HDR_LEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DS_UDP_IPV4_HDR_LEN@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x9]
	ldr	w8, [x8, #24]
	str	w8, [sp, #64]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x9, _DS_UDP_IPV6_HDR_LEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DS_UDP_IPV6_HDR_LEN@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x9]
	add	x1, x8, #8
	mov	w2, #16
	bl	_memcpy
LBB0_6:
	str	x23, [sp, #48]
	add	x8, sp, #40
	stp	x23, x8, [sp, #104]
	cbz	x22, LBB0_9
; %bb.7:
	cbz	w21, LBB0_9
; %bb.8:
	add	x8, sp, #104
	add	x0, x8, #16
	lsl	w2, w21, #4
	mov	x1, x22
	bl	_memcpy
LBB0_9:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x0, [x20, #8]
	str	x0, [sp, #32]
	bl	_ucma_addrlen
	str	w0, [sp, #24]
	add	x8, sp, #104
	str	x8, [sp, #16]
	add	w8, w21, #1
	str	w8, [sp, #8]
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	x2, x19
	bl	_sendmsg
	ldr	x8, [sp, #48]
	cmp	x0, #0
	csel	x8, x8, xzr, gt
	ldur	x9, [x29, #-56]
Lloh18:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_11
; %bb.10:
	sub	x0, x0, x8
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_DS_UDP_TAG,4,2                 ; @DS_UDP_TAG
	.comm	_DS_UDP_IPV4_HDR_LEN,8,3        ; @DS_UDP_IPV4_HDR_LEN
	.comm	_DS_UDP_IPV6_HDR_LEN,8,3        ; @DS_UDP_IPV6_HDR_LEN
	.no_dead_strip	_ds_sendv_udp
.subsections_via_symbols
