	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_decrypt         ## -- Begin function tls_connection_decrypt
	.p2align	4, 0x90
_tls_connection_decrypt:                ## @tls_connection_decrypt
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	4(%rbx), %rdi
	movq	%r14, %rsi
	callq	_wolfssl_reset_in_data
	movq	%r14, %rdi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %edi
	addl	$1500, %edi                     ## imm = 0x5DC
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	%rax, %rdi
	callq	_wpabuf_mhead
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_wpabuf_size
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wolfSSL_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_wpabuf_len
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_wpabuf_free
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: decrypt"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Decryption failed - SSL_read"

L_.str.2:                               ## @.str.2
	.asciz	"SSL: decrypt: %ld bytes"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_decrypt         ; -- Begin function tls_connection_decrypt
	.p2align	2
_tls_connection_decrypt:                ; @tls_connection_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x0, x20, #4
	mov	x1, x19
	bl	_wolfssl_reset_in_data
	mov	x0, x19
	bl	_wpabuf_len
	add	w8, w0, w0, lsl #1
	add	w0, w8, #1500
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_wpabuf_mhead
	mov	x21, x0
	mov	x0, x19
	bl	_wpabuf_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wolfSSL_read
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	bl	_wpabuf_put
	ldr	w20, [x22]
	mov	x0, x19
	bl	_wpabuf_len
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpabuf_free
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: decrypt"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Decryption failed - SSL_read"

l_.str.2:                               ; @.str.2
	.asciz	"SSL: decrypt: %ld bytes"

.subsections_via_symbols
