	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_nonce
_create_nonce:                          ## @create_nonce
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leal	-1(%r12), %eax
	leal	6(%r12), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	cmpl	$160, %edi
	jg	LBB0_9
## %bb.1:
	sarl	$3, %ebx
	leal	1(%rbx), %r14d
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	callq	_RAND_bytes
	testq	%rax, %rax
	jle	LBB0_9
## %bb.2:
	xorl	%r15d, %r15d
	cmpl	$-6, %r12d
	jl	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmovlel	%eax, %ebx
	movl	%ebx, %r15d
	incl	%r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, -64(%rbp,%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rax, %r15
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r15d
LBB0_7:
	xorl	%eax, %eax
	callq	_ASN1_INTEGER_new
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_OPENSSL_free
	subl	%r15d, %r14d
	movl	%r14d, (%rbx)
	incl	%r14d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_app_malloc
	movl	%eax, 4(%rbx)
	movl	%r15d, %ecx
	leaq	(%rcx,%rbp), %rsi
	addq	$-64, %rsi
	movl	(%rbx), %edx
	movl	%eax, %edi
	callq	_memcpy
	jmp	LBB0_10
LBB0_9:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_printf
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASN1_INTEGER_free
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nonce buffer"

	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"could not create nonce\n"

	.no_dead_strip	_create_nonce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_nonce
_create_nonce:                          ; @create_nonce
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	sub	w8, w0, #1
	add	w9, w0, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w0, #160
	b.gt	LBB0_10
; %bb.1:
	mov	x20, x0
	asr	w21, w8, #3
	add	w19, w21, #1
	add	x0, sp, #4
	mov	x1, x19
	bl	_RAND_bytes
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.2:
	cmn	w20, #6
	b.ge	LBB0_4
; %bb.3:
	mov	w21, #0
	bl	_ASN1_INTEGER_new
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_4:
	mov	x8, #0
	cmp	w21, #0
	csel	w9, w21, wzr, gt
	add	w21, w9, #1
	add	x9, sp, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, x8]
	cbnz	w10, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x21, x8
	b.ne	LBB0_5
; %bb.7:
	bl	_ASN1_INTEGER_new
	cbz	x0, LBB0_10
LBB0_8:
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_OPENSSL_free
	sub	w8, w19, w21
	str	w8, [x20]
	add	w0, w8, #1
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_app_malloc
	str	w0, [x20, #4]
	add	x8, sp, #4
	add	x1, x8, w21, uxtw
	ldr	w2, [x20]
	bl	_memcpy
	b	LBB0_11
LBB0_9:
	mov	x21, x8
	bl	_ASN1_INTEGER_new
	cbnz	x0, LBB0_8
LBB0_10:
Lloh5:
	adrp	x8, _bio_err@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	mov	x0, #0
	bl	_ASN1_INTEGER_free
	mov	x20, #0
LBB0_11:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nonce buffer"

	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"could not create nonce\n"

	.no_dead_strip	_create_nonce
.subsections_via_symbols
