	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dhm_read_bignum
_dhm_read_bignum:                       ## @dhm_read_bignum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	cmpq	$1, %rax
	jle	LBB0_1
## %bb.2:
	movzwl	(%rsi), %eax
	rolw	$8, %ax
	movzwl	%ax, %r14d
	addq	$2, %rsi
	movq	%rsi, (%rbx)
	subl	%esi, %edx
	cmpl	%edx, %r14d
	jle	LBB0_3
LBB0_1:
	movq	_MBEDTLS_ERR_DHM_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	%r14d, %edx
	callq	_mbedtls_mpi_read_binary
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_MBEDTLS_ERR_DHM_READ_PARAMS_FAILED@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	addq	%r14, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_DHM_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_DHM_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_DHM_READ_PARAMS_FAILED,4,2 ## @MBEDTLS_ERR_DHM_READ_PARAMS_FAILED
	.no_dead_strip	_dhm_read_bignum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dhm_read_bignum
_dhm_read_bignum:                       ; @dhm_read_bignum
	.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
	mov	x19, x1
	ldr	x1, [x1]
	sub	x8, x2, x1
	cmp	x8, #1
	b.le	LBB0_2
; %bb.1:
	ldrh	w8, [x1], #2
	rev16	w20, w8
	str	x1, [x19]
	sub	w8, w2, w1
	cmp	w20, w8
	b.le	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_DHM_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_DHM_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x2, x20
	bl	_mbedtls_mpi_read_binary
	cbz	w0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_DHM_READ_PARAMS_FAILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_DHM_READ_PARAMS_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_3
LBB0_6:
	ldr	x8, [x19]
	add	x8, x8, x20
	str	x8, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_DHM_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_DHM_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_DHM_READ_PARAMS_FAILED,4,2 ; @MBEDTLS_ERR_DHM_READ_PARAMS_FAILED
	.no_dead_strip	_dhm_read_bignum
.subsections_via_symbols
