	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_random_pubkeys            ## -- Begin function test_random_pubkeys
	.p2align	4, 0x90
_test_random_pubkeys:                   ## @test_random_pubkeys
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$2, %edi
	callq	_secp256k1_rand_bits
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%r14b
	movl	$2, %edi
	callq	_secp256k1_rand_bits
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	%r14b, %bl
	shlq	$5, %rbx
	addq	$33, %rbx
	jmp	LBB0_3
LBB0_2:
	movl	$6, %edi
	callq	_secp256k1_rand_bits
	movq	%rax, %rbx
LBB0_3:
	movl	$1, %edi
	callq	_secp256k1_rand_bits
	cmpq	$65, %rbx
	jne	LBB0_6
## %bb.4:
	movb	$4, %cl
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	$1, %edi
	callq	_secp256k1_rand_bits
	testq	%rax, %rax
	sete	%cl
	orb	$6, %cl
	jmp	LBB0_7
LBB0_6:
	testq	%rax, %rax
	sete	%cl
	orb	$2, %cl
LBB0_7:
	movb	%cl, -128(%rbp)
	movl	$3, %edi
	callq	_secp256k1_rand_bits
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	cmpq	$2, %rbx
	jae	LBB0_10
	jmp	LBB0_12
LBB0_8:
	movl	$8, %edi
	callq	_secp256k1_rand_bits
	movb	%al, -128(%rbp)
	cmpq	$2, %rbx
	jb	LBB0_12
LBB0_10:
	leaq	-127(%rbp), %rdi
	callq	_secp256k1_rand256
	cmpq	$34, %rbx
	jb	LBB0_12
## %bb.11:
	leaq	-95(%rbp), %rdi
	callq	_secp256k1_rand256
