	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_pentanomial_basis ## -- Begin function EC_GROUP_get_pentanomial_basis
	.p2align	4, 0x90
_EC_GROUP_get_pentanomial_basis:        ## @EC_GROUP_get_pentanomial_basis
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_EC_GROUP_method_of
	movl	%eax, %edi
	callq	_EC_METHOD_get_field_type
	movq	_NID_X9_62_characteristic_two_field@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_7
## %bb.4:
	cmpl	$0, 8(%rax)
	je	LBB0_7
## %bb.5:
	movl	12(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	cmpl	$0, 16(%rax)
	je	LBB0_8
LBB0_7:
	movq	_EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movl	%ecx, (%r12)
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movl	8(%rax), %ecx
	movl	%ecx, (%r15)
LBB0_12:
	movl	$1, %r13d
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_X9_62_characteristic_two_field,8,3 ## @NID_X9_62_characteristic_two_field
	.comm	_EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS,4,2 ## @EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ## @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_pentanomial_basis ; -- Begin function EC_GROUP_get_pentanomial_basis
	.p2align	2
_EC_GROUP_get_pentanomial_basis:        ; @EC_GROUP_get_pentanomial_basis
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_EC_GROUP_method_of
	bl	_EC_METHOD_get_field_type
Lloh0:
	adrp	x8, _NID_X9_62_characteristic_two_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_X9_62_characteristic_two_field@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x22]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.3:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_7
; %bb.4:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_7
; %bb.5:
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_7
; %bb.6:
	ldr	w10, [x8, #16]
	cbz	w10, LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	str	w9, [x21]
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
	ldr	w9, [x8, #8]
	str	w9, [x20]
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	ldr	w8, [x8, #4]
	str	w8, [x19]
LBB0_15:
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_X9_62_characteristic_two_field,8,3 ; @NID_X9_62_characteristic_two_field
	.comm	_EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS,4,2 ; @EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ; @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
.subsections_via_symbols
