	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_flush_output       ## -- Begin function mbedtls_ssl_flush_output
	.p2align	4, 0x90
_mbedtls_ssl_flush_output:              ## @mbedtls_ssl_flush_output
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 8(%r15)
	je	LBB0_13
## %bb.3:
	jle	LBB0_7
## %bb.4:
	leaq	L_.str.4(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_mbedtls_ssl_hdr_len
	movslq	8(%r15), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movl	28(%r15), %ebx
	movq	%r15, %rdi
	callq	_mbedtls_ssl_hdr_len
	addl	%ebx, %eax
	addl	12(%r15), %eax
	movl	8(%r15), %edx
	movl	24(%r15), %edi
	subl	%edx, %eax
	movslq	%eax, %rsi
	callq	*(%r15)
	movl	%eax, %ebx
	movl	$2, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	subl	%ebx, 8(%r15)
	jg	LBB0_5
LBB0_7:
	movq	%r15, %rdi
	callq	_ssl_ep_len
	movb	$8, %bl
	cmpb	$7, %al
	ja	LBB0_11
## %bb.8:
	movb	$8, %bl
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movzbl	%bl, %ecx
	decl	%ecx
	incq	(%rax,%rcx,8)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	decb	%bl
	movq	%r15, %rdi
	callq	_ssl_ep_len
	cmpb	%al, %bl
	ja	LBB0_9
LBB0_11:
	movq	%r15, %rdi
	callq	_ssl_ep_len
	cmpb	%al, %bl
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_COUNTER_WRAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> flush output"

L_.str.1:                               ## @.str.1
	.asciz	"Bad usage of mbedtls_ssl_set_bio() or mbedtls_ssl_set_bio()"

	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
L_.str.2:                               ## @.str.2
	.asciz	"<= flush output"

L_.str.4:                               ## @.str.4
	.asciz	"ssl->f_send"

L_.str.5:                               ## @.str.5
	.asciz	"outgoing message counter would wrap"

	.comm	_MBEDTLS_ERR_SSL_COUNTER_WRAPPING,4,2 ## @MBEDTLS_ERR_SSL_COUNTER_WRAPPING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_flush_output       ; -- Begin function mbedtls_ssl_flush_output
	.p2align	2
_mbedtls_ssl_flush_output:              ; @mbedtls_ssl_flush_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
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_11
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_12
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
Lloh2:
	adrp	x20, l_.str.4@PAGE
Lloh3:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mbedtls_ssl_hdr_len
	ldrsw	x1, [x19, #8]
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	w21, [x19, #28]
	mov	x0, x19
	bl	_mbedtls_ssl_hdr_len
	ldp	w2, w8, [x19, #8]
	add	w9, w0, w21
	add	w8, w9, w8
	sub	w8, w8, w2
	sxtw	x1, w8
	ldr	x8, [x19]
	ldr	w0, [x19, #24]
	blr	x8
	mov	x21, x0
	mov	w0, #2
	mov	x1, x20
	mov	x2, x21
	bl	_MBEDTLS_SSL_DEBUG_RET
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	sub	w8, w8, w21
	str	w8, [x19, #8]
	cmp	w8, #0
	b.gt	LBB0_4
LBB0_6:
	mov	x0, x19
	bl	_ssl_ep_len
	mov	w20, #8
	cmp	w0, #7
	b.hi	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	and	w9, w20, #0xff
	sub	w9, w9, #1
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	adds	x10, x10, #1
	str	x10, [x8, x9]
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w20, w20, #1
	mov	x0, x19
	bl	_ssl_ep_len
	cmp	w0, w20, uxtb
	b.lo	LBB0_7
LBB0_9:
	mov	x0, x19
	bl	_ssl_ep_len
	cmp	w0, w20, uxtb
	b.ne	LBB0_12
; %bb.10:
Lloh4:
	adrp	x1, l_.str.5@PAGE
Lloh5:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh6:
	adrp	x8, _MBEDTLS_ERR_SSL_COUNTER_WRAPPING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_COUNTER_WRAPPING@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_13
LBB0_11:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh11:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w21, #0
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> flush output"

l_.str.1:                               ; @.str.1
	.asciz	"Bad usage of mbedtls_ssl_set_bio() or mbedtls_ssl_set_bio()"

	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
l_.str.2:                               ; @.str.2
	.asciz	"<= flush output"

l_.str.4:                               ; @.str.4
	.asciz	"ssl->f_send"

l_.str.5:                               ; @.str.5
	.asciz	"outgoing message counter would wrap"

	.comm	_MBEDTLS_ERR_SSL_COUNTER_WRAPPING,4,2 ; @MBEDTLS_ERR_SSL_COUNTER_WRAPPING
.subsections_via_symbols
