	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_close_notify       ## -- Begin function mbedtls_ssl_close_notify
	.p2align	4, 0x90
_mbedtls_ssl_close_notify:              ## @mbedtls_ssl_close_notify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mbedtls_ssl_flush_output       ## TAILCALL
LBB0_2:
	movq	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rbx), %rax
	movq	_MBEDTLS_SSL_HANDSHAKE_OVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_MBEDTLS_SSL_ALERT_LEVEL_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mbedtls_ssl_send_alert_message
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> write close notify"

	.comm	_MBEDTLS_SSL_HANDSHAKE_OVER,8,3 ## @MBEDTLS_SSL_HANDSHAKE_OVER
	.comm	_MBEDTLS_SSL_ALERT_LEVEL_WARNING,4,2 ## @MBEDTLS_SSL_ALERT_LEVEL_WARNING
	.comm	_MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY,4,2 ## @MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY
L_.str.1:                               ## @.str.1
	.asciz	"mbedtls_ssl_send_alert_message"

L_.str.2:                               ## @.str.2
	.asciz	"<= write close notify"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_close_notify       ; -- Begin function mbedtls_ssl_close_notify
	.p2align	2
_mbedtls_ssl_close_notify:              ; @mbedtls_ssl_close_notify
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mbedtls_ssl_flush_output
LBB0_4:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _MBEDTLS_SSL_HANDSHAKE_OVER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_SSL_HANDSHAKE_OVER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
Lloh8:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
	cbz	w0, LBB0_9
; %bb.8:
	mov	x19, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_MBEDTLS_SSL_DEBUG_RET
	b	LBB0_5
LBB0_9:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w19, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> write close notify"

	.comm	_MBEDTLS_SSL_HANDSHAKE_OVER,8,3 ; @MBEDTLS_SSL_HANDSHAKE_OVER
	.comm	_MBEDTLS_SSL_ALERT_LEVEL_WARNING,4,2 ; @MBEDTLS_SSL_ALERT_LEVEL_WARNING
	.comm	_MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY,4,2 ; @MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY
l_.str.1:                               ; @.str.1
	.asciz	"mbedtls_ssl_send_alert_message"

l_.str.2:                               ; @.str.2
	.asciz	"<= write close notify"

.subsections_via_symbols
