	.file	"extr_ssl_tls.c_mbedtls_ssl_close_notify.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"=> write close notify"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"mbedtls_ssl_send_alert_message"
	.section	.rodata.str1.1
.LC2:
	.string	"<= write close notify"
	.text
	.p2align 4
	.globl	mbedtls_ssl_close_notify
	.type	mbedtls_ssl_close_notify, @function
mbedtls_ssl_close_notify:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	je	.L2
	cmp	QWORD PTR 16[rdi], 0
	mov	rbp, rdi
	je	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR MBEDTLS_SSL_HANDSHAKE_OVER[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L16
.L6:
	lea	rsi, .LC2[rip]
	mov	edi, 2
	xor	r12d, r12d
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR MBEDTLS_ERR_SSL_BAD_INPUT_DATA[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mbedtls_ssl_flush_output@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edx, DWORD PTR MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY[rip]
	mov	esi, DWORD PTR MBEDTLS_SSL_ALERT_LEVEL_WARNING[rip]
	mov	rdi, rbp
	call	mbedtls_ssl_send_alert_message@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_RET@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mbedtls_ssl_close_notify, .-mbedtls_ssl_close_notify
	.comm	MBEDTLS_SSL_HANDSHAKE_OVER,8,8
	.comm	MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY,4,4
	.comm	MBEDTLS_SSL_ALERT_LEVEL_WARNING,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ssl_tls.c_mbedtls_ssl_close_notify.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"=> write close notify\000"
	.align	2
.LC1:
	.ascii	"mbedtls_ssl_send_alert_message\000"
	.align	2
.LC2:
	.ascii	"<= write close notify\000"
	.text
	.align	2
	.global	mbedtls_ssl_close_notify
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_close_notify, %function
mbedtls_ssl_close_notify:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L2
	mov	r0, #2
	ldr	r1, .L17
	bl	MBEDTLS_SSL_DEBUG_MSG
	ldr	r5, [r4]
	cmp	r5, #0
	bne	.L15
	ldr	r3, .L17+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
.L6:
	mov	r0, #2
	ldr	r1, .L17+8
	bl	MBEDTLS_SSL_DEBUG_MSG
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L17+12
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L15:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	mbedtls_ssl_flush_output
.L16:
	ldr	r3, .L17+16
	ldr	r2, .L17+20
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	mbedtls_ssl_send_alert_message
	subs	r2, r0, #0
	beq	.L6
	ldr	r1, .L17+24
	mov	r0, #1
	mov	r5, r2
	bl	MBEDTLS_SSL_DEBUG_RET
	b	.L1
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	MBEDTLS_SSL_HANDSHAKE_OVER
	.word	.LC2
	.word	MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.word	MBEDTLS_SSL_ALERT_LEVEL_WARNING
	.word	MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY
	.word	.LC1
	.size	mbedtls_ssl_close_notify, .-mbedtls_ssl_close_notify
	.comm	MBEDTLS_SSL_HANDSHAKE_OVER,4,4
	.comm	MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY,4,4
	.comm	MBEDTLS_SSL_ALERT_LEVEL_WARNING,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
