	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dccp_recvmsg                   ## -- Begin function dccp_recvmsg
	.p2align	4, 0x90
_dccp_recvmsg:                          ## @dccp_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_lock_sock
	movq	(%r14), %rax
	movq	_DCCP_LISTEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_1:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_3:
	movq	%r14, %rdi
	callq	_release_sock
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sock_rcvtimeo
	movq	%rax, -56(%rbp)
	leaq	24(%r14), %r12
	movq	_SOCK_DONE@GOTPCREL(%rip), %rbx
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_dccp_hdr
	movq	%rax, %r13
	movl	(%rax), %edi
	leal	-129(%rdi), %eax
	cmpl	$2, %eax
	jb	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	-131(%rdi), %eax
	cmpl	$2, %eax
	jb	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %edi
	je	LBB0_32
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_dccp_packet_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_dccp_pr_debug
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_sk_eat_skb
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	jne	LBB0_25
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%r14)
	jne	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	_DCCP_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_28
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -56(%rbp)
	je	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	callq	_sk_wait_data
	jmp	LBB0_5
LBB0_17:
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, (%rax)
	jne	LBB0_33
## %bb.18:
	movq	%r14, %rdi
	callq	_dccp_finish_passive_close
	movl	(%r13), %edi
	jmp	LBB0_33
LBB0_19:
	movq	(%r15), %rbx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jb	LBB0_23
## %bb.20:
	jbe	LBB0_22
## %bb.21:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 4(%rcx)
LBB0_22:
	movq	%rdx, %rbx
LBB0_23:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_skb_copy_datagram_iovec
	testq	%rax, %rax
	je	LBB0_34
## %bb.24:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_26:
	movq	%r14, %rdi
	callq	_sock_error
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_28:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_1
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_30:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_31:
	movq	-56(%rbp), %rdi
	callq	_sock_intr_errno
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_32:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_33:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_dccp_packet_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dccp_pr_debug
	xorl	%ebx, %ebx
LBB0_34:
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_3
## %bb.35:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_sk_eat_skb
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_DCCP_LISTEN,8,3                ## @DCCP_LISTEN
	.comm	_ENOTCONN,8,3                   ## @ENOTCONN
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found fin (%s) ok!\n"

L_.str.1:                               ## @.str.1
	.asciz	"packet_type=%s\n"

	.comm	_SOCK_DONE,4,2                  ## @SOCK_DONE
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_DCCP_CLOSED,8,3                ## @DCCP_CLOSED
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_current,4,2                    ## @current
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_EFAULT,8,3                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dccp_recvmsg                   ; -- Begin function dccp_recvmsg
	.p2align	2
_dccp_recvmsg:                          ; @dccp_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, x5
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x0, x1
	bl	_lock_sock
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _DCCP_LISTEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCCP_LISTEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	neg	x24, x8
LBB0_3:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x24
	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_4:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	mov	x0, x19
	mov	x1, x23
	bl	_sock_rcvtimeo
	str	x0, [sp, #24]
	add	x24, x19, #24
Lloh5:
	adrp	x27, _SOCK_DONE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _SOCK_DONE@GOTPAGEOFF]
Lloh7:
	adrp	x28, _RCV_SHUTDOWN@GOTPAGE
Lloh8:
	ldr	x28, [x28, _RCV_SHUTDOWN@GOTPAGEOFF]
Lloh9:
	adrp	x20, _DCCP_CLOSED@GOTPAGE
Lloh10:
	ldr	x20, [x20, _DCCP_CLOSED@GOTPAGEOFF]
Lloh11:
	adrp	x25, l_.str.1@PAGE
Lloh12:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh13:
	adrp	x21, _current@GOTPAGE
Lloh14:
	ldr	x21, [x21, _current@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_skb_peek
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	bl	_dccp_hdr
	mov	x26, x0
	ldr	w0, [x0]
	sub	w8, w0, #129
	cmp	w8, #2
	b.lo	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w0, #131
	cmp	w8, #2
	b.lo	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #128
	b.eq	LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_dccp_packet_name
	mov	x1, x0
	mov	x0, x25
	bl	_dccp_pr_debug
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_sk_eat_skb
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_sock_flag
	cbnz	x0, LBB0_27
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_signal_pending
	cbnz	x0, LBB0_29
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #24
	mov	x0, x19
	bl	_sk_wait_data
	b	LBB0_5
LBB0_17:
Lloh15:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	tst	w8, w20
	b.ne	LBB0_31
; %bb.18:
	mov	x0, x19
	bl	_dccp_finish_passive_close
	ldr	w0, [x26]
	b	LBB0_31
LBB0_19:
	ldr	x24, [x23]
	cmp	x24, x22
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	b.lo	LBB0_23
; %bb.20:
	b.ls	LBB0_22
; %bb.21:
Lloh18:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x10, #4]
	orr	w8, w9, w8
	str	w8, [x10, #4]
LBB0_22:
	mov	x24, x22
LBB0_23:
	ldr	w2, [x10]
	mov	x0, x23
	mov	w1, #0
	mov	x3, x24
	bl	_skb_copy_datagram_iovec
	cbz	x0, LBB0_32
; %bb.24:
Lloh21:
	adrp	x8, _EFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_2
LBB0_25:
	mov	x0, x19
	bl	_sock_error
	mov	x24, x0
	b	LBB0_3
LBB0_26:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_sock_flag
	cbz	x0, LBB0_1
LBB0_27:
	mov	x24, #0
	b	LBB0_3
LBB0_28:
Lloh23:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
LBB0_29:
	ldr	x0, [sp, #24]
	bl	_sock_intr_errno
	mov	x24, x0
	b	LBB0_3
LBB0_30:
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
LBB0_31:
	bl	_dccp_packet_name
	mov	x1, x0
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dccp_pr_debug
	mov	x24, #0
LBB0_32:
Lloh27:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_3
; %bb.33:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_sk_eat_skb
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DCCP_LISTEN,8,3                ; @DCCP_LISTEN
	.comm	_ENOTCONN,8,3                   ; @ENOTCONN
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found fin (%s) ok!\n"

l_.str.1:                               ; @.str.1
	.asciz	"packet_type=%s\n"

	.comm	_SOCK_DONE,4,2                  ; @SOCK_DONE
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_DCCP_CLOSED,8,3                ; @DCCP_CLOSED
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_current,4,2                    ; @current
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_EFAULT,8,3                     ; @EFAULT
.subsections_via_symbols
