	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_msghdr_send
_build_msghdr_send:                     ## @build_msghdr_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	cmpl	$0, 24(%rbx)
	movl	$0, %eax
	jne	LBB0_2
## %bb.1:
	leaq	48(%r14), %r15
	movq	40(%r14), %rax
LBB0_2:
	movq	%r15, 64(%r12)
	movq	%rax, 56(%r12)
	movl	32(%r14), %edi
	callq	_ISC_LIST_HEAD
	testq	%rax, %rax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	(%r14), %r14
	movq	_link@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ISC_BUFFER_VALID
	movl	%eax, %edi
	callq	_REQUIRE
	movq	%rbx, %rdi
	callq	_isc_buffer_usedlength
	cmpq	%rax, %r14
	jb	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_isc_buffer_usedlength
	subq	%rax, %r14
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ISC_LIST_NEXT
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_12:
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_INSIST
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_3:
	movq	(%r14), %rax
	movq	16(%r14), %r13
	subq	%rax, %r13
	addq	24(%r14), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 8(%rdx)
	movq	%r13, (%rdx)
	movl	$1, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_13:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rdx, 48(%rcx)
	movl	%r12d, (%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r13, (%rax)
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ISC_LIST_NEXT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	_MAXSCATTERGATHER_SEND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	setb	%dil
	callq	_INSIST
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	callq	_isc_buffer_usedregion
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	subq	%r14, %rax
	addq	-72(%rbp), %r14
	movl	%r12d, %ecx
	shlq	$4, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, 8(%rdx,%rcx)
	movq	%rax, (%rdx,%rcx)
	addq	%rax, %r13
	incl	%r12d
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_link,4,2                       ## @link
	.comm	_MAXSCATTERGATHER_SEND,4,2      ## @MAXSCATTERGATHER_SEND
	.comm	_IPPROTO_IPV6,8,3               ## @IPPROTO_IPV6
	.comm	_IPV6_PKTINFO,4,2               ## @IPV6_PKTINFO
	.comm	_IPV6_USE_MIN_MTU,4,2           ## @IPV6_USE_MIN_MTU
	.comm	_ISC_MSGSET_SOCKET,4,2          ## @ISC_MSGSET_SOCKET
	.comm	_ISC_MSG_SENDTODATA,4,2         ## @ISC_MSG_SENDTODATA
	.comm	_ISC_SOCKEVENTATTR_PKTINFO,4,2  ## @ISC_SOCKEVENTATTR_PKTINFO
	.comm	_TRACE,4,2                      ## @TRACE
	.comm	_isc_msgcat,4,2                 ## @isc_msgcat
	.comm	_isc_sockettype_udp,8,3         ## @isc_sockettype_udp
	.no_dead_strip	_build_msghdr_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_msghdr_send
_build_msghdr_send:                     ; @build_msghdr_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x8, #0
	mov	x9, #0
	b	LBB0_3
LBB0_2:
	add	x8, x23, #48
	ldr	x9, [x23, #40]
LBB0_3:
	stp	x9, x8, [x20, #56]
	ldr	w0, [x23, #32]
	bl	_ISC_LIST_HEAD
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	ldr	x23, [x23]
Lloh0:
	adrp	x24, _link@GOTPAGE
Lloh1:
	ldr	x24, [x24, _link@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ISC_BUFFER_VALID
	bl	_REQUIRE
	mov	x0, x22
	bl	_isc_buffer_usedlength
	cmp	x23, x0
	b.lo	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_isc_buffer_usedlength
	sub	x23, x23, x0
	ldr	w1, [x24]
	mov	x0, x22
	bl	_ISC_LIST_NEXT
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.7:
	mov	w26, #0
	mov	x25, #0
LBB0_8:
	cmp	x23, #0
	cset	w0, eq
	bl	_INSIST
	b	LBB0_10
LBB0_9:
	ldr	x8, [x23]
	ldp	x9, x10, [x23, #16]
	sub	x25, x9, x8
	add	x8, x10, x8
	stp	x25, x8, [x21]
	mov	w26, #1
LBB0_10:
	str	x21, [x20, #48]
	str	w26, [x20]
	stp	xzr, xzr, [x20, #16]
	cbz	x19, LBB0_12
; %bb.11:
	str	x25, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	x25, #0
	mov	w26, #0
Lloh2:
	adrp	x27, _MAXSCATTERGATHER_SEND@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MAXSCATTERGATHER_SEND@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w1, [x24]
	mov	x0, x22
	bl	_ISC_LIST_NEXT
	mov	x22, x0
	cbz	x0, LBB0_8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cmp	w26, w8
	cset	w0, lo
	bl	_INSIST
	mov	x1, sp
	mov	x0, x22
	bl	_isc_buffer_usedregion
	ldr	x8, [sp]
	cbz	x8, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [sp, #8]
	add	x9, x9, x23
	add	x10, x21, w26, uxtw #4
	sub	x8, x8, x23
	add	x25, x8, x25
	stp	x8, x9, [x10]
	add	w26, w26, #1
	mov	x23, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_link,4,2                       ; @link
	.comm	_MAXSCATTERGATHER_SEND,4,2      ; @MAXSCATTERGATHER_SEND
	.comm	_IPPROTO_IPV6,8,3               ; @IPPROTO_IPV6
	.comm	_IPV6_PKTINFO,4,2               ; @IPV6_PKTINFO
	.comm	_IPV6_USE_MIN_MTU,4,2           ; @IPV6_USE_MIN_MTU
	.comm	_ISC_MSGSET_SOCKET,4,2          ; @ISC_MSGSET_SOCKET
	.comm	_ISC_MSG_SENDTODATA,4,2         ; @ISC_MSG_SENDTODATA
	.comm	_ISC_SOCKEVENTATTR_PKTINFO,4,2  ; @ISC_SOCKEVENTATTR_PKTINFO
	.comm	_TRACE,4,2                      ; @TRACE
	.comm	_isc_msgcat,4,2                 ; @isc_msgcat
	.comm	_isc_sockettype_udp,8,3         ; @isc_sockettype_udp
	.no_dead_strip	_build_msghdr_send
.subsections_via_symbols
