	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_writer                     ## -- Begin function udp_writer
	.p2align	4, 0x90
_udp_writer:                            ## @udp_writer
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %ecx
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_U_ERRQ@GOTPCREL(%rip), %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	(%r12), %eax
	testl	%eax, (%r15)
	jne	LBB0_34
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_sendmmsg_supported@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setns	%al
	movl	%r14d, %ecx
	xorb	$1, %cl
	testb	%cl, %al
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	$1, %esi
	callq	_prepare_write_chain
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movl	32(%r15), %edi
	movq	_udp_send_msgvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$4, %rsi
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_sendmsg
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_2
	jmp	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	_MAX_UDP_SEND_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_prepare_write_chain
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_assert
	movl	32(%r15), %edi
	movq	_udp_send_msgvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_our_sendmmsg
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r14d, %r14d
	movq	_sendmmsg_supported@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=2
	movb	$1, %r14b
	movq	_EPERM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_udp_send_msgvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, (%rax)
	movl	$1, %ebx
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	%ebx, -44(%rbp)                 ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_EPERM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rax
	movl	24(%rax), %edi
	callq	_show_ipv6
	movq	%rax, %r14
	movq	24(%r15), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_strerror
	movl	$2, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_vkprintf
	movq	24(%r15), %rsi
	movq	40(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movb	$1, %r14b
	movl	$1, %ebx
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r15), %rbx
	movq	_udp_send_msgvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax,%r12,8), %rax
	cmpq	%rax, 16(%rbx)
	sete	%al
	orb	%r14b, %al
	movzbl	%al, %edi
	callq	_assert
	movl	16(%rbx), %eax
	subl	%eax, 8(%r15)
	decl	4(%r15)
	movq	8(%rbx), %rax
	movq	%rax, 24(%r15)
	movq	%rbx, %rdi
	callq	_free_udp_message
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_U_ERRQ@GOTPCREL(%rip), %r12
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpq	$0, 24(%r15)
	jne	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 16(%r15)
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	%r14b, %r14b
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.5(%rip), %rax
	cmovneq	%rax, %rcx
	movl	4(%r15), %eax
	movl	8(%r15), %r9d
	movl	%eax, (%rsp)
	movl	$2, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_vkprintf
	jmp	LBB0_1
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	jne	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_U_NOWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	cmpq	$0, 24(%r15)
	jne	LBB0_31
	jmp	LBB0_30
LBB0_9:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rcx
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rdx
	movq	_ENETUNREACH@GOTPCREL(%rip), %rsi
	movq	_ENONET@GOTPCREL(%rip), %rdi
	movq	_EMSGSIZE@GOTPCREL(%rip), %r8
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %r9
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %r10
	movd	%r13d, %xmm0
	movd	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, (%rcx), %xmm1
	pinsrd	$2, (%rdx), %xmm1
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pinsrd	$3, (%rsi), %xmm1
	movd	(%rdi), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, (%r8), %xmm2
	pinsrd	$2, (%r9), %xmm2
	pinsrd	$3, (%r10), %xmm2
	pcmpeqd	%xmm0, %xmm2
	pcmpeqd	%xmm0, %xmm1
	packssdw	%xmm2, %xmm1
	psllw	$15, %xmm1
	pmovmskb	%xmm1, %eax
	testl	$43690, %eax                    ## imm = 0xAAAA
	jne	LBB0_32
## %bb.10:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_32
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	movl	24(%rax), %edi
	callq	_show_ipv6
	movq	%rax, %r12
	movq	24(%r15), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_20
LBB0_17:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rcx
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rdx
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rsi
	movq	_ENETUNREACH@GOTPCREL(%rip), %rdi
	movq	_ENONET@GOTPCREL(%rip), %r11
	movq	_EMSGSIZE@GOTPCREL(%rip), %r8
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %r9
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %r10
	movd	%eax, %xmm0
	movd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm1
	pinsrd	$2, (%rsi), %xmm1
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pinsrd	$3, (%rdi), %xmm1
	movd	(%r11), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, (%r8), %xmm2
	pinsrd	$2, (%r9), %xmm2
	pinsrd	$3, (%r10), %xmm2
	pcmpeqd	%xmm0, %xmm2
	pcmpeqd	%xmm0, %xmm1
	packssdw	%xmm2, %xmm1
	psllw	$15, %xmm1
	pmovmskb	%xmm1, %ecx
	testl	$43690, %ecx                    ## imm = 0xAAAA
	jne	LBB0_32
## %bb.18:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_32
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_20:
	movq	_U_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_U_NOWR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_33
LBB0_32:
	movl	(%r15), %eax
LBB0_33:
	orl	(%r12), %eax
	movl	%eax, (%r15)
