	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psk_use_session_cb
_psk_use_session_cb:                    ## @psk_use_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_psksess@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_SSL_SESSION_up_ref
	movq	(%rbx), %rbx
LBB0_11:
	movq	%rbx, %rdi
	callq	_SSL_SESSION_get0_cipher
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	testq	%r13, %r13
	je	LBB0_15
## %bb.13:
	movq	%rax, %rdi
	callq	_SSL_CIPHER_get_handshake_digest
	cmpq	%r13, %rax
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	$0, (%r14)
	movq	$0, (%r15)
	movq	%rbx, %rdi
	callq	_SSL_SESSION_free
	movl	$1, %ebx
	jmp	LBB0_18
LBB0_2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_psk_key@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-72(%rbp), %rsi
	callq	_OPENSSL_hexstr2buf
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	_tls13_aes128gcmsha256_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_SSL_CIPHER_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_SSL_SESSION_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SSL_SESSION_set1_master_key
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SSL_SESSION_set_cipher
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movq	_TLS1_3_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SSL_SESSION_set_protocol_version
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	callq	_OPENSSL_free
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_15:
	movq	%rbx, (%r15)
	movq	_psk_identity@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	callq	_strlen
	movq	%rax, (%r14)
	movl	$1, %ebx
	jmp	LBB0_18
LBB0_3:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_18
LBB0_16:
	movq	%r14, %rdi
	callq	_OPENSSL_free
LBB0_17:
	movq	%rbx, %rdi
	callq	_SSL_SESSION_free
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	%r14, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.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"

	.comm	_TLS1_3_VERSION,4,2             ## @TLS1_3_VERSION
	.comm	_psk_identity,8,3               ## @psk_identity
	.no_dead_strip	_psk_use_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_use_session_cb
_psk_use_session_cb:                    ; @psk_use_session_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _psksess@GOTPAGE
Lloh1:
	ldr	x24, [x24, _psksess@GOTPAGEOFF]
	ldr	x0, [x24]
	cbz	x0, LBB0_6
; %bb.1:
	bl	_SSL_SESSION_up_ref
	ldr	x23, [x24]
LBB0_2:
	mov	x0, x23
	bl	_SSL_SESSION_get0_cipher
	cbz	x0, LBB0_16
; %bb.3:
	cbz	x22, LBB0_13
; %bb.4:
	bl	_SSL_CIPHER_get_handshake_digest
	cmp	x0, x22
	b.eq	LBB0_13
; %bb.5:
	str	xzr, [x21]
	str	xzr, [x19]
	str	xzr, [x20]
	mov	x0, x23
	bl	_SSL_SESSION_free
	mov	w0, #1
	b	LBB0_18
LBB0_6:
Lloh2:
	adrp	x25, _psk_key@GOTPAGE
Lloh3:
	ldr	x25, [x25, _psk_key@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x1, sp, #8
	bl	_OPENSSL_hexstr2buf
	cbz	x0, LBB0_14
; %bb.7:
	mov	x24, x0
Lloh4:
	adrp	x8, _tls13_aes128gcmsha256_id@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tls13_aes128gcmsha256_id@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_SSL_CIPHER_find
	cbz	x0, LBB0_19
; %bb.8:
	mov	x25, x0
	bl	_SSL_SESSION_new
	mov	x23, x0
	cbz	x0, LBB0_15
; %bb.9:
	ldr	x2, [sp, #8]
	mov	x0, x23
	mov	x1, x24
	bl	_SSL_SESSION_set1_master_key
	cbz	w0, LBB0_15
; %bb.10:
	mov	x0, x23
	mov	x1, x25
	bl	_SSL_SESSION_set_cipher
	cbz	w0, LBB0_15
; %bb.11:
Lloh7:
	adrp	x8, _TLS1_3_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TLS1_3_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_SSL_SESSION_set_protocol_version
	cbz	w0, LBB0_15
; %bb.12:
	mov	x0, x24
	bl	_OPENSSL_free
	b	LBB0_2
LBB0_13:
	str	x23, [x20]
Lloh10:
	adrp	x8, _psk_identity@GOTPAGE
Lloh11:
	ldr	x8, [x8, _psk_identity@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	str	x0, [x21]
	bl	_strlen
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_18
LBB0_14:
Lloh13:
	adrp	x8, _bio_err@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w8, [x25]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	b	LBB0_17
LBB0_15:
	mov	x0, x24
	bl	_OPENSSL_free
LBB0_16:
	mov	x0, x23
	bl	_SSL_SESSION_free
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
Lloh18:
	adrp	x8, _bio_err@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	mov	x0, x24
	bl	_OPENSSL_free
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.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"

	.comm	_TLS1_3_VERSION,4,2             ; @TLS1_3_VERSION
	.comm	_psk_identity,8,3               ; @psk_identity
	.no_dead_strip	_psk_use_session_cb
.subsections_via_symbols
