	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecp_tls_read_group     ## -- Begin function mbedtls_ecp_tls_read_group
	.p2align	4, 0x90
_mbedtls_ecp_tls_read_group:            ## @mbedtls_ecp_tls_read_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$2, %rdx
	jbe	LBB0_1
## %bb.2:
	movq	(%rsi), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rsi)
	movzbl	(%rax), %ecx
	movq	_MBEDTLS_ECP_TLS_NAMED_CURVE@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	leaq	2(%rax), %rcx
	movq	%rcx, (%rsi)
	movzbl	1(%rax), %ecx
	shll	$8, %ecx
	leaq	3(%rax), %rdx
	movq	%rdx, (%rsi)
	movzbl	2(%rax), %edi
	orl	%ecx, %edi
	callq	_mbedtls_ecp_curve_info_from_tls_id
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mbedtls_ecp_group_load         ## TAILCALL
LBB0_1:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ECP_TLS_NAMED_CURVE,4,2 ## @MBEDTLS_ECP_TLS_NAMED_CURVE
	.comm	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecp_tls_read_group     ; -- Begin function mbedtls_ecp_tls_read_group
	.p2align	2
_mbedtls_ecp_tls_read_group:            ; @mbedtls_ecp_tls_read_group
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	x2, #2
	b.ls	LBB0_4
; %bb.1:
	ldr	x8, [x1]
	add	x9, x8, #1
	str	x9, [x1]
	ldrb	w9, [x8]
Lloh0:
	adrp	x10, _MBEDTLS_ECP_TLS_NAMED_CURVE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MBEDTLS_ECP_TLS_NAMED_CURVE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, w9
	b.ne	LBB0_4
; %bb.2:
	mov	x19, x0
	add	x9, x8, #2
	str	x9, [x1]
	ldrb	w9, [x8, #1]
	add	x10, x8, #3
	str	x10, [x1]
	ldrb	w0, [x8, #2]
	bfi	w0, w9, #8, #8
	bl	_mbedtls_ecp_curve_info_from_tls_id
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w1, [x0]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mbedtls_ecp_group_load
LBB0_4:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ECP_TLS_NAMED_CURVE,4,2 ; @MBEDTLS_ECP_TLS_NAMED_CURVE
	.comm	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
.subsections_via_symbols