LBB0_34:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udp_writer: %d bytes in %d messages in queue\n"

	.comm	_U_ERRQ,4,2                     ## @U_ERRQ
	.comm	_sendmmsg_supported,8,3         ## @sendmmsg_supported
	.comm	_udp_send_msgvec,8,3            ## @udp_send_msgvec
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_errno,4,2                      ## @errno
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"error in sendmsg() to [%s]:%d: %s, dropping message\n"

	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_EHOSTDOWN,4,2                  ## @EHOSTDOWN
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_ENONET,4,2                     ## @ENONET
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"error in sendmsg() to [%s]:%d: %s\n"

	.comm	_U_NOWR,4,2                     ## @U_NOWR
	.comm	_U_ERROR,4,2                    ## @U_ERROR
	.comm	_MAX_UDP_SEND_BUFFERS,4,2       ## @MAX_UDP_SEND_BUFFERS
L_.str.3:                               ## @.str.3
	.asciz	"error in sendmmsg(): %m\n"

L_.str.4:                               ## @.str.4
	.asciz	"sendmmsg: %d datagrams %s (%d total); %d bytes in %d messages still in queue\n"

L_.str.5:                               ## @.str.5
	.asciz	"dropped"

L_.str.6:                               ## @.str.6
	.asciz	"sent"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_writer                     ; -- Begin function udp_writer
	.p2align	2
