	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rawv6_recvmsg
_rawv6_recvmsg:                         ## @rawv6_recvmsg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	16(%rbp), %r15
	movq	%rsi, %rdi
	callq	_inet6_sk
	movq	_MSG_OOB@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r12d, %r8d
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %r12
	movq	%rbx, %rdi
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_MSG_ERRQUEUE@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_4
## %bb.27:
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipv6_recv_error                ## TAILCALL
LBB0_4:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	8(%r14), %rbx
	leaq	-44(%rbp), %rcx
	movq	%rdi, %r14
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, %esi
	callq	_skb_recv_datagram
	testq	%rax, %rax
	je	LBB0_24
## %bb.5:
	movq	%rax, %r13
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r12, %rax
	jbe	LBB0_7
## %bb.6:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
LBB0_7:
	movq	%r13, %rdi
	callq	_skb_csum_unnecessary
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movl	4(%r15), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_skb_copy_datagram_iovec
	movl	%eax, -44(%rbp)
LBB0_14:
	testl	%eax, %eax
	jne	LBB0_23
## %bb.15:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_19
## %bb.16:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	$0, 24(%r12)
	leaq	8(%r12), %rbx
	movq	%r13, %rdi
	callq	_ipv6_hdr
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ipv6_addr_copy
	movq	$0, 16(%r12)
	movq	$0, (%r12)
	movq	%rbx, %rdi
	callq	_ipv6_addr_type
	movq	_IPV6_ADDR_LINKLOCAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	callq	_IP6CB
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_18:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$40, (%rax)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_sock_recv_ts_and_drops
	cmpq	$0, (%rbx)
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_datagram_recv_ctl
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -44(%rbp)
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_23
## %bb.22:
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
LBB0_23:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_skb_free_datagram
LBB0_24:
	movl	-44(%rbp), %eax
	jmp	LBB0_2
LBB0_9:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	callq	___skb_checksum_complete
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_8
LBB0_13:
	movl	4(%r15), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_skb_copy_and_csum_datagram_iovec
	movl	%eax, -44(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_14
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_skb_kill_datagram
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	jne	LBB0_12
## %bb.25:
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_12:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	%r14, %rdi
	callq	_atomic_inc
	movl	-44(%rbp), %eax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MSG_ERRQUEUE,4,2               ## @MSG_ERRQUEUE
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ## @IPV6_ADDR_LINKLOCAL
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.no_dead_strip	_rawv6_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rawv6_recvmsg
_rawv6_recvmsg:                         ; @rawv6_recvmsg
	.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	x23, x6
	mov	x20, x5
	mov	x22, x4
	mov	x26, x3
	mov	x21, x2
	mov	x19, x1
	mov	x0, x1
	bl	_inet6_sk
Lloh0:
	adrp	x8, _MSG_OOB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_OOB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
Lloh6:
	adrp	x8, _MSG_ERRQUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERRQUEUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x26
	mov	x3, x23
	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
	b	_ipv6_recv_error
LBB0_5:
	mov	x24, x0
	ldr	x27, [x21, #8]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_skb_recv_datagram
	cbz	x0, LBB0_24
; %bb.6:
	mov	x22, x0
	ldr	x25, [x0]
	cmp	x25, x26
	b.ls	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x25, x26
LBB0_8:
	mov	x0, x22
	bl	_skb_csum_unnecessary
	cbz	x0, LBB0_20
LBB0_9:
	ldr	w2, [x21, #4]
	mov	x0, x22
	mov	w1, #0
	mov	x3, x25
	bl	_skb_copy_datagram_iovec
	str	w0, [sp, #12]
LBB0_10:
	cbnz	w0, LBB0_19
; %bb.11:
	cbz	x27, LBB0_15
; %bb.12:
Lloh12:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x27, #32]
	str	xzr, [x27, #24]
	add	x26, x27, #8
	mov	x0, x22
	bl	_ipv6_hdr
	mov	x1, x0
	mov	x0, x26
	bl	_ipv6_addr_copy
	str	xzr, [x27, #16]
	str	xzr, [x27]
	mov	x0, x26
	bl	_ipv6_addr_type
Lloh15:
	adrp	x8, _IPV6_ADDR_LINKLOCAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPV6_ADDR_LINKLOCAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x22
	bl	_IP6CB
	ldr	x8, [x0]
	str	x8, [x27]
LBB0_14:
	mov	w8, #40
	str	w8, [x23]
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_sock_recv_ts_and_drops
	ldr	x8, [x24]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_datagram_recv_ctl
LBB0_17:
	str	w25, [sp, #12]
Lloh18:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:
	ldr	x8, [x22]
	str	w8, [sp, #12]
LBB0_19:
	mov	x0, x19
	mov	x1, x22
	bl	_skb_free_datagram
	b	LBB0_24
LBB0_20:
	ldr	w8, [x21]
Lloh21:
	adrp	x9, _MSG_TRUNC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MSG_TRUNC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x22
	bl	___skb_checksum_complete
	cbnz	x0, LBB0_23
	b	LBB0_9
LBB0_22:
	ldr	w2, [x21, #4]
	mov	x0, x22
	mov	w1, #0
	bl	_skb_copy_and_csum_datagram_iovec
	str	w0, [sp, #12]
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_23:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_skb_kill_datagram
Lloh27:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh29:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh31:
	adrp	x10, _EHOSTUNREACH@GOTPAGE
Lloh32:
	ldr	x10, [x10, _EHOSTUNREACH@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_atomic_inc
LBB0_24:
	ldr	w0, [sp, #12]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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 AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MSG_ERRQUEUE,4,2               ; @MSG_ERRQUEUE
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ; @IPV6_ADDR_LINKLOCAL
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.no_dead_strip	_rawv6_recvmsg
.subsections_via_symbols
