	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_iw_process_recv
_rds_iw_process_recv:                   ## @rds_iw_process_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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	(%r12), %r13
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	_rdsdebug
	cmpl	$55, %r14d
	ja	LBB0_1
## %bb.20:
	leaq	4(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rds_iw_conn_error              ## TAILCALL
LBB0_1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	subq	16(%r12), %r15
	movq	24(%r12), %r13
	sarq	$4, %r15
	imulq	$56, %r15, %r15
	leaq	(%r15,%r13), %rbx
	movq	%rbx, %rdi
	callq	_rds_message_verify_checksum
	testl	%eax, %eax
	je	LBB0_21
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_be64_to_cpu
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
	movl	$1, (%rcx)
	movq	48(%r13,%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rds_iw_send_add_credits
LBB0_4:
	movq	8(%r13,%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_8
## %bb.9:
	movq	40(%r14), %rcx
	cmpq	40(%r13,%r15), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_23
## %bb.10:
	movq	24(%r14), %rcx
	cmpq	24(%r13,%r15), %rcx
	jne	LBB0_23
## %bb.11:
	cmpq	%rax, 8(%r14)
	jne	LBB0_23
## %bb.12:
	movq	16(%r14), %rax
	cmpq	16(%r13,%r15), %rax
	je	LBB0_13
LBB0_23:
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rds_iw_conn_error              ## TAILCALL
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	4(%rdi), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_rds_iw_conn_error
	movq	_s_recv_drop_bad_checksum@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rds_stats_inc                  ## TAILCALL
LBB0_5:
	cmpl	$56, %r14d
	jne	LBB0_7
## %bb.6:
	cmpq	$0, 16(%r13,%r15)
	jne	LBB0_7
## %bb.22:
	movq	_s_iw_ack_received@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_iw_stats_inc
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rds_iw_frag_drop_page          ## TAILCALL
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %r14
	movq	$0, 8(%rbx)
	movq	%r14, (%r12)
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$56, %edx
	callq	_memcpy
	movq	24(%r14), %rdi
	callq	_be32_to_cpu
	movq	%rax, 8(%r12)
	movl	32(%r14), %r8d
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_rdsdebug
LBB0_13:
	movq	(%rbx), %rdi
	leaq	56(%r14), %rsi
	callq	_list_add_tail
	movq	$0, (%rbx)
	movq	8(%r12), %rax
	movq	_RDS_FRAG_SIZE@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	jbe	LBB0_14
## %bb.24:
	sarq	$4, %rax
	movq	%rax, 8(%r12)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movslq	32(%r14), %rax
	movq	_RDS_FLAG_CONG_BITMAP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_rds_iw_cong_recv
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KM_SOFTIRQ0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rcx
	callq	_rds_recv_incoming
	movq	40(%r14), %rdi
	callq	_be64_to_cpu
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movl	$1, 4(%rbx)
LBB0_17:
	movq	_RDS_FLAG_ACK_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r14)
	je	LBB0_19
## %bb.18:
	movq	_s_recv_ack_required@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_stats_inc
	movl	$1, 8(%rbx)
LBB0_19:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rds_inc_put                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ic %p iwinc %p recv %p byte len %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"incoming message from %pI4 didn't include a header, disconnecting and reconnecting\n"

L_.str.2:                               ## @.str.2
	.asciz	"incoming message from %pI4 has corrupted header - forcing a reconnect\n"

	.comm	_s_recv_drop_bad_checksum,4,2   ## @s_recv_drop_bad_checksum
	.comm	_s_iw_ack_received,4,2          ## @s_iw_ack_received
L_.str.3:                               ## @.str.3
	.asciz	"ic %p iwinc %p rem %u flag 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"fragment header mismatch; forcing reconnect\n"

	.comm	_RDS_FRAG_SIZE,8,3              ## @RDS_FRAG_SIZE
	.comm	_RDS_FLAG_CONG_BITMAP,8,3       ## @RDS_FLAG_CONG_BITMAP
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_KM_SOFTIRQ0,4,2                ## @KM_SOFTIRQ0
	.comm	_RDS_FLAG_ACK_REQUIRED,4,2      ## @RDS_FLAG_ACK_REQUIRED
	.comm	_s_recv_ack_required,4,2        ## @s_recv_ack_required
	.no_dead_strip	_rds_iw_process_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_iw_process_recv
_rds_iw_process_recv:                   ; @rds_iw_process_recv
	.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, x3
	mov	x24, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	ldr	x20, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	mov	x4, x24
	bl	_rdsdebug
	cmp	w24, #55
	b.hi	LBB0_3
; %bb.1:
	add	x8, x21, #4
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_rds_iw_conn_error
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:
	ldp	x8, x26, [x22, #16]
	sub	x8, x23, x8
	asr	x27, x8, #4
	mov	w8, #56
	madd	x25, x27, x8, x26
	mov	x0, x25
	bl	_rds_message_verify_checksum
	cbz	w0, LBB0_13
; %bb.4:
	ldr	x0, [x25]
	bl	_be64_to_cpu
	str	x0, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	mov	w8, #56
	madd	x8, x27, x8, x26
	ldr	x1, [x8, #48]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_rds_iw_send_add_credits
LBB0_6:
	mov	w8, #56
	madd	x8, x27, x8, x26
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_14
LBB0_7:
	cbz	x20, LBB0_17
; %bb.8:
	ldr	x9, [x20, #40]
	mov	w10, #56
	madd	x10, x27, x10, x26
	ldr	x10, [x10, #40]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.9:
	ldr	x9, [x20, #24]
	mov	w10, #56
	madd	x10, x27, x10, x26
	ldr	x10, [x10, #24]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.10:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x20, #16]
	mov	w9, #56
	madd	x9, x27, x9, x26
	ldr	x9, [x9, #16]
	cmp	x8, x9
	b.eq	LBB0_18
LBB0_12:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	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	_rds_iw_conn_error
LBB0_13:
	add	x8, x21, #4
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_rds_iw_conn_error
Lloh8:
	adrp	x8, _s_recv_drop_bad_checksum@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s_recv_drop_bad_checksum@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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	_rds_stats_inc
LBB0_14:
	cmp	w24, #56
	b.ne	LBB0_7
; %bb.15:
	mov	w9, #56
	madd	x9, x27, x9, x26
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_7
; %bb.16:
Lloh11:
	adrp	x8, _s_iw_ack_received@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_iw_ack_received@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_rds_iw_stats_inc
	ldr	x0, [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	_rds_iw_frag_drop_page
LBB0_17:
	ldr	x20, [x23, #8]
	str	xzr, [x23, #8]
	str	x20, [x22]
	mov	x0, x20
	mov	x1, x25
	mov	w2, #56
	bl	_memcpy
	ldr	x0, [x20, #24]
	bl	_be32_to_cpu
	mov	x3, x0
	str	x0, [x22, #8]
	ldr	w4, [x20, #32]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_rdsdebug
LBB0_18:
	ldr	x0, [x23]
	add	x1, x20, #56
	bl	_list_add_tail
	str	xzr, [x23]
	ldr	x8, [x22, #8]
Lloh16:
	adrp	x9, _RDS_FRAG_SIZE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RDS_FRAG_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	subs	x8, x8, x9
	b.ls	LBB0_20
; %bb.19:
	asr	x8, x8, #4
	str	x8, [x22, #8]
	b	LBB0_2
LBB0_20:
	stp	xzr, xzr, [x22]
	ldrsw	x8, [x20, #32]
Lloh19:
	adrp	x9, _RDS_FLAG_CONG_BITMAP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RDS_FLAG_CONG_BITMAP@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x21
	mov	x1, x20
	bl	_rds_iw_cong_recv
	b	LBB0_23
LBB0_22:
	ldp	w2, w1, [x21]
Lloh22:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
Lloh25:
	adrp	x8, _KM_SOFTIRQ0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KM_SOFTIRQ0@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x3, x20
	bl	_rds_recv_incoming
	ldr	x0, [x20, #40]
	bl	_be64_to_cpu
	str	x0, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_23:
	ldr	w8, [x20, #32]
Lloh28:
	adrp	x9, _RDS_FLAG_ACK_REQUIRED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RDS_FLAG_ACK_REQUIRED@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
Lloh31:
	adrp	x8, _s_recv_ack_required@GOTPAGE
Lloh32:
	ldr	x8, [x8, _s_recv_ack_required@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_rds_stats_inc
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_25:
	mov	x0, x20
	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	_rds_inc_put
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ic %p iwinc %p recv %p byte len %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"incoming message from %pI4 didn't include a header, disconnecting and reconnecting\n"

l_.str.2:                               ; @.str.2
	.asciz	"incoming message from %pI4 has corrupted header - forcing a reconnect\n"

	.comm	_s_recv_drop_bad_checksum,4,2   ; @s_recv_drop_bad_checksum
	.comm	_s_iw_ack_received,4,2          ; @s_iw_ack_received
l_.str.3:                               ; @.str.3
	.asciz	"ic %p iwinc %p rem %u flag 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"fragment header mismatch; forcing reconnect\n"

	.comm	_RDS_FRAG_SIZE,8,3              ; @RDS_FRAG_SIZE
	.comm	_RDS_FLAG_CONG_BITMAP,8,3       ; @RDS_FLAG_CONG_BITMAP
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_KM_SOFTIRQ0,4,2                ; @KM_SOFTIRQ0
	.comm	_RDS_FLAG_ACK_REQUIRED,4,2      ; @RDS_FLAG_ACK_REQUIRED
	.comm	_s_recv_ack_required,4,2        ; @s_recv_ack_required
	.no_dead_strip	_rds_iw_process_recv
.subsections_via_symbols