_udp_writer:                            ; @udp_writer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	w9, w8, [x0, #4]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	mov	w20, #0
Lloh2:
	adrp	x26, _U_ERRQ@GOTPAGE
Lloh3:
	ldr	x26, [x26, _U_ERRQ@GOTPAGEOFF]
Lloh4:
	adrp	x27, _sendmmsg_supported@GOTPAGE
Lloh5:
	ldr	x27, [x27, _sendmmsg_supported@GOTPAGEOFF]
Lloh6:
	adrp	x28, _udp_send_msgvec@GOTPAGE
Lloh7:
	ldr	x28, [x28, _udp_send_msgvec@GOTPAGEOFF]
Lloh8:
	adrp	x25, _MSG_DONTWAIT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh10:
	adrp	x22, _EINTR@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	mov	w21, #0
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_45
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	w8, [x19]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_45
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x8, [x27]
	cmp	x8, #0
	cset	w8, ge
	eor	w9, w21, #0x1
	and	w8, w8, w9
	tbnz	w8, #0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	w1, #1
	bl	_prepare_write_chain
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19, #32]
	ldr	x8, [x28]
	add	x1, x8, #4
	ldr	w2, [x25]
	bl	_sendmsg
	mov	x23, x0
	tbz	w0, #31, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=2
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	ldr	w8, [x22]
Lloh15:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.eq	LBB0_2
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=2
Lloh18:
	adrp	x8, _MAX_UDP_SEND_BUFFERS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_UDP_SEND_BUFFERS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_prepare_write_chain
	mov	x23, x0
	cmp	w0, #0
	cset	w0, gt
	bl	_assert
	ldr	w0, [x19, #32]
	ldr	x1, [x28]
	ldr	w3, [x25]
	mov	x2, x23
	bl	_our_sendmmsg
	mov	x24, x0
	tbz	w0, #31, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	w21, #0
	ldr	x8, [x27]
	tbnz	x8, #63, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	w21, #0
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=2
Lloh24:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=2
Lloh27:
	adrp	x9, _EPERM@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	mov	w21, #1
	cmp	w8, w9
	b.eq	LBB0_2
	b	LBB0_33
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28]
	str	w23, [x8]
	mov	w24, #1
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w21, #0
	add	w20, w24, w20
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh30:
	adrp	x8, _EPERM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #24]
	bl	_show_ipv6
	mov	x23, x0
	ldr	x8, [x19, #24]
	ldr	w20, [x8]
	mov	x0, x24
	bl	_strerror
	stp	x20, x0, [sp, #8]
	str	x23, [sp]
	mov	w0, #2
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_vkprintf
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x1, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	w24, #1
	mov	w21, #1
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, #0
	str	x24, [sp, #56]                  ; 8-byte Folded Spill
	mov	w20, w24
LBB0_17:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x19, #24]
	ldr	x8, [x28]
	ldrsw	x8, [x8, x23]
	ldr	x9, [x24, #16]
	cmp	x9, x8
	cset	w8, eq
	orr	w0, w21, w8
	bl	_assert
	ldr	w8, [x24, #16]
	ldp	w10, w9, [x19, #4]
	sub	w8, w9, w8
	sub	w9, w10, #1
	stp	w9, w8, [x19, #4]
	ldr	x8, [x24, #8]
	str	x8, [x19, #24]
	mov	x0, x24
	bl	_free_udp_message
	add	x23, x23, #8
	subs	x20, x20, #1
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	ldp	x20, x11, [sp, #48]             ; 16-byte Folded Reload
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x19, #16]
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w21, #0
Lloh35:
	adrp	x8, l_.str.6@PAGE
Lloh36:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh37:
	adrp	x9, l_.str.5@PAGE
Lloh38:
	add	x9, x9, l_.str.5@PAGEOFF
	csel	x8, x9, x8, ne
	ldp	w10, w9, [x19, #4]
	stp	x9, x10, [sp, #24]
	stp	x8, x20, [sp, #8]
	str	x11, [sp]
	mov	w0, #2
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_vkprintf
	b	LBB0_1
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w24, LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w11, #0
	mov	w21, #0
Lloh41:
	adrp	x8, _U_NOWR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _U_NOWR@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_20
	b	LBB0_19
LBB0_23:
Lloh44:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.24:
Lloh47:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.25:
Lloh50:
	adrp	x8, _EHOSTDOWN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EHOSTDOWN@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.26:
Lloh53:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.27:
Lloh56:
	adrp	x8, _ENONET@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ENONET@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.28:
Lloh59:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.29:
Lloh62:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh63:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.30:
Lloh65:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.31:
Lloh68:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_43
; %bb.32:
Lloh71:
	adrp	x8, _stderr@GOTPAGE
Lloh72:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh73:
	ldr	w20, [x8]
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #24]
	bl	_show_ipv6
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	w22, [x8]
	mov	x0, x24
	bl	_strerror
	stp	x22, x0, [sp, #8]
	str	x21, [sp]
Lloh74:
	adrp	x1, l_.str.2@PAGE
Lloh75:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fprintf
Lloh76:
	adrp	x8, _U_NOWR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _U_NOWR@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
Lloh79:
	adrp	x9, _U_ERROR@GOTPAGE
Lloh80:
	ldr	x9, [x9, _U_ERROR@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x9, x19
	mov	x20, x23
	b	LBB0_44
LBB0_33:
Lloh82:
	adrp	x9, _ECONNREFUSED@GOTPAGE
Lloh83:
	ldr	x9, [x9, _ECONNREFUSED@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.34:
Lloh85:
	adrp	x9, _EHOSTUNREACH@GOTPAGE
Lloh86:
	ldr	x9, [x9, _EHOSTUNREACH@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.35:
Lloh88:
	adrp	x9, _EHOSTDOWN@GOTPAGE
Lloh89:
	ldr	x9, [x9, _EHOSTDOWN@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.36:
Lloh91:
	adrp	x9, _ENETUNREACH@GOTPAGE
Lloh92:
	ldr	x9, [x9, _ENETUNREACH@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.37:
Lloh94:
	adrp	x9, _ENONET@GOTPAGE
Lloh95:
	ldr	x9, [x9, _ENONET@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.38:
Lloh97:
	adrp	x9, _EMSGSIZE@GOTPAGE
Lloh98:
	ldr	x9, [x9, _EMSGSIZE@GOTPAGEOFF]
Lloh99:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.39:
Lloh100:
	adrp	x9, _EOPNOTSUPP@GOTPAGE
Lloh101:
	ldr	x9, [x9, _EOPNOTSUPP@GOTPAGEOFF]
Lloh102:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.40:
Lloh103:
	adrp	x9, _ENOPROTOOPT@GOTPAGE
Lloh104:
	ldr	x9, [x9, _ENOPROTOOPT@GOTPAGEOFF]
Lloh105:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.41:
Lloh106:
	adrp	x9, _ENOBUFS@GOTPAGE
Lloh107:
	ldr	x9, [x9, _ENOBUFS@GOTPAGEOFF]
Lloh108:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_43
; %bb.42:
Lloh109:
	adrp	x8, _stderr@GOTPAGE
Lloh110:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh111:
	ldr	w0, [x8]
Lloh112:
	adrp	x1, l_.str.3@PAGE
Lloh113:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
Lloh114:
	adrp	x8, _U_NOWR@GOTPAGE
Lloh115:
	ldr	x8, [x8, _U_NOWR@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
Lloh117:
	adrp	x9, _U_ERROR@GOTPAGE
Lloh118:
	ldr	x9, [x9, _U_ERROR@GOTPAGEOFF]
Lloh119:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x9, x19
	mov	x20, x24
	b	LBB0_44
LBB0_43:
	ldr	w8, [x19]
Lloh120:
	adrp	x9, _U_ERRQ@GOTPAGE
Lloh121:
	ldr	x9, [x9, _U_ERRQ@GOTPAGEOFF]
LBB0_44:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_45:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh120, Lloh121
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udp_writer: %d bytes in %d messages in queue\n"

	.comm	_U_ERRQ,4,2                     ; @U_ERRQ
	.comm	_sendmmsg_supported,8,3         ; @sendmmsg_supported
	.comm	_udp_send_msgvec,8,3            ; @udp_send_msgvec
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_errno,4,2                      ; @errno
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"error in sendmsg() to [%s]:%d: %s, dropping message\n"

	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_EHOSTDOWN,4,2                  ; @EHOSTDOWN
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_ENONET,4,2                     ; @ENONET
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"error in sendmsg() to [%s]:%d: %s\n"

	.comm	_U_NOWR,4,2                     ; @U_NOWR
	.comm	_U_ERROR,4,2                    ; @U_ERROR
	.comm	_MAX_UDP_SEND_BUFFERS,4,2       ; @MAX_UDP_SEND_BUFFERS
l_.str.3:                               ; @.str.3
	.asciz	"error in sendmmsg(): %m\n"

l_.str.4:                               ; @.str.4
	.asciz	"sendmmsg: %d datagrams %s (%d total); %d bytes in %d messages still in queue\n"

l_.str.5:                               ; @.str.5
	.asciz	"dropped"

l_.str.6:                               ; @.str.6
	.asciz	"sent"

.subsections_via_symbols
