	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openssl_connection_handshake
_openssl_connection_handshake:          ## @openssl_connection_handshake
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_openssl_handshake
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r15
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_17:
	movq	%r15, %rdi
	callq	_wpabuf_free
LBB0_18:
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rbx), %edi
	callq	_SSL_is_init_finished
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	24(%rbx), %edi
	movq	%rbx, %rsi
	callq	_tls_connection_resumed
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.7:
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %r13
	movl	8(%rbx), %edi
	movl	$2000, %edx                     ## imm = 0x7D0
	movq	%rax, %rsi
	callq	_SSL_get_shared_ciphers
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movb	$0, 1999(%r13)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movq	%r13, %rdi
	callq	_os_free
LBB0_11:
	testq	%r12, %r12
	je	LBB0_14
## %bb.12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_wpabuf_len
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_openssl_get_appl_data
	movq	%rax, (%r14)
LBB0_14:
	cmpq	$0, (%rbx)
	je	LBB0_19
## %bb.15:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r14, %r14
	je	LBB0_17
## %bb.16:
	movq	(%r14), %rdi
	callq	_wpabuf_free
	movq	$0, (%r14)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS: Heartbeat attack detected - do not send response"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"OpenSSL: Handshake finished - resumed=%d"

L_.str.2:                               ## @.str.2
	.asciz	"OpenSSL: Shared ciphers: %s"

	.no_dead_strip	_openssl_connection_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openssl_connection_handshake
_openssl_connection_handshake:          ; @openssl_connection_handshake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	mov	x0, x21
	mov	x1, x22
	bl	_openssl_handshake
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w0, [x21, #8]
	bl	_SSL_is_init_finished
	cbz	x0, LBB0_16
; %bb.8:
Lloh5:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w23, [x24]
	ldr	w0, [x21, #24]
	mov	x1, x21
	bl	_tls_connection_resumed
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_wpa_printf
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_13
; %bb.9:
	mov	w0, #2000
	bl	_os_malloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x23, x0
	ldr	w0, [x21, #8]
	mov	x1, x23
	mov	w2, #2000
	bl	_SSL_get_shared_ciphers
	cbz	x0, LBB0_12
; %bb.11:
	strb	wzr, [x23, #1999]
	ldr	w0, [x24]
	str	x23, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_12:
	mov	x0, x23
	bl	_os_free
LBB0_13:
	cbz	x22, LBB0_16
; %bb.14:
	cbz	x20, LBB0_16
; %bb.15:
	mov	x0, x22
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x21
	bl	_openssl_get_appl_data
	str	x0, [x20]
LBB0_16:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.17:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	cbz	x20, LBB0_5
; %bb.18:
	ldr	x0, [x20]
	bl	_wpabuf_free
	str	xzr, [x20]
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS: Heartbeat attack detected - do not send response"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"OpenSSL: Handshake finished - resumed=%d"

l_.str.2:                               ; @.str.2
	.asciz	"OpenSSL: Shared ciphers: %s"

	.no_dead_strip	_openssl_connection_handshake
.subsections_via_symbols
