	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_shutdown                 ## -- Begin function dtls1_shutdown
	.p2align	4, 0x90
_dtls1_shutdown:                        ## @dtls1_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_SSL_get_wbio
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BIO_dgram_is_sctp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_SSL_SENT_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
LBB0_6:
	movq	%r14, %rdi
	callq	_ssl3_shutdown
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_SSL_get_wbio
	movq	_BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_BIO_ctrl
	movl	%ebx, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_BIO_dgram_sctp_wait_for_dry
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_SSL_get_wbio
	movq	_BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_BIO_ctrl
	jmp	LBB0_6
LBB0_7:
	movl	$-1, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_SENT_SHUTDOWN,4,2          ## @SSL_SENT_SHUTDOWN
	.comm	_BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN,4,2 ## @BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_shutdown                 ; -- Begin function dtls1_shutdown
	.p2align	2
_dtls1_shutdown:                        ; @dtls1_shutdown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_SSL_get_wbio
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_BIO_dgram_is_sctp
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SSL_SENT_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_SENT_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_ssl3_shutdown
	mov	x20, x0
	mov	x0, x19
	bl	_SSL_get_wbio
Lloh3:
	adrp	x8, _BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, #0
	bl	_BIO_ctrl
	mov	x0, x20
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	bl	_BIO_dgram_sctp_wait_for_dry
	tbnz	w0, #31, LBB0_8
; %bb.6:
	cbnz	w0, LBB0_3
; %bb.7:
	mov	x0, x19
	bl	_SSL_get_wbio
Lloh6:
	adrp	x8, _BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	mov	x3, #0
	bl	_BIO_ctrl
	b	LBB0_3
LBB0_8:
	mov	w0, #-1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_SENT_SHUTDOWN,4,2          ; @SSL_SENT_SHUTDOWN
	.comm	_BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN,4,2 ; @BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN
.subsections_via_symbols
