	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_skb_recv_datagram
_sctp_skb_recv_datagram:                ## @sctp_skb_recv_datagram
	.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	%rcx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%edx, %esi
	callq	_sock_rcvtimeo
	movq	%rax, -48(%rbp)
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_SCTP_DEBUG_PRINTK
	leaq	4(%rbx), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r12, %rdi
	callq	_skb_peek
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_atomic_inc
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	testq	%r13, %r13
	je	LBB0_7
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_skb_dequeue
	movq	%rax, %r13
	testq	%r13, %r13
	jne	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_sock_error
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	callq	_sctp_wait_for_packet
	testq	%rax, %rax
	je	LBB0_1
	jmp	LBB0_13
LBB0_11:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	movl	%eax, (%r14)
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout: timeo: %ld, MAX: %ld.\n"

	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_sctp_skb_recv_datagram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_skb_recv_datagram
_sctp_skb_recv_datagram:                ; @sctp_skb_recv_datagram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x1, x2
	bl	_sock_rcvtimeo
	mov	x1, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SCTP_DEBUG_PRINTK
	add	x22, x21, #4
Lloh5:
	adrp	x24, _MSG_PEEK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MSG_PEEK@GOTPAGEOFF]
Lloh7:
	adrp	x25, _RCV_SHUTDOWN@GOTPAGE
Lloh8:
	ldr	x25, [x25, _RCV_SHUTDOWN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	mov	x0, x22
	tst	w8, w20
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_spin_lock_bh
	mov	x0, x22
	bl	_skb_peek
	mov	x23, x0
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_atomic_inc
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_spin_unlock_bh
	cbz	x23, LBB0_6
	b	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_skb_dequeue
	mov	x23, x0
	cbnz	x23, LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_sock_error
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_sctp_wait_for_packet
	cbz	x0, LBB0_1
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	str	w0, [x19]
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout: timeo: %ld, MAX: %ld.\n"

	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_sctp_skb_recv_datagram
.subsections_via_symbols
