	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_dgram_sctp_msg_waiting     ## -- Begin function BIO_dgram_sctp_msg_waiting
	.p2align	4, 0x90
_BIO_dgram_sctp_msg_waiting:            ## @BIO_dgram_sctp_msg_waiting
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r14, -56(%rbp)
	movl	$8, -48(%rbp)
	leaq	-88(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	leaq	-56(%rbp), %rcx
	movq	%rcx, -96(%rbp)
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, -120(%rbp)
	movups	%xmm0, -24(%rax)
	movl	(%r13), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
	movl	%eax, %r14d
	movl	(%r13), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	movl	(%r13), %edi
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-120(%rbp), %rsi
	callq	_recvmsg
	movl	%eax, %ebx
	movq	%r13, %r12
	movl	(%r13), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_fcntl
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MSG_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -120(%rbp)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r14, -56(%rbp)
	movl	$8, -48(%rbp)
	leaq	-88(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	leaq	-56(%rbp), %rcx
	movq	%rcx, -96(%rbp)
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, -120(%rbp)
	movups	%xmm0, -24(%rax)
	movq	%r12, %r13
	movl	(%r12), %edi
	leaq	-120(%rbp), %rsi
	xorl	%edx, %edx
	callq	_recvmsg
	movl	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	*%rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-64(%rbp), %r14
	movq	%r12, %r13
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	setg	%r15b
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MSG_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-120(%rbp), %eax
	jne	LBB0_1
LBB0_8:
	movzbl	%r15b, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_MSG_NOTIFICATION,4,2           ## @MSG_NOTIFICATION
	.comm	_SCTP_AUTHENTICATION_EVENT,8,3  ## @SCTP_AUTHENTICATION_EVENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function BIO_dgram_sctp_msg_waiting
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BIO_dgram_sctp_msg_waiting
	.p2align	2
_BIO_dgram_sctp_msg_waiting:            ; @BIO_dgram_sctp_msg_waiting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	ldr	x22, [x0, #8]
	add	x8, sp, #24
	add	x23, x8, #32
	add	x24, x8, #8
	mov	w26, #8
	add	x27, sp, #8
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x28, _F_SETFL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _F_SETFL@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MSG_NOTIFICATION@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MSG_NOTIFICATION@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x8, sp, #72
	str	x8, [sp, #8]
	str	w26, [sp, #16]
	stp	xzr, xzr, [x23]
	str	x27, [sp, #48]
	str	d8, [sp, #24]
	stp	xzr, xzr, [x24]
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w1, [x28]
Lloh9:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_fcntl
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x1, sp, #24
	bl	_recvmsg
	mov	x20, x0
	ldr	w0, [x19]
	ldr	w1, [x28]
	mov	x2, x21
	bl	_fcntl
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #24]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x8, sp, #72
	str	x8, [sp, #8]
	str	w26, [sp, #16]
	stp	xzr, xzr, [x23]
	str	x27, [sp, #48]
	str	d8, [sp, #24]
	stp	xzr, xzr, [x24]
	ldr	w0, [x19]
	add	x1, sp, #24
	mov	w2, #0
	bl	_recvmsg
	mov	x20, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x22]
	add	x2, sp, #72
	mov	x0, x19
	blr	x8
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, #0
	cset	w0, gt
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #24]
	ldr	w9, [x25]
	and	w8, w9, w8
	cbnz	w8, LBB0_1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_MSG_NOTIFICATION,4,2           ; @MSG_NOTIFICATION
	.comm	_SCTP_AUTHENTICATION_EVENT,8,3  ; @SCTP_AUTHENTICATION_EVENT
.subsections_via_symbols
