	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psk_find_session_cb
_psk_find_session_cb:                   ## @psk_find_session_cb
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_psk_identity@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_strlen
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	$0, (%r15)
LBB0_16:
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_psksess@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_SSL_SESSION_up_ref
	movq	(%rbx), %rax
LBB0_15:
	movq	%rax, (%r15)
	jmp	LBB0_16
LBB0_5:
	movq	_psk_key@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-56(%rbp), %rsi
	callq	_OPENSSL_hexstr2buf
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	_tls13_aes128gcmsha256_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SSL_CIPHER_find
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_SSL_SESSION_new
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_SSL_SESSION_set1_master_key
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_SSL_SESSION_set_cipher
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_SSL_version
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_SSL_SESSION_set_protocol_version
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	%r12, %rdi
	callq	_OPENSSL_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_6:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_17
LBB0_8:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_13:
	movq	%r12, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_psk_identity,4,2               ## @psk_identity
	.comm	_psksess,8,3                    ## @psksess
	.comm	_psk_key,4,2                    ## @psk_key
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not convert PSK key '%s' to buffer\n"

	.comm	_tls13_aes128gcmsha256_id,4,2   ## @tls13_aes128gcmsha256_id
L_.str.1:                               ## @.str.1
	.asciz	"Error finding suitable ciphersuite\n"

	.no_dead_strip	_psk_find_session_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psk_find_session_cb
_psk_find_session_cb:                   ; @psk_find_session_cb
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _psk_identity@GOTPAGE
Lloh1:
	ldr	x23, [x23, _psk_identity@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_strlen
	cmp	x0, x21
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x23]
	mov	x1, x22
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_2:
	str	xzr, [x19]
LBB0_3:
	mov	w0, #1
LBB0_4:
	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_5:
Lloh2:
	adrp	x21, _psksess@GOTPAGE
Lloh3:
	ldr	x21, [x21, _psksess@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_SSL_SESSION_up_ref
	ldr	x8, [x21]
	str	x8, [x19]
	b	LBB0_3
LBB0_7:
Lloh4:
	adrp	x22, _psk_key@GOTPAGE
Lloh5:
	ldr	x22, [x22, _psk_key@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_OPENSSL_hexstr2buf
	cbz	x0, LBB0_14
; %bb.8:
	mov	x21, x0
Lloh6:
	adrp	x8, _tls13_aes128gcmsha256_id@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tls13_aes128gcmsha256_id@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SSL_CIPHER_find
	cbz	x0, LBB0_15
; %bb.9:
	mov	x23, x0
	bl	_SSL_SESSION_new
	cbz	x0, LBB0_16
; %bb.10:
	mov	x22, x0
	ldr	x2, [sp, #8]
	mov	x1, x21
	bl	_SSL_SESSION_set1_master_key
	cbz	w0, LBB0_16
; %bb.11:
	mov	x0, x22
	mov	x1, x23
	bl	_SSL_SESSION_set_cipher
	cbz	w0, LBB0_16
; %bb.12:
	mov	x0, x20
	bl	_SSL_version
	mov	x1, x0
	mov	x0, x22
	bl	_SSL_SESSION_set_protocol_version
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x21
	bl	_OPENSSL_free
	str	x22, [x19]
	b	LBB0_3
LBB0_14:
Lloh9:
	adrp	x8, _bio_err@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	mov	w0, #0
	b	LBB0_4
LBB0_15:
Lloh14:
	adrp	x8, _bio_err@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
LBB0_16:
	mov	x0, x21
	bl	_OPENSSL_free
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_psk_identity,4,2               ; @psk_identity
	.comm	_psksess,8,3                    ; @psksess
	.comm	_psk_key,4,2                    ; @psk_key
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not convert PSK key '%s' to buffer\n"

	.comm	_tls13_aes128gcmsha256_id,4,2   ; @tls13_aes128gcmsha256_id
l_.str.1:                               ; @.str.1
	.asciz	"Error finding suitable ciphersuite\n"

	.no_dead_strip	_psk_find_session_cb
.subsections_via_symbols
