	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_dhm_parse_dhm          ## -- Begin function mbedtls_dhm_parse_dhm
	.p2align	4, 0x90
_mbedtls_dhm_parse_dhm:                 ## @mbedtls_dhm_parse_dhm
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -40(%rbp)
	addq	%rdx, %rsi
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	-40(%rbp), %r15
	addq	-48(%rbp), %r15
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	8(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_4:
	movq	_MBEDTLS_ERR_DHM_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_5:
	addl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_mbedtls_dhm_free
	jmp	LBB0_8
LBB0_9:
	cmpq	%r15, -40(%rbp)
	je	LBB0_14
## %bb.10:
	leaq	-52(%rbp), %r12
	movq	%r12, %rdi
	callq	_mbedtls_mpi_init
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mbedtls_mpi_free
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.12:
	cmpq	%r15, -40(%rbp)
	je	LBB0_14
## %bb.13:
	movq	_MBEDTLS_ERR_DHM_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	movq	%r14, %rdi
	callq	_mbedtls_mpi_size
	movl	%eax, 4(%r14)
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_DHM_INVALID_FORMAT,4,2 ## @MBEDTLS_ERR_DHM_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT,4,2 ## @MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_dhm_parse_dhm          ; -- Begin function mbedtls_dhm_parse_dhm
	.p2align	2
_mbedtls_dhm_parse_dhm:                 ; @mbedtls_dhm_parse_dhm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	str	x1, [sp, #16]
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	add	x1, x1, x2
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x0, sp, #16
	add	x2, sp, #24
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_3
; %bb.1:
	ldp	x8, x9, [sp, #16]
	add	x20, x8, x9
	add	x0, sp, #16
	mov	x1, x20
	mov	x2, x19
	bl	_mbedtls_asn1_get_mpi
	cbnz	w0, LBB0_3
; %bb.2:
	add	x2, x19, #8
	add	x0, sp, #16
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	cbz	w0, LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_DHM_INVALID_FORMAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_DHM_INVALID_FORMAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w20, w8, w0
	cbz	w20, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mbedtls_dhm_free
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x8, [sp, #16]
	cmp	x8, x20
	b.eq	LBB0_11
; %bb.7:
	add	x0, sp, #12
	bl	_mbedtls_mpi_init
	add	x0, sp, #16
	add	x2, sp, #12
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	add	x0, sp, #12
	bl	_mbedtls_mpi_free
Lloh9:
	adrp	x8, _MBEDTLS_ERR_DHM_INVALID_FORMAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_DHM_INVALID_FORMAT@GOTPAGEOFF]
	cbnz	w21, LBB0_10
; %bb.8:
	ldr	x9, [sp, #16]
	cmp	x9, x20
	b.eq	LBB0_11
; %bb.9:
	ldr	w21, [x8]
Lloh11:
	adrp	x8, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	add	w20, w8, w21
	cbnz	w20, LBB0_4
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_mbedtls_mpi_size
	mov	w20, #0
	str	w0, [x19, #4]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_DHM_INVALID_FORMAT,4,2 ; @MBEDTLS_ERR_DHM_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT,4,2 ; @MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT
.subsections_via_symbols
