	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_msghdr_recv
_build_msghdr_recv:                     ## @build_msghdr_recv
	.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, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	(%rbx), %rax
	movq	_isc_sockettype_udp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	32(%r13), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	leaq	96(%r13), %rax
	movq	%rax, 56(%r14)
	movl	$16, (%r14)
	jmp	LBB0_3
LBB0_2:
	movq	$0, 56(%r14)
	movl	$0, (%r14)
	movups	104(%rbx), %xmm0
	movups	%xmm0, 96(%r13)
	movups	40(%rbx), %xmm0
	movups	56(%rbx), %xmm1
	movups	72(%rbx), %xmm2
	movups	88(%rbx), %xmm3
	movups	%xmm3, 80(%r13)
	movups	%xmm2, 64(%r13)
	movups	%xmm1, 48(%r13)
	movups	%xmm0, 32(%r13)
LBB0_3:
	movl	24(%r13), %edi
	callq	_ISC_LIST_HEAD
	testq	%rax, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.4:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %r14
	.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_availablelength
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ISC_LIST_NEXT
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_15:
	movq	(%r13), %rax
	movq	8(%r13), %r15
	subq	%rax, %r15
	addq	16(%r13), %rax
	movq	%rax, 8(%r12)
	movq	%r15, (%r12)
	movl	$1, %r13d
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, 48(%rax)
	movl	%r13d, 4(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r15, (%rax)
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %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_RECV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	setb	%dil
	callq	_INSIST
	movq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	callq	_isc_buffer_availableregion
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rcx
	movl	%r13d, %edx
	shlq	$4, %rdx
	movq	%rcx, 8(%r12,%rdx)
	movq	%rax, (%r12,%rdx)
	addq	%rax, %r15
	incl	%r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_isc_sockettype_udp,8,3         ## @isc_sockettype_udp
	.comm	_link,4,2                       ## @link
	.comm	_MAXSCATTERGATHER_RECV,4,2      ## @MAXSCATTERGATHER_RECV
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_UNIX,8,3                    ## @AF_UNIX
	.comm	_maxiov,4,2                     ## @maxiov
	.no_dead_strip	_build_msghdr_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_msghdr_recv
_build_msghdr_recv:                     ; @build_msghdr_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _isc_sockettype_udp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _isc_sockettype_udp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x23, #32
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	add	x8, x23, #96
	str	x8, [x20, #56]
	mov	w8, #16
	str	w8, [x20]
	b	LBB0_3
LBB0_2:
	str	xzr, [x20, #56]
	str	wzr, [x20]
	ldur	q0, [x22, #40]
	str	q0, [x23, #32]
	ldur	q0, [x22, #56]
	ldur	q1, [x22, #72]
	ldur	q2, [x22, #88]
	ldur	q3, [x22, #104]
	stp	q2, q3, [x23, #80]
	stp	q0, q1, [x23, #48]
LBB0_3:
	ldr	w0, [x23, #24]
	bl	_ISC_LIST_HEAD
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
Lloh3:
	adrp	x23, _link@GOTPAGE
Lloh4:
	ldr	x23, [x23, _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_availablelength
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ISC_LIST_NEXT
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.7:
	mov	w25, #0
	mov	x24, #0
	b	LBB0_9
LBB0_8:
	ldp	x9, x8, [x23]
	sub	x24, x8, x9
	ldr	x8, [x23, #16]
	add	x8, x8, x9
	stp	x24, x8, [x21]
	mov	w25, #1
LBB0_9:
	str	x21, [x20, #48]
	str	w25, [x20, #4]
	stp	xzr, xzr, [x20, #8]
	cbz	x19, LBB0_11
; %bb.10:
	str	x24, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x24, #0
	mov	w25, #0
Lloh5:
	adrp	x26, _MAXSCATTERGATHER_RECV@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MAXSCATTERGATHER_RECV@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ISC_LIST_NEXT
	mov	x22, x0
	cbz	x0, LBB0_9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	cmp	w25, w8
	cset	w0, lo
	bl	_INSIST
	mov	x1, sp
	mov	x0, x22
	bl	_isc_buffer_availableregion
	ldr	x8, [sp]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [sp, #8]
	add	x10, x21, w25, uxtw #4
	stp	x8, x9, [x10]
	add	x24, x8, x24
	add	w25, w25, #1
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_isc_sockettype_udp,8,3         ; @isc_sockettype_udp
	.comm	_link,4,2                       ; @link
	.comm	_MAXSCATTERGATHER_RECV,4,2      ; @MAXSCATTERGATHER_RECV
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_UNIX,8,3                    ; @AF_UNIX
	.comm	_maxiov,4,2                     ; @maxiov
	.no_dead_strip	_build_msghdr_recv
.subsections_via_symbols
