	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_ec_key_field_public_range_test
_check_ec_key_field_public_range_test:  ## @check_ec_key_field_public_range_test
	.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
	movl	%edi, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movq	_curves@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_EC_KEY_new_by_curve_name
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	movq	%rbx, %rdi
	callq	_EC_KEY_get0_group
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movq	%r13, %rdi
	callq	_EC_GROUP_method_of
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	movq	%r13, %rdi
	callq	_EC_GROUP_get0_field
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	%rbx, %rdi
	callq	_EC_KEY_generate_key
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	movq	%rbx, %rdi
	callq	_EC_KEY_check_key
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movq	%rbx, %rdi
	callq	_EC_KEY_get0_public_key
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_EC_POINT_get_affine_coordinates
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_EC_METHOD_get_field_type
	movq	_NID_X9_62_characteristic_two_field@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.11:
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_GF2m_add
	jmp	LBB0_17
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r12, %rdi
	callq	_BN_free
	movq	%r14, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_EC_KEY_free
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_NID_X9_62_prime_field@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.16:
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_add
LBB0_17:
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_14
## %bb.18:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_EC_KEY_set_public_key_affine_coordinates
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_le
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	jmp	LBB0_14
LBB0_19:
	leaq	L_.str(%rip), %rdi
	callq	_TEST_error
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_curves,8,3                     ## @curves
	.comm	_NID_X9_62_characteristic_two_field,4,2 ## @NID_X9_62_characteristic_two_field
	.comm	_NID_X9_62_prime_field,4,2      ## @NID_X9_62_prime_field
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported EC_METHOD field_type"

	.no_dead_strip	_check_ec_key_field_public_range_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_ec_key_field_public_range_test
_check_ec_key_field_public_range_test:  ; @check_ec_key_field_public_range_test
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	bl	_BN_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_12
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _curves@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curves@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8, w21, sxtw #2]
	bl	_EC_KEY_new_by_curve_name
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.3:
	mov	x0, x21
	bl	_EC_KEY_get0_group
	mov	x24, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.4:
	mov	x0, x24
	bl	_EC_GROUP_method_of
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.5:
	mov	x0, x24
	bl	_EC_GROUP_get0_field
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.6:
	mov	x0, x21
	bl	_EC_KEY_generate_key
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_18
; %bb.7:
	mov	x0, x21
	bl	_EC_KEY_check_key
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_18
; %bb.8:
	mov	x0, x21
	bl	_EC_KEY_get0_public_key
	mov	x25, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.9:
	mov	x0, x24
	mov	x1, x25
	mov	x2, x19
	mov	x3, x20
	mov	x4, #0
	bl	_EC_POINT_get_affine_coordinates
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_18
; %bb.10:
	mov	x0, x23
	bl	_EC_METHOD_get_field_type
Lloh3:
	adrp	x8, _NID_X9_62_characteristic_two_field@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_X9_62_characteristic_two_field@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x22
	bl	_BN_GF2m_add
	bl	_TEST_true
	cbnz	w0, LBB0_16
	b	LBB0_18
LBB0_12:
	mov	w22, #0
	mov	x20, #0
	mov	x21, #0
	b	LBB0_19
LBB0_13:
	mov	w22, #0
	mov	x21, #0
	b	LBB0_19
LBB0_14:
Lloh6:
	adrp	x8, _NID_X9_62_prime_field@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_X9_62_prime_field@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x22
	bl	_BN_add
	bl	_TEST_true
	cbz	w0, LBB0_18
LBB0_16:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_EC_KEY_set_public_key_affine_coordinates
	mov	w1, #0
	bl	_TEST_int_le
	cmp	w0, #0
	cset	w22, ne
	b	LBB0_19
LBB0_17:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEST_error
LBB0_18:
	mov	w22, #0
LBB0_19:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_EC_KEY_free
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_curves,8,3                     ; @curves
	.comm	_NID_X9_62_characteristic_two_field,4,2 ; @NID_X9_62_characteristic_two_field
	.comm	_NID_X9_62_prime_field,4,2      ; @NID_X9_62_prime_field
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported EC_METHOD field_type"

	.no_dead_strip	_check_ec_key_field_public_range_test
.subsections_via_symbols
