	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_recvmsg                    ## -- Begin function rds_recvmsg
	.p2align	4, 0x90
_rds_recvmsg:                           ## @rds_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	%r8d, %r14d
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_rds_sk_to_rs
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r14d, %r15d
	movq	$0, -48(%rbp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sock_rcvtimeo
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_rdsdebug
	xorl	%eax, %eax
	movl	$0, (%r12)
	movq	_MSG_OOB@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_22
## %bb.1:
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%r15)
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_rds_next_incoming
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rbx
	movq	16(%rbx), %r12
	addq	$8, %r12
	movl	4(%rbx), %edi
	callq	_ntohs
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_rdsdebug
	movq	-48(%rbp), %rdi
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rbx, %r12
	movl	16(%rbx), %esi
	movq	%r13, %rbx
	movq	%r13, %rdx
	callq	*(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rsi
	xorl	%edx, %edx
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	sete	%dl
	movq	%r15, %rdi
	callq	_rds_still_queued
	movq	-48(%rbp), %rdi
	testl	%eax, %eax
	jne	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	callq	_rds_inc_put
	movq	$0, -48(%rbp)
	movq	_s_recv_deliver_raced@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_stats_inc
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_empty
	testl	%eax, %eax
	movq	%rbx, %r13
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_31
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_empty
	movb	$1, %cl
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	callq	_rds_next_incoming
	testq	%rax, %rax
	setne	%cl
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %esi
	movl	%r15d, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_wait_event_interruptible_timeout
	movq	%rax, %r15
	movq	-48(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_rdsdebug
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jg	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.15:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_16:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rds_notify_queue_get
	jmp	LBB0_18
LBB0_17:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rds_notify_cong
LBB0_18:
	movl	%eax, %r13d
LBB0_19:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_rds_inc_put
LBB0_21:
	movl	%r13d, %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	8(%rdi), %edi
	callq	_be32_to_cpu
	cmpl	%eax, %r13d
	jge	LBB0_27
## %bb.24:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%r14d, %eax
	je	LBB0_26
## %bb.25:
	movq	-48(%rbp), %rax
	movl	8(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	movl	(%rbx), %eax
LBB0_26:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	orl	%eax, 4(%r12)
LBB0_27:
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_rds_cmsg_recv
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_29:
	movq	_s_recv_delivered@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_stats_inc
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.30:
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	-48(%rbp), %rcx
	movl	4(%rcx), %edx
	movl	%edx, 8(%rax)
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$16, (%r12)
	jmp	LBB0_19
LBB0_31:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_32:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"size %zu flags 0x%x timeo %ld\n"

	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"recvmsg woke inc %p timeo %ld\n"

	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"copying inc %p from %pI4:%u to user\n"

	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_s_recv_deliver_raced,4,2       ## @s_recv_deliver_raced
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_s_recv_delivered,4,2           ## @s_recv_delivered
	.comm	_AF_INET,4,2                    ## @AF_INET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_recvmsg                    ; -- Begin function rds_recvmsg
	.p2align	2
_rds_recvmsg:                           ; @rds_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x21, x3
	mov	x19, x2
	ldr	x22, [x1]
	mov	x0, x22
	bl	_rds_sk_to_rs
	mov	x23, x0
Lloh0:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w24, w8, w20
	str	xzr, [sp, #24]
	mov	x0, x22
	mov	x1, x24
	bl	_sock_rcvtimeo
	mov	x25, x0
	stp	x20, x0, [sp, #8]
	str	x21, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rdsdebug
	mov	w27, #0
	str	wzr, [x19]
Lloh5:
	adrp	x8, _MSG_OOB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_OOB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_27
; %bb.1:
	add	x26, x23, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_list_empty
	cbz	w0, LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	cbnz	x8, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #24
	mov	x0, x23
	bl	_rds_next_incoming
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x27, [sp, #24]
	ldr	x8, [x27, #16]
	add	x28, x8, #8
	ldr	w0, [x27, #4]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x28, x0, [sp, #8]
	str	x27, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rdsdebug
	ldr	x0, [sp, #24]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x19, #16]
	mov	x2, x21
	blr	x8
	mov	x27, x0
	tbnz	w0, #31, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [sp, #24]
Lloh10:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w2, eq
	mov	x0, x23
	bl	_rds_still_queued
	mov	x8, x0
	ldr	x0, [sp, #24]
	cbnz	w8, LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_rds_inc_put
	str	xzr, [sp, #24]
Lloh13:
	adrp	x8, _s_recv_deliver_raced@GOTPAGE
Lloh14:
	ldr	x8, [x8, _s_recv_deliver_raced@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_rds_stats_inc
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w24, LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	w27, [x8]
	mov	x0, x26
	bl	_list_empty
	cbz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w1, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #24
	mov	x0, x23
	bl	_rds_next_incoming
	cmp	x0, #0
	cset	w1, ne
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x27
	mov	x2, x25
	bl	_wait_event_interruptible_timeout
	mov	x25, x0
	ldr	x8, [sp, #24]
	stp	x8, x0, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rdsdebug
Lloh18:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x25, #0
	ccmp	x25, x8, #4, le
	b.eq	LBB0_2
; %bb.14:
	mov	x27, x25
	cbnz	w25, LBB0_19
; %bb.15:
Lloh21:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_31
LBB0_16:
	mov	x0, x23
	mov	x1, x19
	bl	_rds_notify_queue_get
	b	LBB0_18
LBB0_17:
	mov	x0, x23
	mov	x1, x19
	bl	_rds_notify_cong
LBB0_18:
	mov	x27, x0
LBB0_19:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_27
; %bb.20:
	bl	_rds_inc_put
	b	LBB0_27
LBB0_21:
	ldr	w0, [x0, #8]
	bl	_be32_to_cpu
	cmp	w27, w0
	b.ge	LBB0_25
; %bb.22:
Lloh23:
	adrp	x21, _MSG_TRUNC@GOTPAGE
Lloh24:
	ldr	x21, [x21, _MSG_TRUNC@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_24
; %bb.23:
	ldr	x8, [sp, #24]
	ldr	w0, [x8, #8]
	bl	_be32_to_cpu
	mov	x27, x0
	ldr	w8, [x21]
LBB0_24:
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_25:
	ldr	x0, [sp, #24]
	mov	x1, x19
	bl	_rds_cmsg_recv
	cbz	x0, LBB0_28
; %bb.26:
Lloh25:
	adrp	x8, _EFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_27:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_28:
Lloh28:
	adrp	x8, _s_recv_delivered@GOTPAGE
Lloh29:
	ldr	x8, [x8, _s_recv_delivered@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_rds_stats_inc
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_19
; %bb.29:
Lloh31:
	adrp	x9, _AF_INET@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	str	w9, [x8, #12]
	ldr	x9, [sp, #24]
	ldr	d0, [x9]
	stur	d0, [x8, #4]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #16
	str	w8, [x19]
	b	LBB0_19
LBB0_30:
Lloh34:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"size %zu flags 0x%x timeo %ld\n"

	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"recvmsg woke inc %p timeo %ld\n"

	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"copying inc %p from %pI4:%u to user\n"

	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_s_recv_deliver_raced,4,2       ; @s_recv_deliver_raced
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_s_recv_delivered,4,2           ; @s_recv_delivered
	.comm	_AF_INET,4,2                    ; @AF_INET
.subsections_via_symbols
