	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psk_key2bn
_psk_key2bn:                            ## @psk_key2bn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_BN_hex2bn
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rdi
	callq	_BN_num_bytes
	cmpl	%r14d, %eax
	jle	LBB0_4
## %bb.3:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-32(%rbp), %rdi
	callq	_BN_num_bytes
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_5
LBB0_1:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_5
LBB0_4:
	movq	-32(%rbp), %rdi
	movq	%r15, %rsi
	callq	_BN_bn2bin
	movl	%eax, %r15d
LBB0_5:
	movq	-32(%rbp), %rdi
	callq	_BN_free
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not convert PSK key '%s' to BIGNUM\n"

L_.str.1:                               ## @.str.1
	.asciz	"psk buffer of callback is too small (%d) for key (%d)\n"

	.no_dead_strip	_psk_key2bn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psk_key2bn
_psk_key2bn:                            ; @psk_key2bn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #24]
	add	x0, sp, #24
	mov	x1, x21
	bl	_BN_hex2bn
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [sp, #24]
	bl	_BN_num_bytes
	cmp	w0, w19
	b.le	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _bio_err@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x0, [sp, #24]
	bl	_BN_num_bytes
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _bio_err@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_BIO_printf
	mov	w19, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [sp, #24]
	mov	x1, x20
	bl	_BN_bn2bin
	mov	x19, x0
LBB0_6:
	ldr	x0, [sp, #24]
	bl	_BN_free
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not convert PSK key '%s' to BIGNUM\n"

l_.str.1:                               ; @.str.1
	.asciz	"psk buffer of callback is too small (%d) for key (%d)\n"

	.no_dead_strip	_psk_key2bn
.subsections_via_symbols
