	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_write_real
_ssl_write_real:                        ## @ssl_write_real
	.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	%rdx, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_mbedtls_ssl_flush_output
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	%r14, 8(%rbx)
	movq	_MBEDTLS_SSL_MSG_APPLICATION_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	movq	%r14, %rdx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_mbedtls_ssl_write_record
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	movl	%ebx, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mbedtls_ssl_flush_output"

	.comm	_MBEDTLS_SSL_MSG_APPLICATION_DATA,4,2 ## @MBEDTLS_SSL_MSG_APPLICATION_DATA
L_.str.1:                               ## @.str.1
	.asciz	"mbedtls_ssl_write_record"

	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ## @MBEDTLS_SSL_TRANSPORT_DATAGRAM
	.no_dead_strip	_ssl_write_real
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_write_real
_ssl_write_real:                        ; @ssl_write_real
	.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, x2
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_mbedtls_ssl_flush_output
	cbz	w0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	str	x19, [x20, #8]
Lloh2:
	adrp	x8, _MBEDTLS_SSL_MSG_APPLICATION_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_SSL_MSG_APPLICATION_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldr	w0, [x20, #16]
	mov	x2, x19
	bl	_memcpy
	mov	x0, x20
	bl	_mbedtls_ssl_write_record
	cbz	w0, LBB0_6
; %bb.4:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	w0, #1
	mov	x2, x20
	bl	_MBEDTLS_SSL_DEBUG_RET
	mov	x19, x20
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mbedtls_ssl_flush_output"

	.comm	_MBEDTLS_SSL_MSG_APPLICATION_DATA,4,2 ; @MBEDTLS_SSL_MSG_APPLICATION_DATA
l_.str.1:                               ; @.str.1
	.asciz	"mbedtls_ssl_write_record"

	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ; @MBEDTLS_SSL_TRANSPORT_DATAGRAM
	.no_dead_strip	_ssl_write_real
.subsections_via_symbols
