	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_dhm_make_public        ## -- Begin function mbedtls_dhm_make_public
	.p2align	4, 0x90
_mbedtls_dhm_make_public:               ## @mbedtls_dhm_make_public
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rcx, %r12
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.2:
	movq	%rdi, %rax
	cmpq	%r12, (%rdi)
	jb	LBB0_12
## %bb.3:
	movq	%r8, %r14
	movl	%esi, %r15d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%rax), %rbx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	20(%rax), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_mbedtls_mpi_fill_random
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_shift_r
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$11, %r13d
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dhm_check_range
	testl	%eax, %eax
	jne	LBB0_5
## %bb.10:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	leaq	8(%r8), %r14
	leaq	24(%r8), %rsi
	addq	$16, %r8
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_mbedtls_mpi_exp_mod
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dhm_check_range
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mbedtls_mpi_write_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movq	_MBEDTLS_ERR_DHM_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_DHM_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_DHM_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED,4,2 ## @MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_dhm_make_public        ; -- Begin function mbedtls_dhm_make_public
	.p2align	2
_mbedtls_dhm_make_public:               ; @mbedtls_dhm_make_public
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x3
	cbz	x3, LBB0_12
; %bb.2:
	mov	x24, x0
	ldr	x8, [x0]
	cmp	x8, x19
	b.lo	LBB0_12
; %bb.3:
	mov	x22, x5
	mov	x23, x4
	mov	x20, x2
	mov	x25, x1
	add	x21, x24, #12
	mov	x0, x21
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_12
; %bb.4:
	mov	w27, #0
	add	x26, x24, #20
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	bl	_mbedtls_mpi_fill_random
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x26
	mov	x1, x21
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x26
	mov	w1, #1
	bl	_mbedtls_mpi_shift_r
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #11
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w27, #1
	mov	x0, x26
	mov	x1, x21
	bl	_dhm_check_range
	cbnz	w0, LBB0_5
; %bb.10:
	add	x22, x24, #8
	add	x1, x24, #24
	add	x4, x24, #16
	mov	x0, x22
	mov	x2, x26
	mov	x3, x21
	bl	_mbedtls_mpi_exp_mod
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x22
	mov	x1, x21
	bl	_dhm_check_range
	cbnz	w0, LBB0_14
; %bb.11:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_mbedtls_mpi_write_binary
	bl	_MBEDTLS_MPI_CHK
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_DHM_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_DHM_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_DHM_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_DHM_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED,4,2 ; @MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED
.subsections_via_symbols
