	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_set_highbit                ## -- Begin function mpi_set_highbit
	.p2align	4, 0x90
_mpi_set_highbit:                       ## @mpi_set_highbit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	_BITS_PER_MPI_LIMB@GOTPCREL(%rip), %r13
	xorl	%edx, %edx
	divl	(%r13)
	movl	%edx, %ebx
	movl	%eax, %r15d
	cmpl	(%rdi), %eax
	jb	LBB0_5
## %bb.1:
	leal	1(%r15), %r12d
	cmpl	%r15d, 4(%r14)
	jb	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mpi_resize
	testq	%rax, %rax
	js	LBB0_3
LBB0_4:
	movl	%r12d, (%r14)
LBB0_5:
	movq	_A_LIMB_1@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	8(%r14), %rsi
	movl	%r15d, %edi
	orl	(%rsi,%rdi,4), %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rsi,%rdi,4)
	incl	%ebx
	cmpl	(%r13), %ebx
	jae	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r8), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	notl	%eax
	andl	%eax, %edx
	jmp	LBB0_7
LBB0_8:
	incl	%r15d
	movl	%r15d, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_MPI_LIMB,4,2          ## @BITS_PER_MPI_LIMB
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_A_LIMB_1,4,2                   ## @A_LIMB_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_set_highbit                ; -- Begin function mpi_set_highbit
	.p2align	2
_mpi_set_highbit:                       ; @mpi_set_highbit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _BITS_PER_MPI_LIMB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BITS_PER_MPI_LIMB@GOTPAGEOFF]
	ldr	w24, [x22]
	udiv	w23, w1, w24
	ldr	w8, [x0]
	cmp	w23, w8
	b.lo	LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	add	w21, w23, #1
	cmp	w8, w23
	b.lo	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_mpi_resize
	tbnz	x0, #63, LBB0_9
LBB0_3:
	str	w21, [x19]
LBB0_4:
	msub	w11, w23, w24, w20
Lloh2:
	adrp	x8, _A_LIMB_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A_LIMB_1@GOTPAGEOFF]
	ldr	w9, [x8]
	lsl	w10, w9, w11
	ldr	x9, [x19, #8]
	lsl	x12, x23, #2
	ldr	w13, [x9, x12]
	orr	w10, w13, w10
	str	w10, [x9, x12]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w11, #1
	ldr	w12, [x22]
	cmp	w11, w12
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x8]
	lsl	w12, w12, w11
	bic	w10, w10, w12
	str	w10, [x9, x23, lsl #2]
	b	LBB0_5
LBB0_7:
	mov	w0, #0
	add	w8, w23, #1
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_MPI_LIMB,4,2          ; @BITS_PER_MPI_LIMB
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_A_LIMB_1,4,2                   ; @A_LIMB_1
.subsections_via_symbols
