	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_dgram_sctp_wait_for_dry    ## -- Begin function BIO_dgram_sctp_wait_for_dry
	.p2align	4, 0x90
_BIO_dgram_sctp_wait_for_dry:           ## @BIO_dgram_sctp_wait_for_dry
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$32, -48(%rbp)
	movl	(%rdi), %edi
	movq	_IPPROTO_SCTP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SCTP_EVENTS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-160(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_getsockopt
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_26
## %bb.1:
	movl	$1, -156(%rbp)
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movl	(%r13), %edx
	leaq	-160(%rbp), %rcx
	movl	$32, %r8d
	callq	_setsockopt
	testl	%eax, %eax
	js	LBB0_26
## %bb.2:
	leaq	-80(%rbp), %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r12, -64(%rbp)
	movl	$8, -56(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -104(%rbp)
	movl	$1, -128(%rbp)
	movups	%xmm0, -124(%rbp)
	movl	$0, -108(%rbp)
	movl	(%r15), %edi
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-128(%rbp), %rsi
	callq	_recvmsg
	testl	%eax, %eax
	jle	LBB0_15
## %bb.3:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	movl	(%r15), %edi
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-128(%rbp), %rsi
	callq	_recvmsg
	movl	%eax, %r13d
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	%r14d, %edx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	_fcntl
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	movq	_SCTP_EVENTS@GOTPCREL(%rip), %r13
	leaq	-80(%rbp), %r12
	jle	LBB0_22
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MSG_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -124(%rbp)
	je	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r12, -64(%rbp)
	movl	$8, -56(%rbp)
	xorps	%xmm0, %xmm0
	leaq	-96(%rbp), %rcx
	movups	%xmm0, (%rcx)
	leaq	-64(%rbp), %rax
	movq	%rax, -104(%rbp)
	movl	$1, -128(%rbp)
	movups	%xmm0, -28(%rcx)
	movl	$0, -12(%rcx)
	movl	(%r15), %edi
	leaq	-128(%rbp), %rsi
	xorl	%edx, %edx
	callq	_recvmsg
	testl	%eax, %eax
	jle	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rax
	movq	_SCTP_SENDER_DRY_EVENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$32, -48(%rbp)
	movl	(%r15), %edi
	movq	_IPPROTO_SCTP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	(%r13), %edx
	leaq	-160(%rbp), %r14
	movq	%r14, %rcx
	leaq	-48(%rbp), %r8
	callq	_getsockopt
	testl	%eax, %eax
	js	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, -156(%rbp)
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	%r14, %rcx
	movl	$32, %r8d
	callq	_setsockopt
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_28
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	*%rax
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r12, -64(%rbp)
	movl	$8, -56(%rbp)
	xorps	%xmm0, %xmm0
	leaq	-96(%rbp), %rcx
	movups	%xmm0, (%rcx)
	leaq	-64(%rbp), %rax
	movq	%rax, -104(%rbp)
	movl	$1, -128(%rbp)
	movups	%xmm0, -28(%rcx)
	movl	$0, -12(%rcx)
	movl	(%r15), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-128(%rbp), %rsi
	callq	_recvmsg
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_15:
	jns	LBB0_18
## %bb.16:
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_19:
	jns	LBB0_25
## %bb.20:
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.21:
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$-1, %r14d
	je	LBB0_25
	jmp	LBB0_26
LBB0_28:
	movl	$-1, %r14d
	jmp	LBB0_26
LBB0_22:
	movl	$-1, %r14d
	jns	LBB0_25
## %bb.23:
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_25:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_26:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_SCTP,4,2               ## @IPPROTO_SCTP
	.comm	_SCTP_EVENTS,4,2                ## @SCTP_EVENTS
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_MSG_NOTIFICATION,4,2           ## @MSG_NOTIFICATION
	.comm	_SCTP_SENDER_DRY_EVENT,8,3      ## @SCTP_SENDER_DRY_EVENT
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_SCTP_AUTHENTICATION_EVENT,8,3  ## @SCTP_AUTHENTICATION_EVENT
	.comm	_SCTP_EVENT,4,2                 ## @SCTP_EVENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_dgram_sctp_wait_for_dry    ; -- Begin function BIO_dgram_sctp_wait_for_dry
	.p2align	2
_BIO_dgram_sctp_wait_for_dry:           ; @BIO_dgram_sctp_wait_for_dry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x0
	ldr	x23, [x0, #8]
	mov	w8, #32
	str	w8, [sp, #4]
	ldr	w0, [x0]
Lloh0:
	adrp	x22, _IPPROTO_SCTP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IPPROTO_SCTP@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x27, _SCTP_EVENTS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SCTP_EVENTS@GOTPAGEOFF]
	ldr	w2, [x27]
	add	x3, sp, #8
	add	x4, sp, #4
	bl	_getsockopt
	tbnz	w0, #31, LBB0_23
; %bb.1:
	mov	w20, #1
	str	w20, [sp, #12]
	ldr	w0, [x19]
	ldr	w1, [x22]
	ldr	w2, [x27]
	add	x3, sp, #8
	mov	w4, #32
	bl	_setsockopt
	tbnz	w0, #31, LBB0_23
; %bb.2:
	sub	x26, x29, #88
	mov	w21, #8
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x26, [sp, #40]
	str	w21, [sp, #48]
	add	x21, sp, #56
	stp	xzr, xzr, [sp, #88]
	add	x28, sp, #40
	str	x28, [sp, #80]
	str	w20, [sp, #56]
	stur	xzr, [sp, #68]
	stur	xzr, [sp, #60]
	str	wzr, [sp, #76]
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x1, sp, #56
	bl	_recvmsg
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.3:
	mov	w20, #0
	add	x24, x21, #32
	orr	x25, x21, #0x4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	mov	x26, x27
	mov	x27, x22
	mov	x22, x0
	ldr	w0, [x19]
Lloh10:
	adrp	x28, _F_SETFL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _F_SETFL@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh12:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_fcntl
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x1, sp, #56
	bl	_recvmsg
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w1, [x28]
	add	x28, sp, #40
	mov	x2, x22
	mov	x22, x27
	mov	x27, x26
	sub	x26, x29, #88
	bl	_fcntl
	cmp	w21, #0
	b.le	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #60]
Lloh18:
	adrp	x9, _MSG_NOTIFICATION@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MSG_NOTIFICATION@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x26, [sp, #40]
	mov	w21, #8
	str	w21, [sp, #48]
	stp	xzr, xzr, [x24]
	str	x28, [sp, #80]
	mov	w8, #1
	str	w8, [sp, #56]
	stp	xzr, xzr, [x25]
	str	wzr, [x25, #16]
	ldr	w0, [x19]
	add	x1, sp, #56
	mov	w2, #0
	bl	_recvmsg
	cmp	w0, #0
	b.le	LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, _SCTP_SENDER_DRY_EVENT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SCTP_SENDER_DRY_EVENT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #32
	str	w8, [sp, #4]
	ldr	w0, [x19]
	ldr	w1, [x22]
	ldr	w2, [x27]
	add	x3, sp, #8
	add	x4, sp, #4
	bl	_getsockopt
	tbnz	w0, #31, LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [sp, #12]
	ldr	w0, [x19]
	ldr	w1, [x22]
	ldr	w2, [x27]
	add	x3, sp, #8
	mov	w4, #32
	bl	_setsockopt
	tbnz	w0, #31, LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w20, #1
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
	sub	x2, x29, #88
	mov	x0, x19
	blr	x8
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x26, [sp, #40]
	str	w21, [sp, #48]
	stp	xzr, xzr, [x24]
	str	x28, [sp, #80]
	mov	w8, #1
	str	w8, [sp, #56]
	stp	xzr, xzr, [x25]
	str	wzr, [x25, #16]
	ldr	w0, [x19]
	cbnz	w20, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh24:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x1, sp, #56
	bl	_recvmsg
	mov	x21, x0
	cmp	w21, #0
	b.gt	LBB0_5
LBB0_15:
	tbz	w21, #31, LBB0_24
	b	LBB0_21
LBB0_16:
	tbz	w0, #31, LBB0_19
; %bb.17:
	bl	_get_last_socket_error
Lloh27:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
	bl	_get_last_socket_error
Lloh30:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
LBB0_19:
	mov	w20, #0
	b	LBB0_24
LBB0_20:
	tbz	w0, #31, LBB0_24
LBB0_21:
	bl	_get_last_socket_error
Lloh33:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_24
; %bb.22:
	bl	_get_last_socket_error
Lloh36:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_24
LBB0_23:
	mov	w20, #-1
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_SCTP,4,2               ; @IPPROTO_SCTP
	.comm	_SCTP_EVENTS,4,2                ; @SCTP_EVENTS
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_MSG_NOTIFICATION,4,2           ; @MSG_NOTIFICATION
	.comm	_SCTP_SENDER_DRY_EVENT,8,3      ; @SCTP_SENDER_DRY_EVENT
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_SCTP_AUTHENTICATION_EVENT,8,3  ; @SCTP_AUTHENTICATION_EVENT
	.comm	_SCTP_EVENT,4,2                 ; @SCTP_EVENT
.subsections_via_symbols
