	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_encrypt_buf
_ssl_encrypt_buf:                       ## @ssl_encrypt_buf
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	cmpq	$0, 88(%rbx)
	je	LBB0_3
## %bb.1:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	addq	$32, %rdi
	callq	_mbedtls_cipher_get_cipher_mode
	movq	(%rbx), %rdx
	movl	8(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edi
	callq	_MBEDTLS_SSL_DEBUG_BUF
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> encrypt buf"

L_.str.1:                               ## @.str.1
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ## @MBEDTLS_ERR_SSL_INTERNAL_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"before encrypt: output payload"

	.comm	_MBEDTLS_CIPHERSUITE_SHORT_TAG,4,2 ## @MBEDTLS_CIPHERSUITE_SHORT_TAG
	.comm	_MBEDTLS_MODE_CBC,8,3           ## @MBEDTLS_MODE_CBC
	.comm	_MBEDTLS_MODE_CCM,8,3           ## @MBEDTLS_MODE_CCM
	.comm	_MBEDTLS_MODE_GCM,8,3           ## @MBEDTLS_MODE_GCM
	.comm	_MBEDTLS_MODE_STREAM,8,3        ## @MBEDTLS_MODE_STREAM
	.comm	_MBEDTLS_SSL_ETM_DISABLED,8,3   ## @MBEDTLS_SSL_ETM_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_0,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_0
	.comm	_MBEDTLS_SSL_MINOR_VERSION_1,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_1
	.comm	_MBEDTLS_SSL_MINOR_VERSION_2,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_2
	.no_dead_strip	_ssl_encrypt_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_encrypt_buf
_ssl_encrypt_buf:                       ; @ssl_encrypt_buf
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_3
; %bb.2:
	add	x0, x8, #32
	bl	_mbedtls_cipher_get_cipher_mode
	ldr	x2, [x19]
	ldr	w3, [x19, #8]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #4
	bl	_MBEDTLS_SSL_DEBUG_BUF
LBB0_3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh6:
	adrp	x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> encrypt buf"

l_.str.1:                               ; @.str.1
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ; @MBEDTLS_ERR_SSL_INTERNAL_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"before encrypt: output payload"

	.comm	_MBEDTLS_CIPHERSUITE_SHORT_TAG,4,2 ; @MBEDTLS_CIPHERSUITE_SHORT_TAG
	.comm	_MBEDTLS_MODE_CBC,8,3           ; @MBEDTLS_MODE_CBC
	.comm	_MBEDTLS_MODE_CCM,8,3           ; @MBEDTLS_MODE_CCM
	.comm	_MBEDTLS_MODE_GCM,8,3           ; @MBEDTLS_MODE_GCM
	.comm	_MBEDTLS_MODE_STREAM,8,3        ; @MBEDTLS_MODE_STREAM
	.comm	_MBEDTLS_SSL_ETM_DISABLED,8,3   ; @MBEDTLS_SSL_ETM_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_0,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_0
	.comm	_MBEDTLS_SSL_MINOR_VERSION_1,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_1
	.comm	_MBEDTLS_SSL_MINOR_VERSION_2,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_2
	.no_dead_strip	_ssl_encrypt_buf
.subsections_via_symbols
