	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_encrypt         ## -- Begin function tls_connection_encrypt
	.p2align	4, 0x90
_tls_connection_encrypt:                ## @tls_connection_encrypt
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdx, %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_wolfssl_reset_out_data
	movl	8(%rbx), %r15d
	movq	%r14, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_wpabuf_len
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_wolfSSL_write
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	jmp	LBB0_6
LBB0_4:
	movl	8(%rbx), %edi
	movl	%eax, %esi
	callq	_wolfSSL_get_error
	movq	_MSG_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-128(%rbp), %rsi
	movl	%eax, %edi
	callq	_wolfSSL_ERR_error_string
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: encrypt: %ld bytes"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Encryption failed - SSL_write: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_encrypt         ; -- Begin function tls_connection_encrypt
	.p2align	2
_tls_connection_encrypt:                ; @tls_connection_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x2
	bl	_wpabuf_len
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_wpa_printf
	mov	x0, x19
	bl	_wolfssl_reset_out_data
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_wolfSSL_write
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	b	LBB0_5
LBB0_3:
	mov	x1, x0
	ldr	w0, [x19, #8]
	bl	_wolfSSL_get_error
Lloh8:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	add	x1, sp, #8
	bl	_wolfSSL_ERR_error_string
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: encrypt: %ld bytes"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Encryption failed - SSL_write: %s"

.subsections_via_symbols
