	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_group_id_from_group
_pk_group_id_from_group:                ## @pk_group_id_from_group
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	leaq	-152(%rbp), %rdi
	callq	_mbedtls_ecp_group_init
	xorl	%eax, %eax
	callq	_mbedtls_ecp_grp_id_list
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_MBEDTLS_ECP_DP_NONE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_1
LBB0_12:
	leaq	-152(%rbp), %rdi
	callq	_mbedtls_ecp_group_free
	movq	(%rbx), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	movl	$0, %eax
	jne	LBB0_14
## %bb.13:
	movq	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	16(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	40(%r12), %r13
	leaq	36(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	32(%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	28(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	24(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	20(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-152(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	addq	$8, %rbx
	cmpq	(%r14), %rax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_mbedtls_ecp_group_free
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_mbedtls_ecp_group_load
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	(%r12), %rax
	cmpq	-152(%rbp), %rax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	cmpq	-144(%rbp), %rax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	-112(%rbp), %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	-116(%rbp), %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-120(%rbp), %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-124(%rbp), %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-128(%rbp), %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-132(%rbp), %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_mbedtls_mpi_get_bit
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-136(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_get_bit
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ## @MBEDTLS_ECP_DP_NONE
	.comm	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
	.no_dead_strip	_pk_group_id_from_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_group_id_from_group
_pk_group_id_from_group:                ; @pk_group_id_from_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	add	x27, sp, #80
	add	x0, sp, #80
	bl	_mbedtls_ecp_group_init
	bl	_mbedtls_ecp_grp_id_list
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _MBEDTLS_ECP_DP_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MBEDTLS_ECP_DP_NONE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	add	x0, sp, #80
	bl	_mbedtls_ecp_group_free
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	x8, [x20]
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w0, w10, wzr, eq
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_2:
	add	x9, x21, #16
	add	x23, x21, #40
	add	x24, x27, #40
	add	x25, x21, #36
	add	x26, x27, #36
	add	x10, x21, #32
	add	x28, x27, #32
	add	x8, x21, #28
	stp	x8, x10, [sp, #64]              ; 16-byte Folded Spill
	add	x10, x27, #28
	add	x8, x21, #24
	stp	x8, x10, [sp, #48]              ; 16-byte Folded Spill
	add	x10, x27, #24
	add	x8, x27, #16
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	add	x8, x21, #20
	stp	x8, x10, [sp, #32]              ; 16-byte Folded Spill
	add	x27, x27, #20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]!
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #80
	bl	_mbedtls_ecp_group_free
	ldr	x1, [x20]
	add	x0, sp, #80
	bl	_mbedtls_ecp_group_load
	bl	_MBEDTLS_MPI_CHK
	ldr	x8, [x21]
	ldr	x9, [sp, #80]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #88]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x1, x28
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x1, x0, [sp, #56]               ; 16-byte Folded Reload
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	x1, x0, [sp, #40]               ; 16-byte Folded Reload
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x27
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w1, #0
	bl	_mbedtls_mpi_get_bit
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	w1, #0
	bl	_mbedtls_mpi_get_bit
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x0
	b.ne	LBB0_3
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ; @MBEDTLS_ECP_DP_NONE
	.comm	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
	.no_dead_strip	_pk_group_id_from_group
.subsections_via_symbols