LBB0_12:
	leaq	-220(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_eckey_pubkey_parse
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movq	%rbx, -216(%rbp)
	movzbl	-128(%rbp), %r14d
	xorl	%ecx, %ecx
	cmpq	$33, %rbx
	sete	%cl
	leaq	-220(%rbp), %rdi
	leaq	-208(%rbp), %rsi
	leaq	-216(%rbp), %rdx
	callq	_secp256k1_eckey_pubkey_serialize
	movl	%eax, %edi
	callq	_CHECK
	xorl	%edi, %edi
	cmpq	%rbx, -216(%rbp)
	sete	%dil
	callq	_CHECK
	leaq	-127(%rbp), %r15
	leaq	-207(%rbp), %rsi
	decl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movb	-128(%rbp), %al
	movl	%eax, %ecx
	andb	$-2, %cl
	cmpb	$6, %cl
	je	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	cmpb	-208(%rbp), %al
	sete	%dil
	callq	_CHECK
LBB0_15:
	movq	$65, -216(%rbp)
	leaq	-220(%rbp), %r12
	leaq	-128(%rbp), %r13
	leaq	-216(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_secp256k1_eckey_pubkey_serialize
	movl	%eax, %edi
	callq	_CHECK
	xorl	%edi, %edi
	cmpq	$65, -216(%rbp)
	sete	%dil
	callq	_CHECK
	movq	-216(%rbp), %rdx
	leaq	-224(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_secp256k1_eckey_pubkey_parse
	movl	%eax, %edi
	callq	_CHECK
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ge_equals_ge
	movl	$1, %edi
	callq	_secp256k1_rand_bits
	testq	%rax, %rax
	sete	%al
	orb	$6, %al
	movb	%al, -128(%rbp)
	movq	-216(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_secp256k1_eckey_pubkey_parse
	movl	%eax, %ebx
	movl	%r14d, %eax
	andb	$-2, %al
	cmpb	$2, %al
	jne	LBB0_17
## %bb.16:
	movzbl	-128(%rbp), %eax
	addl	$4, %r14d
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	cmpl	%eax, %r14d
	cmovel	%ebx, %edi
	callq	_CHECK
LBB0_17:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.18:
	leaq	-220(%rbp), %rbx
	leaq	-224(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ge_equals_ge
	leaq	-208(%rbp), %rsi
	leaq	-216(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_secp256k1_eckey_pubkey_serialize
	movl	%eax, %edi
	callq	_CHECK
	movq	%r15, %rdi
	leaq	-207(%rbp), %rsi
	movl	$64, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_random_pubkeys            ; -- Begin function test_random_pubkeys
	.p2align	2
_test_random_pubkeys:                   ; @test_random_pubkeys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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]
	stur	x8, [x29, #-40]
	mov	w0, #2
	bl	_secp256k1_rand_bits
	mov	w8, #33
	mov	w9, #65
	cmp	x0, #0
	csel	x21, x9, x8, eq
	mov	w0, #2
	bl	_secp256k1_rand_bits
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w0, #6
	bl	_secp256k1_rand_bits
	mov	x21, x0
LBB0_2:
	mov	w0, #1
	bl	_secp256k1_rand_bits
	cmp	x21, #65
	b.ne	LBB0_5
; %bb.3:
	cbz	x0, LBB0_6
; %bb.4:
	mov	w8, #4
	b	LBB0_8
LBB0_5:
	cmp	x0, #0
	mov	w8, #2
	b	LBB0_7
LBB0_6:
	mov	w0, #1
	bl	_secp256k1_rand_bits
	cmp	x0, #0
	mov	w8, #6
LBB0_7:
	cinc	w8, w8, eq
LBB0_8:
	strb	w8, [sp, #87]
	mov	w0, #3
	bl	_secp256k1_rand_bits
	cbz	x0, LBB0_10
; %bb.9:
	cmp	x21, #2
	b.hs	LBB0_11
	b	LBB0_13
LBB0_10:
	mov	w0, #8
	bl	_secp256k1_rand_bits
	strb	w0, [sp, #87]
	cmp	x21, #2
	b.lo	LBB0_13
LBB0_11:
	add	x19, sp, #87
	add	x0, x19, #1
	bl	_secp256k1_rand256
	cmp	x21, #34
	b.lo	LBB0_13
; %bb.12:
	add	x0, x19, #33
	bl	_secp256k1_rand256
LBB0_13:
	add	x19, sp, #87
	add	x0, sp, #16
	add	x1, sp, #87
	mov	x2, x21
	bl	_secp256k1_eckey_pubkey_parse
	cbz	w0, LBB0_20
; %bb.14:
	str	x21, [sp]
	ldrb	w22, [sp, #87]
	cmp	x21, #33
	cset	w3, eq
	add	x20, sp, #22
	add	x0, sp, #16
	add	x1, sp, #22
	mov	x2, sp
	bl	_secp256k1_eckey_pubkey_serialize
	bl	_CHECK
	ldr	x8, [sp]
	cmp	x8, x21
	cset	w0, eq
	bl	_CHECK
	add	x19, x19, #1
	add	x20, x20, #1
	sub	w2, w21, #1
	mov	x0, x19
	mov	x1, x20
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldrb	w8, [sp, #87]
	and	w9, w8, #0xfe
	cmp	w9, #6
	b.eq	LBB0_16
; %bb.15:
	ldrb	w9, [sp, #22]
	cmp	w8, w9
	cset	w0, eq
	bl	_CHECK
LBB0_16:
	mov	w8, #65
	str	x8, [sp]
	add	x0, sp, #16
	add	x1, sp, #87
	mov	x2, sp
	mov	w3, #0
	bl	_secp256k1_eckey_pubkey_serialize
	bl	_CHECK
	ldr	x8, [sp]
	cmp	x8, #65
	cset	w0, eq
	bl	_CHECK
	ldr	x2, [sp]
	add	x0, sp, #12
	add	x1, sp, #87
	bl	_secp256k1_eckey_pubkey_parse
	bl	_CHECK
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_ge_equals_ge
	mov	w0, #1
	bl	_secp256k1_rand_bits
	cmp	x0, #0
	mov	w8, #6
	cinc	w8, w8, eq
	strb	w8, [sp, #87]
	ldr	x2, [sp]
	add	x0, sp, #12
	add	x1, sp, #87
	bl	_secp256k1_eckey_pubkey_parse
	mov	x21, x0
	and	w8, w22, #0xfe
	cmp	w8, #2
	b.ne	LBB0_18
; %bb.17:
	ldrb	w8, [sp, #87]
	add	w9, w22, #4
	cmp	w21, #0
	cset	w10, eq
	cmp	w9, w8
	csel	w0, w21, w10, eq
	bl	_CHECK
LBB0_18:
	cbz	w21, LBB0_20
; %bb.19:
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_ge_equals_ge
	add	x0, sp, #16
	add	x1, sp, #22
	mov	x2, sp
	mov	w3, #0
	bl	_secp256k1_eckey_pubkey_serialize
	bl	_CHECK
	mov	x0, x19
	mov	x1, x20
	mov	w2, #64
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
LBB0_20:
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
