	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_recv_mpa_rr
_siw_recv_mpa_rr:                       ## @siw_recv_mpa_rr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movl	(%rdi), %eax
	cmpq	$3, %rax
	ja	LBB0_6
## %bb.1:
	leaq	16(%r15), %r12
	movq	%rax, %rsi
	addq	%r12, %rsi
	movl	$4, %edx
	subl	%eax, %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_ksock_recv
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	addl	(%r15), %eax
	movl	%eax, (%r15)
	cmpl	$3, %eax
	jbe	LBB0_20
## %bb.4:
	movl	(%r12), %edi
	callq	_be16_to_cpu
	movq	_MPA_MAX_PRIVDATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_5
LBB0_6:
	movl	16(%r15), %edi
	callq	_be16_to_cpu
	movl	(%r15), %ecx
	leal	4(%rax), %edi
	movl	%edi, %r13d
	subl	%ecx, %r13d
	jne	LBB0_13
## %bb.7:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_ksock_recv
	movl	%eax, %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_23
## %bb.8:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.10:
	js	LBB0_11
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_13:
	movq	%rax, %r12
	movq	8(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_24
## %bb.15:
	movl	(%r15), %ecx
LBB0_16:
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$-4, %rsi
	leal	4(%r13), %edx
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_ksock_recv
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.17:
	cmpl	%r13d, %ebx
	jle	LBB0_18
LBB0_5:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_2:
	movq	_ECONNABORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_18:
	addl	%ebx, (%r15)
	cmpl	%r13d, %ebx
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	jmp	LBB0_23
LBB0_20:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	movq	_EPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	movl	%r14d, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ECONNABORTED,4,2               ## @ECONNABORTED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MPA_MAX_PRIVDATA,8,3           ## @MPA_MAX_PRIVDATA
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"peer EOF\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.1:                               ## @.str.1
	.asciz	"error: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"peer sent extra data: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"%d bytes private data received\n"

	.no_dead_strip	_siw_recv_mpa_rr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_recv_mpa_rr
_siw_recv_mpa_rr:                       ; @siw_recv_mpa_rr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w8, [x0]
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	add	x21, x19, #16
	add	x1, x21, x8
	mov	w9, #4
	sub	w2, w9, w8
	mov	x0, x20
	mov	w3, #0
	bl	_ksock_recv
	cmp	w0, #0
	b.le	LBB0_15
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	cmp	w8, #3
	b.ls	LBB0_14
; %bb.3:
	ldr	w0, [x21]
	bl	_be16_to_cpu
Lloh0:
	adrp	x8, _MPA_MAX_PRIVDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPA_MAX_PRIVDATA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_19
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_be16_to_cpu
	mov	x21, x0
	ldr	w9, [x19]
	add	w8, w21, #4
	subs	w22, w8, w9
	b.ne	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_ksock_recv
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_16
; %bb.6:
	mov	w20, #0
	b	LBB0_23
LBB0_7:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_10
; %bb.8:
Lloh9:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_21
; %bb.9:
	ldr	w9, [x19]
LBB0_10:
	add	x8, x0, w9, sxtw
	sub	x1, x8, #4
	add	w2, w22, #4
Lloh12:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_ksock_recv
	mov	x20, x0
	tbnz	w0, #31, LBB0_23
; %bb.11:
	cmp	w20, w22
	b.gt	LBB0_19
; %bb.12:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	cmp	w20, w22
	b.ne	LBB0_14
; %bb.13:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
	mov	w20, #0
	b	LBB0_23
LBB0_14:
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_22
LBB0_15:
Lloh19:
	adrp	x8, _ECONNABORTED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ECONNABORTED@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
	mov	x20, x0
	cbz	w0, LBB0_20
; %bb.17:
	tbnz	w20, #31, LBB0_24
; %bb.18:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
LBB0_19:
Lloh23:
	adrp	x8, _EPROTO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
Lloh27:
	adrp	x8, _EPIPE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_24:
	str	x20, [sp]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ECONNABORTED,4,2               ; @ECONNABORTED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MPA_MAX_PRIVDATA,8,3           ; @MPA_MAX_PRIVDATA
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"peer EOF\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.1:                               ; @.str.1
	.asciz	"error: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"peer sent extra data: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"%d bytes private data received\n"

	.no_dead_strip	_siw_recv_mpa_rr
.subsections_via_symbols
